1
0

chore: Update build configuration

This commit is contained in:
Natsu 2024-06-18 04:01:45 +07:00
parent b34a489293
commit 74807eea61
Signed by: NatsumeLS
GPG Key ID: 6DB67FB460CF46C6
2 changed files with 6 additions and 11 deletions

View File

@ -14,7 +14,7 @@ jobs:
- name: set up android development environment
uses: android-actions/setup-android@v2
- name: install dependencies
- name: Install Dependencies
run: |
sdkmanager --install "cmake;3.22.1"
echo "cmake.dir=/usr/local/lib/android/sdk/cmake/3.22.1" > local.properties
@ -25,25 +25,20 @@ jobs:
distribution: 'temurin'
java-version: '21'
- name: Write branch and commit info
- name: Write Branch and Commit info
run: |
branch=$(git rev-parse --abbrev-ref HEAD)
hash=$(git rev-parse --short=7 HEAD)
echo "$branch.$hash" > app/src/main/assets/gakumas-local/version.txt
- name: Grant execute permission for gradlew
- name: Grant execute permission for Gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
- uses: actions/upload-artifact@v4
with:
name: GakumasLocalify-Unsigned-apk
path: app/build/outputs/apk/debug/app-debug.apk
- uses: ilharp/sign-android-release@v1
name: Sign app APK
name: Sign App APK
id: sign_app
with:
releaseDir: app/build/outputs/apk/debug
@ -55,5 +50,5 @@ jobs:
- uses: actions/upload-artifact@v4
with:
name: GakumasLocalify-Signed-apk
name: GakumasLocalify-EN
path: ${{steps.sign_app.outputs.signedFile}}

View File

@ -50,7 +50,7 @@ However, these modifications do violate the relevant Terms of Service, so **proc
[![](https://img.shields.io/endpoint?url=https://gakumas-localify-en.vercel.app/api/getLatestCommit&style=flat-square)](https://github.com/NatsumeLS/Gakumas-Localify-EN/commits)
[Latest Build](https://nightly.link/NatsumeLS/Gakumas-Localify-EN/workflows/build/main/GakumasLocalify-Signed-apk.zip)
[Latest Build](https://nightly.link/NatsumeLS/Gakumas-Localify-EN/workflows/build/main/GakumasLocalify-EN.zip)
# Getting started