Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c95e7cc5e0 | ||
|
|
0c3b43c5dc | ||
|
|
830e9076f1 |
72
.github/workflows/github_release.yml
vendored
72
.github/workflows/github_release.yml
vendored
@@ -3,7 +3,7 @@ name: Github Release Workflow
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v[0-9]+.[0-9]+.[0-9]+'
|
- '[0-9]+.[0-9]+.[0-9]+'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -35,15 +35,15 @@ 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
|
- name: Create Artifact Staging Directory
|
||||||
bash ./gradlew assembleDegoogledDebug
|
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 +61,21 @@ 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 ---"
|
echo "--- Tempus Files BEFORE Move ---"
|
||||||
ls -la $TEMPUS_PATH
|
ls -la $TEMPUS_PATH
|
||||||
echo "-----------------------------------------"
|
echo "--------------------------------"
|
||||||
|
|
||||||
# TARGET: app-tempus-arm64-v8a-release-unsigned-signed.apk
|
# FIX: Use find/xargs for robust file matching and moving.
|
||||||
# We use a wildcard that matches the ABI AND ensures it's the signed file.
|
|
||||||
|
|
||||||
# Renaming 64-bit APK
|
# Renaming 64-bit APK and moving to safe staging directory
|
||||||
mv $TEMPUS_PATH/*arm64-v8a*signed.apk ./app-tempus-arm64-v8a-release.apk
|
find $TEMPUS_PATH -name '*arm64-v8a*signed.apk' -print0 | xargs -0 mv -t ./release-artifacts/
|
||||||
|
mv ./release-artifacts/*arm64-v8a*signed.apk ./release-artifacts/app-tempus-arm64-v8a-release.apk
|
||||||
|
|
||||||
# Renaming 32-bit APK
|
# Renaming 32-bit APK and moving to safe staging directory
|
||||||
mv $TEMPUS_PATH/*armeabi-v7a*signed.apk ./app-tempus-armeabi-v7a-release.apk
|
find $TEMPUS_PATH -name '*armeabi-v7a*signed.apk' -print0 | xargs -0 mv -t ./release-artifacts/
|
||||||
|
mv ./release-artifacts/*armeabi-v7a*signed.apk ./release-artifacts/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 +93,22 @@ 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 ---"
|
echo "--- Degoogled Files BEFORE Move ---"
|
||||||
ls -la $DEGOOGLED_PATH
|
ls -la $DEGOOGLED_PATH
|
||||||
echo "-----------------------------------------"
|
echo "--------------------------------"
|
||||||
|
|
||||||
# Renaming 64-bit APK
|
# FIX: Use find/xargs for robust file matching and moving.
|
||||||
mv $DEGOOGLED_PATH/*arm64-v8a*signed.apk ./app-degoogled-arm64-v8a-release.apk
|
|
||||||
|
|
||||||
# Renaming 32-bit APK
|
# Renaming 64-bit APK and moving to safe staging directory
|
||||||
mv $DEGOOGLED_PATH/*armeabi-v7a*signed.apk ./app-degoogled-armeabi-v7a-release.apk
|
find $DEGOOGLED_PATH -name '*arm64-v8a*signed.apk' -print0 | xargs -0 mv -t ./release-artifacts/
|
||||||
|
mv ./release-artifacts/*arm64-v8a*signed.apk ./release-artifacts/app-degoogled-arm64-v8a-release.apk
|
||||||
|
|
||||||
|
# Renaming 32-bit APK and moving to safe staging directory
|
||||||
|
find $DEGOOGLED_PATH -name '*armeabi-v7a*signed.apk' -print0 | xargs -0 mv -t ./release-artifacts/
|
||||||
|
mv ./release-artifacts/*armeabi-v7a*signed.apk ./release-artifacts/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 +119,11 @@ 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
|
- name: Upload Release APKs as artifacts (For easy pipeline access)
|
||||||
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
|
|
||||||
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.6'
|
||||||
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
|
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
|
||||||
|
|
||||||
javaCompileOptions {
|
javaCompileOptions {
|
||||||
|
|||||||
Reference in New Issue
Block a user