diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 6effbdb..a2ae470 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -25,13 +25,19 @@ jobs: - name: Install Apktool run: | - # Download apktool.jar - curl -L -o apktool.jar https://raw.githubusercontent.com/iBotPeaches/Apktool/master/apktool.jar - # Create a wrapper script - echo -e '#!/bin/sh\njava -jar $(pwd)/apktool.jar "$@"' > apktool - chmod +x apktool - # Move the script to /usr/local/bin - sudo mv apktool /usr/local/bin/ + wget "https://raw.githubusercontent.com/iBotPeaches/Apktool/master/scripts/linux/apktool" + wget "https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_2.4.1.jar" + mv apktool_2.4.1.jar apktool.jar + sudo cp apktool /usr/local/bin + sudo cp apktool.jar /usr/local/bin + cd /usr/local/bin + sudo chmod +x apktool + sudo chmod +x apktool.jar + sudo apt-get install -y zipalign + sudo apt install openjdk-11-jdk-headless + sudo apt install openjdk-8-jdk-headless + sudo apt upgrade + sudo apt update - name: Verify Apktool Installation run: apktool --version