From 250fed28124d7ef3b0f182affd114a51dfc9cb9b Mon Sep 17 00:00:00 2001 From: Dominika Liberda Date: Thu, 19 May 2022 06:33:00 +0200 Subject: [PATCH] + depends --- README.md | 9 +++++++++ getToken.sh | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bda9ad9..3f5b246 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,15 @@ Takes curseforge minecraft modpacks and installs them without the closed-source, glibc-dependent curseforge client. +### Dependencies + +- p7zip +- jq +- bash +- curl +- java (well, duh) +- busybox OR gnu coreutils (tested on busybox ;3) + ### Usage 1. Download a ZIP file from curseforge. This is hidden - curse really wants you to use their application. Go to Files -> Main File -> (click on the name) -> `Download` (NOT `Install`) diff --git a/getToken.sh b/getToken.sh index f71d388..442883c 100755 --- a/getToken.sh +++ b/getToken.sh @@ -6,7 +6,7 @@ fi mkdir -p wrk; cd wrk -wget https://curseforge.overwolf.com/downloads/curseforge-latest-linux.zip +curl -O https://curseforge.overwolf.com/downloads/curseforge-latest-linux.zip 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