Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,13 @@ jobs:
mkdir -p "$PCSC_DIR/include" "$PCSC_DIR/lib/pkgconfig"

# Download pcsc-lite headers from upstream
for header in winscard.h pcsclite.h wintypes.h; do
curl -fsSL "https://raw.githubusercontent.com/LudovicRousseau/PCSC/master/src/PCSC/$header" \
-o "$PCSC_DIR/include/$header"
PCSC_URL="https://raw.githubusercontent.com/LudovicRousseau/PCSC/master/src/PCSC"
for header in winscard.h wintypes.h; do
curl -fsSL "$PCSC_URL/$header" -o "$PCSC_DIR/include/$header"
done
# pcsclite.h is generated from pcsclite.h.in — download and substitute the version placeholder
curl -fsSL "$PCSC_URL/pcsclite.h.in" -o "$PCSC_DIR/include/pcsclite.h"
sed -i '' 's/@VERSION@/1.9.0/' "$PCSC_DIR/include/pcsclite.h"

# Create pkg-config file (headers-only, no library needed for cross-compilation)
cat > "$PCSC_DIR/lib/pkgconfig/libpcsclite.pc" << EOF
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,13 @@ jobs:
mkdir -p "$PCSC_DIR/include" "$PCSC_DIR/lib/pkgconfig"

# Download pcsc-lite headers from upstream
for header in winscard.h pcsclite.h wintypes.h; do
curl -fsSL "https://raw.githubusercontent.com/LudovicRousseau/PCSC/master/src/PCSC/$header" \
-o "$PCSC_DIR/include/$header"
PCSC_URL="https://raw.githubusercontent.com/LudovicRousseau/PCSC/master/src/PCSC"
for header in winscard.h wintypes.h; do
curl -fsSL "$PCSC_URL/$header" -o "$PCSC_DIR/include/$header"
done
# pcsclite.h is generated from pcsclite.h.in — download and substitute the version placeholder
curl -fsSL "$PCSC_URL/pcsclite.h.in" -o "$PCSC_DIR/include/pcsclite.h"
sed -i '' 's/@VERSION@/1.9.0/' "$PCSC_DIR/include/pcsclite.h"

# Create pkg-config file (headers-only, no library needed for cross-compilation)
cat > "$PCSC_DIR/lib/pkgconfig/libpcsclite.pc" << EOF
Expand Down
Loading