From 7b8104ce4e9056518808f25d65bfb0bc525ec6a8 Mon Sep 17 00:00:00 2001 From: koalasat Date: Thu, 24 Oct 2024 22:58:40 +0200 Subject: [PATCH] Fix zapstore --- .github/workflows/create-release.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 2aecd34..6effbdb 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -23,6 +23,19 @@ jobs: distribution: 'temurin' java-version: 17 + - 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/ + + - name: Verify Apktool Installation + run: apktool --version + - name: Cache gradle uses: actions/cache@v4 with: @@ -94,6 +107,7 @@ jobs: env: NSEC: ${{ secrets.POKEY_NSEC }} run: | + mkdir /home/runner/.zapstore git clone https://github.com/zapstore/zapstore-cli.git cd zapstore-cli git fetch --tags @@ -101,8 +115,7 @@ jobs: dart pub get dart compile exe lib/main.dart -o build cd $GITHUB_WORKSPACE - mkdir /home/runner/.zapstore - ./zapstore-cli/build install apktool && ./zapstore-cli/build publish pokey + ./zapstore-cli/build publish pokey