-
-
Notifications
You must be signed in to change notification settings - Fork 223
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Could we get to green macos on forked repo?
- Loading branch information
Showing
2 changed files
with
32 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,7 @@ jobs: | |
- name: ⛓️ Setup SSH | ||
uses: webfactory/[email protected] | ||
if: ${{ github.repository_owner == 'opengisch' }} | ||
with: | ||
ssh-private-key: ${{ secrets.SSH_KEY_DEPLOYMENT_CERTIFICATES }} | ||
|
||
|
@@ -56,6 +57,7 @@ jobs: | |
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | ||
|
||
- name: 🔏 Setup code signing | ||
if: ${{ github.repository_owner == 'opengisch' }} | ||
env: | ||
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} | ||
run: | | ||
|
@@ -133,6 +135,8 @@ jobs: | |
ctest --output-on-failure -R smoke -C ${{ env.BUILD_TYPE }} | ||
- name: 📦 Package | ||
env: | ||
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} | ||
run: | | ||
echo "Killing XProtect..."; sudo pkill -9 XProtect >/dev/null || true; # see https://github.com/actions/runner-images/issues/7522 | ||
cmake --build "${{ env.CMAKE_BUILD_DIR }}" --target bundle --config ${{ env.BUILD_TYPE }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,33 @@ | ||
# -appstore-compliant will strip away odbc, psql and webengine plugins | ||
execute_process(COMMAND "${MACDEPLOYQT_EXECUTABLE}" qfield.app -appstore-compliant -qmldir=${CMAKE_SOURCE_DIR}/src/qml -codesign=${MACOS_CODE_SIGN_IDENTITY} -sign-for-notarization=${MACOS_CODE_SIGN_IDENTITY} | ||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/output/bin | ||
COMMAND_ERROR_IS_FATAL ANY | ||
) | ||
if(NOT "$ENV{MATCH_PASSWORD}" STREQUAL "" | ||
AND NOT "$ENV{MATCH_PASSWORD}" STREQUAL "" | ||
AND NOT "$ENV{MATCH_PASSWORD}" STREQUAL "") | ||
# -appstore-compliant will strip away odbc, psql and webengine plugins | ||
execute_process(COMMAND "${MACDEPLOYQT_EXECUTABLE}" qfield.app -appstore-compliant -qmldir=${CMAKE_SOURCE_DIR}/src/qml -codesign=${MACOS_CODE_SIGN_IDENTITY} -sign-for-notarization=${MACOS_CODE_SIGN_IDENTITY} | ||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/output/bin | ||
COMMAND_ERROR_IS_FATAL ANY | ||
) | ||
|
||
execute_process(COMMAND create-dmg --volname "QField Installer" --hide-extension qfield.app --volicon "${CMAKE_SOURCE_DIR}/platform/macos/installer.icns" --background "${CMAKE_SOURCE_DIR}/platform/macos/installer_background.png" --window-pos 200 120 --window-size 512 320 --icon-size 100 --icon "qfield.app" 130 160 --app-drop-link 400 155 --codesign "${MACOS_CODE_SIGN_IDENTITY}" ${CMAKE_BINARY_DIR}/QField-Installer.dmg ${CMAKE_BINARY_DIR}/output/bin/qfield.app | ||
RESULT_VARIABLE CREATE_DMG_FAILURE) | ||
execute_process(COMMAND create-dmg --volname "QField Installer" --hide-extension qfield.app --volicon "${CMAKE_SOURCE_DIR}/platform/macos/installer.icns" --background "${CMAKE_SOURCE_DIR}/platform/macos/installer_background.png" --window-pos 200 120 --window-size 512 320 --icon-size 100 --icon "qfield.app" 130 160 --app-drop-link 400 155 --codesign "${MACOS_CODE_SIGN_IDENTITY}" ${CMAKE_BINARY_DIR}/QField-Installer.dmg ${CMAKE_BINARY_DIR}/output/bin/qfield.app | ||
RESULT_VARIABLE CREATE_DMG_FAILURE) | ||
|
||
if(CREATE_DMG_FAILURE) | ||
if(CREATE_DMG_FAILURE) | ||
message(STATUS "Creating dmg failed. Retrying ...") | ||
execute_process(COMMAND create-dmg --volname "QField Installer" --hide-extension qfield.app --volicon "${CMAKE_SOURCE_DIR}/platform/macos/installer.icns" --background "${CMAKE_SOURCE_DIR}/platform/macos/installer_background.png" --window-pos 200 120 --window-size 512 320 --icon-size 100 --icon "qfield.app" 130 160 --app-drop-link 400 155 --codesign "${MACOS_CODE_SIGN_IDENTITY}" ${CMAKE_BINARY_DIR}/QField-Installer.dmg ${CMAKE_BINARY_DIR}/output/bin/qfield.app | ||
COMMAND_ERROR_IS_FATAL ANY) | ||
COMMAND_ERROR_IS_FATAL ANY) | ||
endif() | ||
else() | ||
# -appstore-compliant will strip away odbc, psql and webengine plugins | ||
execute_process(COMMAND "${MACDEPLOYQT_EXECUTABLE}" qfield.app -appstore-compliant -qmldir=${CMAKE_SOURCE_DIR}/src/qml | ||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/output/bin | ||
COMMAND_ERROR_IS_FATAL ANY | ||
) | ||
|
||
execute_process(COMMAND create-dmg --volname "QField Installer" --hide-extension qfield.app --volicon "${CMAKE_SOURCE_DIR}/platform/macos/installer.icns" --background "${CMAKE_SOURCE_DIR}/platform/macos/installer_background.png" --window-pos 200 120 --window-size 512 320 --icon-size 100 --icon "qfield.app" 130 160 --app-drop-link 400 155 ${CMAKE_BINARY_DIR}/QField-Installer.dmg ${CMAKE_BINARY_DIR}/output/bin/qfield.app | ||
RESULT_VARIABLE CREATE_DMG_FAILURE) | ||
|
||
if(CREATE_DMG_FAILURE) | ||
message(STATUS "Creating dmg failed. Retrying ...") | ||
execute_process(COMMAND create-dmg --volname "QField Installer" --hide-extension qfield.app --volicon "${CMAKE_SOURCE_DIR}/platform/macos/installer.icns" --background "${CMAKE_SOURCE_DIR}/platform/macos/installer_background.png" --window-pos 200 120 --window-size 512 320 --icon-size 100 --icon "qfield.app" 130 160 --app-drop-link 400 155 ${CMAKE_BINARY_DIR}/QField-Installer.dmg ${CMAKE_BINARY_DIR}/output/bin/qfield.app | ||
COMMAND_ERROR_IS_FATAL ANY) | ||
endif() | ||
endif() |