fix bug qt-cmake
This commit is contained in:
parent
aaa8030348
commit
d0db1293b5
2 changed files with 47 additions and 11 deletions
22
.github/workflows/deploy.yml
vendored
22
.github/workflows/deploy.yml
vendored
|
|
@ -310,17 +310,17 @@ jobs:
|
||||||
with:
|
with:
|
||||||
xcode-version: '14.3.1'
|
xcode-version: '14.3.1'
|
||||||
|
|
||||||
- name: 'Install Qt'
|
- name: 'Install desktop Qt'
|
||||||
uses: jurplel/install-qt-action@v3
|
uses: jurplel/install-qt-action@v3
|
||||||
with:
|
with:
|
||||||
version: ${{ env.QT_VERSION }}
|
version: ${{ env.QT_VERSION }}
|
||||||
host: 'mac'
|
host: 'mac'
|
||||||
target: 'desktop'
|
target: 'desktop'
|
||||||
arch: 'clang_64'
|
modules: 'qtremoteobjects qt5compat qtshadertools qtmultimedia'
|
||||||
dir: ${{ runner.temp }}
|
arch: 'clang_64'
|
||||||
setup-python: 'true'
|
dir: ${{ runner.temp }}
|
||||||
set-env: 'true' # This will set QT_PATH
|
set-env: 'true'
|
||||||
extra: '--external 7z --base https://mirrors.ocf.berkeley.edu/qt/'
|
extra: '--base ${{ env.QT_MIRROR }}'
|
||||||
- name: 'Install Qt Installer Framework ${{ env.QIF_VERSION }}'
|
- name: 'Install Qt Installer Framework ${{ env.QIF_VERSION }}'
|
||||||
run: |
|
run: |
|
||||||
mkdir -pv ${{ runner.temp }}/Qt/Tools/QtInstallerFramework
|
mkdir -pv ${{ runner.temp }}/Qt/Tools/QtInstallerFramework
|
||||||
|
|
|
||||||
|
|
@ -147,3 +147,39 @@ if [ "${MAC_CERT_PW+x}" ]; then
|
||||||
echo "Signing installer bundle..."
|
echo "Signing installer bundle..."
|
||||||
security unlock-keychain -p $TEMP_PASS $KEYCHAIN
|
security unlock-keychain -p $TEMP_PASS $KEYCHAIN
|
||||||
/usr/bin/codesign --deep --force --verbose --timestamp -o runtime --sign "$MAC_SIGNER_ID" $INSTALLER_BUNDLE_DIR
|
/usr/bin/codesign --deep --force --verbose --timestamp -o runtime --sign "$MAC_SIGNER_ID" $INSTALLER_BUNDLE_DIR
|
||||||
|
/usr/bin/codesign --verify -vvvv $INSTALLER_BUNDLE_DIR || true
|
||||||
|
|
||||||
|
if [ "${NOTARIZE_APP+x}" ]; then
|
||||||
|
echo "Notarizing installer bundle..."
|
||||||
|
/usr/bin/ditto -c -k --keepParent $INSTALLER_BUNDLE_DIR $PROJECT_DIR/Installer_bundle_to_notarize.zip
|
||||||
|
xcrun notarytool submit $PROJECT_DIR/Installer_bundle_to_notarize.zip --apple-id $APPLE_DEV_EMAIL --team-id $MAC_TEAM_ID --password $APPLE_DEV_PASSWORD
|
||||||
|
rm $PROJECT_DIR/Installer_bundle_to_notarize.zip
|
||||||
|
sleep 300
|
||||||
|
xcrun stapler staple $INSTALLER_BUNDLE_DIR
|
||||||
|
xcrun stapler validate $INSTALLER_BUNDLE_DIR
|
||||||
|
spctl -a -vvvv $INSTALLER_BUNDLE_DIR || true
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Building DMG installer..."
|
||||||
|
hdiutil create -size 256mb -volname AmneziaVPN -srcfolder $BUILD_DIR/installer/$APP_NAME.app -ov -format UDZO $DMG_FILENAME
|
||||||
|
|
||||||
|
if [ "${MAC_CERT_PW+x}" ]; then
|
||||||
|
echo "Signing DMG installer..."
|
||||||
|
security unlock-keychain -p $TEMP_PASS $KEYCHAIN
|
||||||
|
/usr/bin/codesign --deep --force --verbose --timestamp -o runtime --sign "$MAC_SIGNER_ID" $DMG_FILENAME
|
||||||
|
/usr/bin/codesign --verify -vvvv $DMG_FILENAME || true
|
||||||
|
|
||||||
|
if [ "${NOTARIZE_APP+x}" ]; then
|
||||||
|
echo "Notarizing DMG installer..."
|
||||||
|
xcrun notarytool submit $DMG_FILENAME --apple-id $APPLE_DEV_EMAIL --team-id $MAC_TEAM_ID --password $APPLE_DEV_PASSWORD
|
||||||
|
sleep 300
|
||||||
|
xcrun stapler staple $DMG_FILENAME
|
||||||
|
xcrun stapler validate $DMG_FILENAME
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Finished, artifact is $DMG_FILENAME"
|
||||||
|
|
||||||
|
# restore keychain
|
||||||
|
security default-keychain -s login.keychain
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue