Skip to content

Commit

Permalink
use correct itch paths
Browse files Browse the repository at this point in the history
there doesn't seem to be a way to only download the file we want. it
always gets all available files, which includes all past versions
  • Loading branch information
myk002 committed Apr 18, 2024
1 parent 69eaa4f commit 2891c12
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/generate-symbols.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,8 @@ jobs:
pip install itch-dl
minor=$(echo "${{ inputs.version }}" | cut -d. -f1)
patch=$(echo "${{ inputs.version }}" | cut -d. -f2)
fname="dwarf_fortress_${minor}_${patch}_linux.tar.bz2"
itch-dl https://kitfoxgames.itch.io/dwarf-fortress/$fname --api-key $ITCH_API_KEY
tar xjf "${fname}" -C DF_itch
itch-dl https://kitfoxgames.itch.io/dwarf-fortress --download-to . --api-key $ITCH_API_KEY
tar xjf "kitfoxgames/dwarf-fortress/dwarf_fortress_${minor}_${patch}_linux.tar.bz2" -C DF_itch
tar xjf dfhack-symbols-linux64-build.tar.bz2 -C DF_itch
xml/symbols_gen_linux.sh ${{ inputs.version }} ITCH DF_itch
Expand Down Expand Up @@ -232,10 +231,8 @@ jobs:
pip install itch-dl
minor=$(echo "${{ inputs.version }}" | cut -d. -f1)
patch=$(echo "${{ inputs.version }}" | cut -d. -f2)
fname="dwarf_fortress_${minor}_${patch}_windows.zip"
itch-dl https://kitfoxgames.itch.io/dwarf-fortress/$fname --download-to itchdl --api-key $ITCH_API_KEY --urls-only
find itchdl -type f
unzip -d DF_itch "${fname}"
itch-dl https://kitfoxgames.itch.io/dwarf-fortress --download-to . --api-key $ITCH_API_KEY
unzip -d DF_itch "kitfoxgames/dwarf-fortress/dwarf_fortress_${minor}_${patch}_windows.zip"
xml/symbols_gen_windows.sh ${{ inputs.version }} ITCH DF_itch
# Classic
Expand Down

0 comments on commit 2891c12

Please sign in to comment.