chore: Update build configuration
This commit is contained in:
parent
b34a489293
commit
74807eea61
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
@ -14,7 +14,7 @@ jobs:
|
|||||||
- name: set up android development environment
|
- name: set up android development environment
|
||||||
uses: android-actions/setup-android@v2
|
uses: android-actions/setup-android@v2
|
||||||
|
|
||||||
- name: install dependencies
|
- name: Install Dependencies
|
||||||
run: |
|
run: |
|
||||||
sdkmanager --install "cmake;3.22.1"
|
sdkmanager --install "cmake;3.22.1"
|
||||||
echo "cmake.dir=/usr/local/lib/android/sdk/cmake/3.22.1" > local.properties
|
echo "cmake.dir=/usr/local/lib/android/sdk/cmake/3.22.1" > local.properties
|
||||||
@ -25,25 +25,20 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: '21'
|
java-version: '21'
|
||||||
|
|
||||||
- name: Write branch and commit info
|
- name: Write Branch and Commit info
|
||||||
run: |
|
run: |
|
||||||
branch=$(git rev-parse --abbrev-ref HEAD)
|
branch=$(git rev-parse --abbrev-ref HEAD)
|
||||||
hash=$(git rev-parse --short=7 HEAD)
|
hash=$(git rev-parse --short=7 HEAD)
|
||||||
echo "$branch.$hash" > app/src/main/assets/gakumas-local/version.txt
|
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
|
run: chmod +x gradlew
|
||||||
|
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
run: ./gradlew build
|
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
|
- uses: ilharp/sign-android-release@v1
|
||||||
name: Sign app APK
|
name: Sign App APK
|
||||||
id: sign_app
|
id: sign_app
|
||||||
with:
|
with:
|
||||||
releaseDir: app/build/outputs/apk/debug
|
releaseDir: app/build/outputs/apk/debug
|
||||||
@ -55,5 +50,5 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: GakumasLocalify-Signed-apk
|
name: GakumasLocalify-EN
|
||||||
path: ${{steps.sign_app.outputs.signedFile}}
|
path: ${{steps.sign_app.outputs.signedFile}}
|
||||||
|
@ -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)
|
[![](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
|
# Getting started
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user