Skip to content

Commit

Permalink
Use a custom QField app name for home builds to avoid overlap with pl…
Browse files Browse the repository at this point in the history
…ay store
  • Loading branch information
nirvn committed Nov 12, 2023
1 parent 02d722a commit abb5cb3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions cmake/Package.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ if(ANDROID AND ANDROIDDEPLOYQT_EXECUTABLE)
set(ANDROID_TEMPLATE_FOLDER "${CMAKE_BINARY_DIR}/android-template")
file(COPY ${CMAKE_SOURCE_DIR}/platform/android/ DESTINATION ${ANDROID_TEMPLATE_FOLDER}/)
set(SRC_FOLDER "${ANDROID_TEMPLATE_FOLDER}/src/ch/opengis/${APP_PACKAGE_NAME}")
file(REMOVE_RECURSE ${SRC_FOLDER}) # remove any pre-existing content
file(RENAME "${ANDROID_TEMPLATE_FOLDER}/src/ch/opengis/qfield" ${SRC_FOLDER})
file(GLOB JAVA_FILES "${SRC_FOLDER}/*.java")
foreach(JAVA_FILE ${JAVA_FILES})
Expand Down
12 changes: 6 additions & 6 deletions scripts/build-vcpkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ CMAKE_BUILD_DIR=/usr/src/qfield/build-${triplet}

export Qt6_DIR=/home/devel/${install_qt_version}/${install_qt_arch}

[[ -z ${APP_NAME} ]] && APP_NAME="QField"
[[ -z ${APP_PACKAGE_NAME} ]] && APP_PACKAGE_NAME="qfield"
[[ -z ${APP_ICON} ]] && APP_ICON="qfield_logo"
[[ -z ${APP_NAME} ]] && APP_NAME="QField Home"
[[ -z ${APP_PACKAGE_NAME} ]] && APP_PACKAGE_NAME="qfield_home"
[[ -z ${APP_ICON} ]] && APP_ICON="qfield_logo_beta"

echo "Package name ${APP_PACKAGE_NAME}"

Expand All @@ -29,9 +29,9 @@ cmake -S "${SOURCE_DIR}" \
-D ANDROID_SDK_ROOT=/opt/android-sdk-linux \
-D ANDROID_BUILD_TOOLS_VERSION="${ANDROID_BUILD_TOOLS_VERSION}" \
-D WITH_SPIX=OFF \
-D APP_VERSION="v1.0.0" \
-D APK_VERSION_CODE="${APK_VERSION_CODE}" \
-D APP_VERSION_STR="${APP_VERSION_STR}" \
-D APK_VERSION_CODE="1" \
-D APP_VERSION="" \
-D APP_VERSION_STR="Home" \
-D APP_PACKAGE_NAME="${APP_PACKAGE_NAME}" \
-D APP_ICON="${APP_ICON}" \
-D APP_NAME="${APP_NAME}" \
Expand Down

0 comments on commit abb5cb3

Please sign in to comment.