mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-05-03 16:17:45 +00:00
17ef17cfd0
* desktop: fix nanohttpd jitpack dependency * desktop: make assets-dir gradle flag optional
26 lines
1.3 KiB
Bash
Executable File
26 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
trap "rm apps/multiplatform/local.properties 2> /dev/null || true; rm local.properties 2> /dev/null || true; rm /tmp/simplex.keychain" EXIT
|
|
echo "desktop.mac.signing.identity=Developer ID Application: SimpleX Chat Ltd (5NN7GUYB6T)" >> apps/multiplatform/local.properties
|
|
echo "desktop.mac.signing.keychain=/tmp/simplex.keychain" >> apps/multiplatform/local.properties
|
|
echo "desktop.mac.notarization.apple_id=$APPLE_SIMPLEX_NOTARIZATION_APPLE_ID" >> apps/multiplatform/local.properties
|
|
echo "desktop.mac.notarization.password=$APPLE_SIMPLEX_NOTARIZATION_PASSWORD" >> apps/multiplatform/local.properties
|
|
echo "desktop.mac.notarization.team_id=5NN7GUYB6T" >> apps/multiplatform/local.properties
|
|
echo "$APPLE_SIMPLEX_SIGNING_KEYCHAIN" | base64 --decode -o /tmp/simplex.keychain
|
|
|
|
security unlock-keychain -p "" /tmp/simplex.keychain
|
|
# Adding keychain to the list of keychains.
|
|
# Otherwise, it can find cert but exits while signing with "error: The specified item could not be found in the keychain."
|
|
security list-keychains -s `security list-keychains | xargs` /tmp/simplex.keychain
|
|
scripts/desktop/build-lib-mac.sh
|
|
cd apps/multiplatform
|
|
if [ -n "${ASSETS_DIR:-}" ]; then
|
|
set -- -Psimplex.assets.dir="$ASSETS_DIR"
|
|
else
|
|
set --
|
|
fi
|
|
./gradlew "$@" packageDmg
|
|
./gradlew "$@" notarizeDmg
|