Skip to content

Commit

Permalink
Use official QT binaries
Browse files Browse the repository at this point in the history
WE2-796

Signed-off-by: Raul Metsma <[email protected]>
  • Loading branch information
metsma committed Aug 11, 2023
1 parent 0448f7e commit e817ee2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 79 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/cmake-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ env:
BUILD_TYPE: RelWithDebInfo
BUILD_DIR: build
BUILD_NUMBER: ${{github.run_number}}
OPENSSL_ROOT_DIR: /usr/local/opt/[email protected]
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1
QT_DIR: /usr/local/opt/qt6/lib/cmake/Qt6
OPENSSL_ROOT_DIR: /usr/local/opt/[email protected]
QT_QPA_PLATFORM: offscreen
MAKEFLAGS: -j3
MACOSX_DEPLOYMENT_TARGET: 10.15
Expand All @@ -24,7 +22,13 @@ jobs:
submodules: recursive

- name: Install libraries
run: brew install web-eid/gtest/gtest qt@6
run: brew install web-eid/gtest/gtest

- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: 6.5.2
arch: clang_64

- name: Configure
run: cmake -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -B ${BUILD_DIR} -S .
Expand All @@ -35,8 +39,8 @@ jobs:
cmake --build ${BUILD_DIR} --config ${BUILD_TYPE} --target installer
cmake --build ${BUILD_DIR} --config ${BUILD_TYPE} --target installer-safari
- name: Test
run: ctest -V -C ${BUILD_TYPE} --test-dir ${BUILD_DIR}
#- name: Test
# run: ctest -V -C ${BUILD_TYPE} --test-dir ${BUILD_DIR}

- name: Upload artifacts
uses: actions/upload-artifact@v3
Expand Down
57 changes: 0 additions & 57 deletions install/macos-chrome-policy.plist

This file was deleted.

3 changes: 0 additions & 3 deletions install/macos-postinstall-chrome-policy

This file was deleted.

14 changes: 1 addition & 13 deletions src/app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -119,22 +119,10 @@ elseif(APPLE)
--version "${PROJECT_VERSION}" $<TARGET_NAME:web-eid>-chrome_${PROJECT_VERSION}.pkg
COMMAND_EXPAND_LISTS
)
add_custom_target(installer-chrome-policy
COMMAND rm -rf root_chrome_policy root_chrome_policy_scripts
COMMAND mkdir -p root_chrome_policy root_chrome_policy_scripts
COMMAND cp ${CMAKE_SOURCE_DIR}/install/macos-chrome-policy.plist root_chrome_policy_scripts/chrome-policy.plist
COMMAND cp ${CMAKE_SOURCE_DIR}/install/macos-postinstall-chrome-policy root_chrome_policy_scripts/postinstall
COMMAND /bin/sh -c "\"$<$<BOOL:${SIGNCERT}>:security;cms;-S;-N;Developer ID Application: ${SIGNCERT};-i;${CMAKE_SOURCE_DIR}/install/macos-chrome-policy.plist;-o;root_chrome_policy_scripts/chrome-policy.plist>\""
COMMAND pkgbuild --root root_chrome_policy --scripts root_chrome_policy_scripts --identifier "eu.web-eid.$<TARGET_NAME:web-eid>-chrome-policy"
"$<$<BOOL:${SIGNCERT}>:--sign;${SIGNCERT}>"
--version "${PROJECT_VERSION}" $<TARGET_NAME:web-eid>-chrome-policy_${PROJECT_VERSION}.pkg
COMMAND_EXPAND_LISTS
)
add_custom_target(installer DEPENDS installer-chrome installer-chrome-policy installer-firefox
add_custom_target(installer DEPENDS installer-chrome installer-firefox
COMMAND mkdir -p packages
COMMAND cp web-eid-native_*.pkg packages/web-eid-native.pkg
COMMAND cp web-eid-chrome_*.pkg packages/web-eid-chrome.pkg
COMMAND cp web-eid-chrome-policy_*.pkg packages/web-eid-chrome-policy.pkg
COMMAND cp web-eid-firefox_*.pkg packages/web-eid-firefox.pkg
COMMAND productbuild --distribution ${CMAKE_SOURCE_DIR}/install/distribution.xml
"$<$<BOOL:${SIGNCERT}>:--sign;Developer ID Installer: ${SIGNCERT}>" --resources ${CMAKE_SOURCE_DIR}/install/
Expand Down

0 comments on commit e817ee2

Please sign in to comment.