Skip to content

Commit

Permalink
mod rvba wflow + script
Browse files Browse the repository at this point in the history
  • Loading branch information
shrihankp committed Sep 3, 2022
1 parent 0ca552e commit 6dc0985
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/rvba.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ jobs:
- name: Upload APK
uses: actions/upload-artifact@v3
with:
name: APKs
path: termux-app/**/*.apk
name: ${{ env.APK_BASENAME_PREFIX }}-${{ matrix.arch }}
path: ${{ env.APK_DIR_PATH }}/${{ env.APK_BASENAME_PREFIX }}_*.apk
13 changes: 13 additions & 0 deletions rvba/build-rvba-app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,19 @@ log "Patching downloadBootstrap()" y
sed -i '/def downloadBootstrap/a return;' app/build.gradle
end_group

log "Setting up variables" y
RELEASE_VERSION_NAME="$GITHUB_REF_NAME+${GITHUB_SHA:0:7}"
APK_DIR_PATH="./app/build/outputs/apk/debug"
APK_VERSION_TAG="$RELEASE_VERSION_NAME-$1"
APK_BASENAME_PREFIX="revanced-builder_$APK_VERSION_TAG"
echo "APK_DIR_PATH=$APK_DIR_PATH" >> $GITHUB_ENV
echo "APK_VERSION_TAG=$APK_VERSION_TAG" >> $GITHUB_ENV
echo "APK_BASENAME_PREFIX=$APK_BASENAME_PREFIX" >> $GITHUB_ENV
export TERMUX_APP_VERSION_NAME="${RELEASE_VERSION_NAME/v/}"
export TERMUX_APK_VERSION_TAG="$APK_VERSION_TAG"
export TERMUX_PACKAGE_VARIANT="apt-android-7"
end_group

if [[ -z $1 ]] || [[ $1 == aarch64 ]]; then

log "Copying aarch64 bootstrap" y
Expand Down

0 comments on commit 6dc0985

Please sign in to comment.