mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 18:03:33 +00:00
never surrender
This commit is contained in:
parent
cd9ae97bc7
commit
830e9076f1
2 changed files with 20 additions and 47 deletions
65
.github/workflows/github_release.yml
vendored
65
.github/workflows/github_release.yml
vendored
|
|
@ -35,15 +35,16 @@ jobs:
|
||||||
echo "BUILD_TOOL_VERSION=$BUILD_TOOL_VERSION" >> $GITHUB_ENV
|
echo "BUILD_TOOL_VERSION=$BUILD_TOOL_VERSION" >> $GITHUB_ENV
|
||||||
echo Last build tool version is: $BUILD_TOOL_VERSION
|
echo Last build tool version is: $BUILD_TOOL_VERSION
|
||||||
|
|
||||||
- name: Build All APKs
|
- name: Build All Release APKs
|
||||||
id: build
|
id: build
|
||||||
run: |
|
run: |
|
||||||
# Build release variants
|
# Only build release variants (removed debug builds)
|
||||||
bash ./gradlew assembleTempusRelease
|
bash ./gradlew assembleTempusRelease
|
||||||
bash ./gradlew assembleDegoogledRelease
|
bash ./gradlew assembleDegoogledRelease
|
||||||
# Build debug variants
|
|
||||||
bash ./gradlew assembleTempusDebug
|
|
||||||
bash ./gradlew assembleDegoogledDebug
|
- name: Create Artifact Staging Directory
|
||||||
|
run: mkdir -p release-artifacts
|
||||||
|
|
||||||
- name: Sign Tempus Release APKs
|
- name: Sign Tempus Release APKs
|
||||||
id: sign_tempus_release
|
id: sign_tempus_release
|
||||||
|
|
@ -61,21 +62,13 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
TEMPUS_PATH=app/build/outputs/apk/tempus/release
|
TEMPUS_PATH=app/build/outputs/apk/tempus/release
|
||||||
|
|
||||||
echo "--- Files in Tempus Release Directory ---"
|
# Renaming 64-bit APK and moving to safe staging directory
|
||||||
ls -la $TEMPUS_PATH
|
mv $TEMPUS_PATH/*arm64-v8a*signed.apk ./release-artifacts/app-tempus-arm64-v8a-release.apk
|
||||||
echo "-----------------------------------------"
|
|
||||||
|
|
||||||
# TARGET: app-tempus-arm64-v8a-release-unsigned-signed.apk
|
# Renaming 32-bit APK and moving to safe staging directory
|
||||||
# We use a wildcard that matches the ABI AND ensures it's the signed file.
|
mv $TEMPUS_PATH/*armeabi-v7a*signed.apk ./release-artifacts/app-tempus-armeabi-v7a-release.apk
|
||||||
|
|
||||||
# Renaming 64-bit APK
|
|
||||||
mv $TEMPUS_PATH/*arm64-v8a*signed.apk ./app-tempus-arm64-v8a-release.apk
|
|
||||||
|
|
||||||
# Renaming 32-bit APK
|
|
||||||
mv $TEMPUS_PATH/*armeabi-v7a*signed.apk ./app-tempus-armeabi-v7a-release.apk
|
|
||||||
|
|
||||||
echo "Prepared Tempus APKs."
|
echo "Prepared Tempus APKs."
|
||||||
ls -la *.apk
|
|
||||||
|
|
||||||
- name: Sign Degoogled Release APKs
|
- name: Sign Degoogled Release APKs
|
||||||
id: sign_degoogled_release
|
id: sign_degoogled_release
|
||||||
|
|
@ -93,18 +86,14 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
DEGOOGLED_PATH=app/build/outputs/apk/degoogled/release
|
DEGOOGLED_PATH=app/build/outputs/apk/degoogled/release
|
||||||
|
|
||||||
echo "--- Files in Degoogled Release Directory ---"
|
# Renaming 64-bit APK and moving to safe staging directory
|
||||||
ls -la $DEGOOGLED_PATH
|
mv $DEGOOGLED_PATH/*arm64-v8a*signed.apk ./release-artifacts/app-degoogled-arm64-v8a-release.apk
|
||||||
echo "-----------------------------------------"
|
|
||||||
|
|
||||||
# Renaming 64-bit APK
|
# Renaming 32-bit APK and moving to safe staging directory
|
||||||
mv $DEGOOGLED_PATH/*arm64-v8a*signed.apk ./app-degoogled-arm64-v8a-release.apk
|
mv $DEGOOGLED_PATH/*armeabi-v7a*signed.apk ./release-artifacts/app-degoogled-armeabi-v7a-release.apk
|
||||||
|
|
||||||
# Renaming 32-bit APK
|
|
||||||
mv $DEGOOGLED_PATH/*armeabi-v7a*signed.apk ./app-degoogled-armeabi-v7a-release.apk
|
|
||||||
|
|
||||||
echo "Prepared Degoogled APKs."
|
echo "Prepared Degoogled APKs."
|
||||||
ls -la *.apk
|
ls -la ./release-artifacts/
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
|
|
@ -115,29 +104,13 @@ jobs:
|
||||||
body: '> Changelog coming soon'
|
body: '> Changelog coming soon'
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
# Attach all four files in one go to the release created above
|
files: ./release-artifacts/*.apk
|
||||||
files: |
|
|
||||||
./app-tempus-arm64-v8a-release.apk
|
|
||||||
./app-tempus-armeabi-v7a-release.apk
|
|
||||||
./app-degoogled-arm64-v8a-release.apk
|
|
||||||
./app-degoogled-armeabi-v7a-release.apk
|
|
||||||
|
|
||||||
- name: Upload Debug APKs as artifacts
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: debug-apks
|
|
||||||
path: |
|
|
||||||
app/build/outputs/apk/tempus/debug/
|
|
||||||
app/build/outputs/apk/degoogled/debug/
|
|
||||||
retention-days: 30
|
|
||||||
|
|
||||||
- name: Upload Release APKs as artifacts
|
|
||||||
|
- name: Upload Release APKs as artifacts (For easy pipeline access)
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: release-apks
|
name: release-apks
|
||||||
path: |
|
path: ./release-artifacts/*.apk
|
||||||
./app-tempus-arm64-v8a-release.apk
|
|
||||||
./app-tempus-armeabi-v7a-release.apk
|
|
||||||
./app-degoogled-arm64-v8a-release.apk
|
|
||||||
./app-degoogled-armeabi-v7a-release.apk
|
|
||||||
retention-days: 30
|
retention-days: 30
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ android {
|
||||||
targetSdk 35
|
targetSdk 35
|
||||||
|
|
||||||
versionCode 1
|
versionCode 1
|
||||||
versionName '4.0.3'
|
versionName '4.0.4'
|
||||||
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
|
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
|
||||||
|
|
||||||
javaCompileOptions {
|
javaCompileOptions {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue