Skip to content

Commit 34a9799

Browse files
committed
Strip release builds, rename app and artifact
- Add -s linker flag for Release builds to strip debug symbols - Rename Android app from QGroundControl-Herelink to QGroundControl-v5 - Name APK artifact with version and herelink suffix (e.g. QGroundControl-v5.0.8.1-herelink.apk)
1 parent 19343c2 commit 34a9799

3 files changed

Lines changed: 12 additions & 6 deletions

File tree

.github/workflows/android-linux-qt6.6.3.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ jobs:
3636
shell: bash
3737

3838
env:
39-
ARTIFACT: QGroundControl.apk
4039
PACKAGE: QGroundControl
4140
QT_VERSION: 6.6.3
4241
QT_ANDROID_KEYSTORE_PATH: ${{ github.workspace }}/deploy/android/android_release.keystore
@@ -58,6 +57,12 @@ jobs:
5857
run: |
5958
git fetch --all --tags -f --depth 1
6059
60+
- name: Determine artifact name
61+
id: artifact
62+
run: |
63+
VERSION=$(git describe --always --abbrev=0)
64+
echo "name=QGroundControl-${VERSION}-herelink.apk" >> $GITHUB_OUTPUT
65+
6166
- name: Initial Setup
6267
uses: ./.github/actions/common
6368

@@ -87,17 +92,17 @@ jobs:
8792
working-directory: ${{ runner.temp }}/shadow_build_dir
8893
run: cmake --build . --target all --config ${{ matrix.BuildType }}
8994

90-
- run: cp ${{ runner.temp }}/shadow_build_dir/android-build/*.apk ${{ runner.temp }}/shadow_build_dir/${{ env.ARTIFACT }}
95+
- run: cp ${{ runner.temp }}/shadow_build_dir/android-build/*.apk ${{ runner.temp }}/shadow_build_dir/${{ steps.artifact.outputs.name }}
9196

9297
- name: Save APK
9398
uses: actions/upload-artifact@v4
9499
with:
95-
name: ${{ env.ARTIFACT }}
96-
path: ${{ runner.temp }}/shadow_build_dir/android-build/*.apk
100+
name: ${{ steps.artifact.outputs.name }}
101+
path: ${{ runner.temp }}/shadow_build_dir/${{ steps.artifact.outputs.name }}
97102

98103
- name: Create GitHub Release
99104
if: github.ref_type == 'tag'
100105
uses: softprops/action-gh-release@v2
101106
with:
102-
files: ${{ runner.temp }}/shadow_build_dir/${{ env.ARTIFACT }}
107+
files: ${{ runner.temp }}/shadow_build_dir/${{ steps.artifact.outputs.name }}
103108
generate_release_notes: true

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ qt_policy(
243243
#######################################################
244244

245245
if(CMAKE_BUILD_TYPE STREQUAL "Release")
246+
add_link_options(-s)
246247
add_compile_definitions(
247248
NDEBUG
248249
QT_NO_DEBUG

custom/cmake/CustomOverrides.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
set(QGC_APP_NAME "QGroundControl-Herelink")
1+
set(QGC_APP_NAME "QGroundControl-v5")
22
set(QGC_APP_DESCRIPTION "QGroundControl Herelink")
33
set(QGC_APP_COPYRIGHT "Copyright (C) 2025 Cubepilot. All rights reserved.")
44
set(QGC_ORG_DOMAIN "org.cubepilot")

0 commit comments

Comments
 (0)