Skip to content

Commit 25c75d8

Browse files
Attempt to use Game Jolt for UTY download.
1 parent 4b10a01 commit 25c75d8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/deploy-uty.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ jobs:
1515
uses: ./.github/actions/steam-utmt-setup
1616
- name: Download Undertale Yellow
1717
run: |
18-
curl -s https://www.indiedb.com/downloads/start/293713 -H "User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36" > indiedb.html
19-
download_link=$(cat indiedb.html | grep 'click the link to' | sed -re 's|.*<a href="(/downloads/mirror/293713/[^"]+)".*|https://www.indiedb.com\1|')
18+
curl -X POST 'https://gamejolt.com/site-api/web/discover/games/builds/get-download-url/1857285' -H "User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36" > gamejolt.html
19+
download_link=$(cat gamejolt.html | jq -r '.payload.url') || true
2020
if [ -z "$download_link" ]
2121
then
2222
echo 'Failed to locate download link!'
23-
cat indiedb.html
23+
cat gamejolt.html
2424
exit 1
2525
fi
2626
wget $download_link -qO game.zip
27-
unzip -p game.zip "Undertale Yellow v1_2_1/data.win" > data.win
27+
unzip -p game.zip "Undertale Yellow v1_2_2/data.win" > data.win
2828
- name: Extract Undertale Yellow's code
2929
run: |
3030
./utmtcli/UndertaleModCli load data.win --scripts 'scripts/ExportCodeFormatted.csx'

0 commit comments

Comments
 (0)