Skip to content

Commit 6ec91c7

Browse files
authored
make itch downloader more permissive on matching
this allows it to match adownloadable if there's crud after `windows` or `linux` (e.g. if a file is called `dwarf_fortress_53_04_windows(1).zip `)
1 parent f8cff80 commit 6ec91c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/generate-symbols.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ jobs:
164164
pip install itch-dl
165165
minor=$(echo "${{ inputs.version }}" | cut -d. -f1)
166166
patch=$(echo "${{ inputs.version }}" | cut -d. -f2)
167-
fname="dwarf_fortress_${minor}_${patch}_linux.tar.bz2"
167+
fname="dwarf_fortress_${minor}_${patch}_linux*.tar.bz2"
168168
itch-dl https://kitfoxgames.itch.io/dwarf-fortress --download-to . --api-key $ITCH_API_KEY --filter-files-glob "${fname}"
169169
tar xjf "kitfoxgames/dwarf-fortress/files/${fname}" -C DF_itch
170170
tar xjf dfhack-symbols-linux64-build.tar.bz2 -C DF_itch
@@ -272,7 +272,7 @@ jobs:
272272
pip install itch-dl
273273
minor=$(echo "${{ inputs.version }}" | cut -d. -f1)
274274
patch=$(echo "${{ inputs.version }}" | cut -d. -f2)
275-
fname="dwarf_fortress_${minor}_${patch}_windows.zip"
275+
fname="dwarf_fortress_${minor}_${patch}_windows*.zip"
276276
itch-dl https://kitfoxgames.itch.io/dwarf-fortress --download-to . --api-key $ITCH_API_KEY --filter-files-glob "${fname}"
277277
unzip -d DF_itch "kitfoxgames/dwarf-fortress/files/${fname}"
278278
xml/symbols_gen_windows.sh ${{ inputs.version }} ITCH DF_itch

0 commit comments

Comments
 (0)