Skip to content

Prepare release for F-Droid #1600

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions .github/workflows/android-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,6 @@ jobs:
name: robosats-${{ inputs.semver }}-x86_64.apk
path: mobile/android/app/build/outputs/apk/release/app-x86_64-release.apk

# Create app-x86-release APK artifact asset for Release
- name: 'Upload x86 .apk Release Artifact (for Release)'
uses: actions/upload-artifact@v4
if: inputs.semver != '' # If this workflow is called from release.yml
with:
name: robosats-${{ inputs.semver }}-x86.apk
path: mobile/android/app/build/outputs/apk/release/app-x86-release.apk

- name: 'Create Pre-release'
id: create_release
if: inputs.semver == '' # only if this workflow is not called from a push to tag (a Release)
Expand Down Expand Up @@ -200,16 +192,3 @@ jobs:
asset_path: ./mobile/android/app/build/outputs/apk/release/app-x86_64-release.apk
asset_name: robosats-${{ steps.commit.outputs.short }}-x86_64.apk
asset_content_type: application/apk

# Upload x86 APK to pre-release
- name: 'Upload x86 Pre-release APK Asset'
id: upload-release-x86-apk-asset
if: inputs.semver == '' # only if this workflow is not called from a push to tag (a Release)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./mobile/android/app/build/outputs/apk/release/app-x86-release.apk
asset_name: robosats-${{ steps.commit.outputs.short }}-x86.apk
asset_content_type: application/apk
23 changes: 3 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
secrets: inherit
with:
semver: ${{ needs.check-versions.outputs.semver }}

desktop-build:
uses: RoboSats/robosats/.github/workflows/desktop-build.yml@main
needs: [frontend-build, check-versions]
Expand Down Expand Up @@ -163,29 +163,12 @@ jobs:
asset_name: robosats-${{ needs.check-versions.outputs.semver }}-x86_64.apk
asset_content_type: application/apk

# Upload app-x86-release APK artifact asset
- name: 'Download x86 APK Artifact'
uses: actions/download-artifact@v4
with:
name: robosats-${{ needs.check-versions.outputs.semver }}-x86.apk
path: .
- name: 'Upload x86 APK Asset'
id: upload-x86-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create-release.outputs.upload_url }}
asset_path: app-x86-release.apk
asset_name: robosats-${{ needs.check-versions.outputs.semver }}-x86.apk
asset_content_type: application/apk

- name: 'Download macOS Build Artifact'
uses: actions/download-artifact@v4
with:
name: robosats-desktop-${{ needs.check-versions.outputs.semver }}-mac-darwin-x64.zip
path: .

- name: 'Upload macOS Build Artifact'
id: upload-release-mac-zip-asset
uses: actions/upload-release-asset@v1
Expand Down Expand Up @@ -219,7 +202,7 @@ jobs:
with:
name: robosats-desktop-${{ needs.check-versions.outputs.semver }}-win32-ia32.zip
path: .

- name: 'Upload Windows Build Artifact'
id: upload-release-win-zip-asset
uses: actions/upload-release-asset@v1
Expand Down
5 changes: 2 additions & 3 deletions mobile/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def enableHermes = project.ext.react.get("enableHermes", false);
*/
def reactNativeArchitectures() {
def value = project.getProperties().get("reactNativeArchitectures")
return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"]
return value ? value.split(",") : ["armeabi-v7a", "x86_64", "arm64-v8a"]
}

android {
Expand All @@ -144,7 +144,6 @@ android {
pickFirst 'lib/armeabi-v7a/libruntimeexecutor.so'
pickFirst 'lib/arm64-v8a/libruntimeexecutor.so'
pickFirst 'lib/x86_64/libruntimeexecutor.so'
pickFirst 'lib/x86/libruntimeexecutor.so'
}

defaultConfig {
Expand Down Expand Up @@ -264,7 +263,7 @@ android {
// For each separate APK per architecture, set a unique version code as described here:
// https://developer.android.com/studio/build/configure-apk-splits.html
// Example: versionCode 1 will generate 1001 for armeabi-v7a, 1002 for x86, etc.
def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4]
def versionCodes = ["armeabi-v7a": 1, "arm64-v8a": 3, "x86_64": 4]
def abi = output.getFilter(OutputFile.ABI)
if (abi != null) { // null for the universal-debug, universal-release variants
output.versionCodeOverride =
Expand Down
Binary file modified mobile/android/app/src/main/jniLibs/arm64-v8a/librobohash.so
Binary file not shown.
Binary file modified mobile/android/app/src/main/jniLibs/arm64-v8a/librobonames.so
Binary file not shown.
Binary file modified mobile/android/app/src/main/jniLibs/armeabi-v7a/librobohash.so
Binary file not shown.
Binary file modified mobile/android/app/src/main/jniLibs/armeabi-v7a/librobonames.so
Binary file not shown.
2 changes: 1 addition & 1 deletion mobile/android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ android.enableJetifier=true
# Use this property to specify which architecture you want to build.
# You can also override it from the CLI using
# ./gradlew <task> -PreactNativeArchitectures=x86_64
reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86_64

# Use this property to enable support to the new architecture.
# This will allow you to use TurboModules and the Fabric render in
Expand Down