You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
692 B
22 lines
692 B
#!/bin/bash |
|
|
|
unset ANDROID_SDK_ROOT |
|
export JAVA_HOME=$GITHUB_WORKSPACE/jdk-17.0.7+7 |
|
export ANDROID_HOME=$GITHUB_WORKSPACE/sdk |
|
export PATH=$PATH:$JAVA_HOME/bin:$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools:$ANDROID_HOME/cmdline-tools/tools/bin |
|
|
|
pushd android |
|
|
|
./gradlew assembleDebug |
|
|
|
pushd app/build/outputs/apk/debug |
|
|
|
$ANDROID_HOME/build-tools/34.0.0/apksigner sign --ks $GITHUB_WORKSPACE/android/debug.keystore --ks-key-alias androiddebugkey \ |
|
--ks-pass pass:android --key-pass pass:android --out app-debug-signed.apk app-debug.apk |
|
|
|
popd |
|
popd |
|
|
|
mkdir -p artifacts/ |
|
|
|
mv android/app/build/outputs/apk/debug/app-debug-signed.apk artifacts/xash3d-fwgs-android.apk
|
|
|