From 2fe61c144565c5da8ba7d27d9db18931de553aa9 Mon Sep 17 00:00:00 2001 From: wowlikon Date: Sat, 11 Oct 2025 18:53:51 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=B2=D0=BE=D0=B4=20?= =?UTF-8?q?=D0=BD=D0=B0=D0=B7=D0=B2=D0=B0=D0=BD=D0=B8=D0=B9=20=D1=8D=D1=82?= =?UTF-8?q?=D0=B0=D0=BF=D0=BE=D0=B2=20=D0=B2=20build.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 2c0a20c..616809d 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -1,4 +1,4 @@ -name: Build mod +name: Сборка мода on: workflow_dispatch: @@ -16,25 +16,25 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 - - name: Download APK + - name: Скачивание APK run: | curl -L -o app.apk "https://mirror-dl.anixart-app.com/anixart-beta.apk" - - name: Ensure aapt is installed + - name: Проверка наличия aapt run: | if ! command -v aapt &> /dev/null; then echo "aapt не найден, устанавливаем..." sudo apt-get update && sudo apt-get install -y --no-install-recommends android-sdk-build-tools fi - - name: Ensure pngquant is installed + - name: Проверка наличия pngquant run: | if ! command -v pngquant &> /dev/null; then echo "pngquant не найден, устанавливаем..." sudo apt-get update && sudo apt-get install -y --no-install-recommends pngquant fi - - name: Export secrets + - name: Извлечение хранилища ключей env: KEYSTORE: ${{ secrets.KEYSTORE }} KEYSTORE_PASS: ${{ secrets.KEYSTORE_PASS }} @@ -43,7 +43,7 @@ jobs: echo "$KEYSTORE" | base64 -d > keystore.jks echo "$KEYSTORE_PASS" > keystore.pass - - name: Prepare to build APK + - name: Подготовка к модифицированию APK id: build run: | mkdir original @@ -51,25 +51,25 @@ jobs: pip install -r ./requirements.txt --break-system-packages python ./main.py init - - name: Build APK + - name: Пересборка APK id: build run: | python ./main.py build -f - - name: Read title from report.log + - name: Чтение report.log id: get_title run: | TITLE=$(head -n 1 modified/report.log) tail -n +2 modified/report.log > modified/report.log.tmp echo "title=${TITLE}" >> $GITHUB_OUTPUT - - name: Setup go + - name: Установка go if: steps.build.outputs.BUILD_EXIT == '0' uses: actions/setup-go@v4 with: go-version: '>=1.20' - - name: Make release + - name: Создание релиза if: steps.build.outputs.BUILD_EXIT == '0' uses: https://gitea.com/actions/release-action@main with: @@ -78,5 +78,5 @@ jobs: draft: true api_key: '${{secrets.RELEASE_TOKEN}}' files: |- - modified/**-mod.apk + modified/*-mod.apk modified/report.log