mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-26 22:03:55 +03:00
Add dev-util/release-mac.sh
This commit is contained in:
parent
9a1de44c63
commit
aab64e1d13
23
dev-util/release-mac.sh
Executable file
23
dev-util/release-mac.sh
Executable file
@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Exit on error
|
||||
set -e
|
||||
|
||||
PROJECT_NAME='yubioath-desktop'
|
||||
APP_NAME='Yubico Authenticator'
|
||||
APP_DIR_IN_TAR="."
|
||||
|
||||
version=$(python3 compute-version.py "${PROJECT_NAME}"-)
|
||||
|
||||
rm -rf "deploy/unpacked"
|
||||
|
||||
mkdir -p deploy/unpacked
|
||||
cd deploy/unpacked
|
||||
|
||||
tar xf "../${PROJECT_NAME}-${version}.app.tar"
|
||||
cd "${APP_DIR_IN_TAR}"
|
||||
mv "${PROJECT_NAME}.app" "${APP_NAME}.app"
|
||||
|
||||
codesign --deep --verify --verbose --sign 'Developer ID Application' "${APP_NAME}.app"
|
||||
productbuild --sign 'Developer ID Installer' --component "${APP_NAME}.app" /Applications/ "${PROJECT_NAME}-${version}-mac.pkg"
|
||||
gpg --detach-sign "${PROJECT_NAME}-${version}-mac.pkg"
|
Loading…
Reference in New Issue
Block a user