Skip to content

Commit 6ef2ee6

Browse files
committed
use new itch-dl filename filter
1 parent 8690bbd commit 6ef2ee6

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/generate-symbols.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,9 @@ jobs:
163163
pip install itch-dl
164164
minor=$(echo "${{ inputs.version }}" | cut -d. -f1)
165165
patch=$(echo "${{ inputs.version }}" | cut -d. -f2)
166-
itch-dl https://kitfoxgames.itch.io/dwarf-fortress --download-to . --api-key $ITCH_API_KEY
167-
tar xjf "kitfoxgames/dwarf-fortress/files/dwarf_fortress_${minor}_${patch}_linux.tar.bz2" -C DF_itch
166+
fname="kitfoxgames/dwarf-fortress/files/dwarf_fortress_${minor}_${patch}_linux.tar.bz2"
167+
itch-dl https://kitfoxgames.itch.io/dwarf-fortress --download-to . --api-key $ITCH_API_KEY --filter-files-glob "${fname}"
168+
tar xjf "${fname}" -C DF_itch
168169
tar xjf dfhack-symbols-linux64-build.tar.bz2 -C DF_itch
169170
xml/symbols_gen_linux.sh ${{ inputs.version }} ITCH DF_itch
170171
@@ -270,8 +271,9 @@ jobs:
270271
pip install itch-dl
271272
minor=$(echo "${{ inputs.version }}" | cut -d. -f1)
272273
patch=$(echo "${{ inputs.version }}" | cut -d. -f2)
273-
itch-dl https://kitfoxgames.itch.io/dwarf-fortress --download-to . --api-key $ITCH_API_KEY
274-
unzip -d DF_itch "kitfoxgames/dwarf-fortress/files/dwarf_fortress_${minor}_${patch}_windows.zip"
274+
fname="kitfoxgames/dwarf-fortress/files/dwarf_fortress_${minor}_${patch}_windows.zip"
275+
itch-dl https://kitfoxgames.itch.io/dwarf-fortress --download-to . --api-key $ITCH_API_KEY --filter-files-glob "${fname}"
276+
unzip -d DF_itch "${fname}"
275277
xml/symbols_gen_windows.sh ${{ inputs.version }} ITCH DF_itch
276278
277279
# Classic

0 commit comments

Comments
 (0)