Skip to content

Commit

Permalink
Fix CI scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
strseb committed Oct 27, 2022
1 parent ecd71cb commit eb75013
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 25 deletions.
9 changes: 2 additions & 7 deletions scripts/android/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@ while [[ $# -gt 0 ]]; do
shift
shift
;;
-A | --arch)
ARCH="$2"
shift
shift
;;
-j | --jobs)
JOBS="$2"
shift
Expand Down Expand Up @@ -114,11 +109,11 @@ if [[ "$RELEASE" ]]; then
android/gradlew assemble $GRADLE_ARGS || die

print G "Done 🎉"
print G "Your Release APK is under .tmp/src/android-build/build/outputs/apk/release/"
print G "Your Release APK is under android/build/outputs/apk/release/"
else
print Y "Generating Debug APK..."
android/gradlew compileDebugSources $GRADLE_ARGS
android/gradlew assembleDebug $GRADLE_ARGS || die
print G "Done 🎉"
print G "Your Debug APK is under .tmp/src/android-build/build/outputs/apk/debug/"
print G "Your Debug APK is under android/build/outputs/apk/debug/"
fi
12 changes: 3 additions & 9 deletions taskcluster/scripts/build/android_build_debug.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,12 @@ git submodule update
# translations
./scripts/utils/import_languages.py

# $1 should be the qmake arch.
# Note this is different from what aqt expects as arch:
#
# aqt-name "armv7" -> qmake-name: "armeabi-v7a"
# aqt-name "arm64_v8a" -> qmake-name: "arm64-v8a"
# aqt-name "x86" -> qmake-name: "x86"
# aqt-name "x86_64" -> qmake-name: "x86_64"
./scripts/android/package.sh -d $QTPATH -A $1

./scripts/android/package.sh -d $QTPATH

# Artifacts should be placed here!
mkdir -p /builds/worker/artifacts/
cp .tmp/src/android-build/build/outputs/apk/debug/* /builds/worker/artifacts/
cp android/build/build/outputs/apk/debug/* /builds/worker/artifacts/

# Have nicer names :)
mv /builds/worker/artifacts/android-build-x86_64-debug.apk /builds/worker/artifacts/mozillavpn-x86_64-debug.apk
Expand Down
11 changes: 2 additions & 9 deletions taskcluster/scripts/build/android_build_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,11 @@ echo "Fetching Tokens!"
# Artifacts should be placed here!
mkdir -p /builds/worker/artifacts/

# $1 should be the qmake arch.
# Note this is different from what aqt expects as arch:
#
# aqt-name "armv7" -> qmake-name: "armeabi-v7a"
# aqt-name "arm64_v8a" -> qmake-name: "arm64-v8a"
# aqt-name "x86" -> qmake-name: "x86"
# aqt-name "x86_64" -> qmake-name: "x86_64"
./scripts/android/package.sh $QTPATH -A $1 -a $(cat adjust_token)
./scripts/android/package.sh $QTPATH -a $(cat adjust_token)

# Artifacts should be placed here!
mkdir -p /builds/worker/artifacts/
cp .tmp/src/android-build/build/outputs/apk/release/* /builds/worker/artifacts/
cp android/build/build/outputs/apk/release/* /builds/worker/artifacts/

# The Sign task will not rename them, so marking them as unsigned is a bit off. :)
mv /builds/worker/artifacts/android-build-x86_64-release-unsigned.apk /builds/worker/artifacts/mozillavpn-x86_64-release.apk
Expand Down

0 comments on commit eb75013

Please sign in to comment.