Skip to content

Commit

Permalink
fix: android use jdk17
Browse files Browse the repository at this point in the history
  • Loading branch information
zeromake committed May 23, 2024
1 parent 2195863 commit d690eaf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@ jobs:
CERT_TEXT: ${{ secrets.CERT_TEXT }}
VERSION: ${{ github.ref_name }}
run: |
export JAVA_HOME=$JAVA_HOME_17_X64
cd project/android
echo "org.gradle.java.home=${JAVA_HOME_11_X64}" >> gradle.properties
echo "org.gradle.java.home=${JAVA_HOME_17_X64}" >> gradle.properties
echo "versionName=${VERSION}" >> local.properties
echo "$CERT_TEXT" > cert.txt
cat cert.txt | base64 -d > cert.tar.xz
Expand All @@ -111,6 +112,7 @@ jobs:
- name: build-apk
run: |
export JAVA_HOME=$JAVA_HOME_17_X64
echo $JAVA_HOME
cd project/android
./gradlew assembleRelease
cp ./app/build/outputs/apk/release/app-release.apk ../../dist/onscripter-release.apk
Expand Down

0 comments on commit d690eaf

Please sign in to comment.