2022-05-19 05:47:27 +02:00
|
|
|
#!/bin/bash
|
|
|
|
if [[ -f token ]]; then
|
|
|
|
echo "The token file already exists. Skipping..."
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
mkdir -p wrk; cd wrk
|
|
|
|
|
2022-05-19 06:33:00 +02:00
|
|
|
curl -O https://curseforge.overwolf.com/downloads/curseforge-latest-linux.zip
|
2022-05-19 05:47:27 +02:00
|
|
|
7z -y x curseforge-latest-linux.zip
|
|
|
|
7z -y x *.AppImage
|
|
|
|
grep -Poh 'cfCoreApiKey":".*?"' resources/app/dist/desktop/desktop.js | sed 's/.*://;s/"//g' > ../token
|
|
|
|
|
|
|
|
cd ..; rm -R wrk
|