Files
modeling-app/add-osx-cert.sh
Pierre Jacquier 12ed4d5925 First steps for electron app build and packaging in Github Actions
Builds on the ci.yml refactor started at !2815

commit 6813adf86d1d7b78a9a4e77039313dccd67c3083
Author: Pierre Jacquier <pierrejacquier39@gmail.com>
Date:   Mon Aug 5 11:27:03 2024 -0400

    Lint

commit fe95e2e1302beb213da9f9bde5feeda255e116fd
Author: Pierre Jacquier <pierrejacquier39@gmail.com>
Date:   Mon Aug 5 10:34:34 2024 -0400

    Disable sign if not BUILD_RELEASE

commit 8f31952e217f1dc1c683705cdb28bdd7042ccdc7
Author: Pierre Jacquier <pierrejacquier39@gmail.com>
Date:   Mon Aug 5 08:31:42 2024 -0400

    WIP sign windows

commit fbabc874d41e8e57011454afec68c2b4926c842b
Author: Pierre Jacquier <pierrejacquier39@gmail.com>
Date:   Mon Aug 5 07:51:20 2024 -0400

    WIP macos

commit 6a8cc629e45b0c041fb31f1daf5f3a56f10871cc
Author: Pierre Jacquier <pierrejacquier39@gmail.com>
Date:   Mon Aug 5 11:15:28 2024 +0000

    Change executable name for deb

commit b616aece2673086c2bf376d583dd4f0d8c09a23d
Author: Pierre Jacquier <pierrejacquier39@gmail.com>
Date:   Mon Aug 5 05:56:26 2024 -0400

    WIP macos signing, ubuntu build

commit b4c7ac8b9b73d18f26d2d1e7cfe0494e713e5231
Author: Pierre Jacquier <pierrejacquier39@gmail.com>
Date:   Mon Aug 5 05:41:53 2024 -0400

    Fix ubuntu target

commit 23b694327e2c5ee570257fb66f51ff65b7b6f6f4
Author: Pierre Jacquier <pierrejacquier39@gmail.com>
Date:   Mon Aug 5 05:23:29 2024 -0400

    Fix upload for Windows, add ubuntu

commit 54df186f632a277e68b280fccd547f83208c2b8b
Author: Pierre Jacquier <pierrejacquier39@gmail.com>
Date:   Mon Aug 5 05:00:47 2024 -0400

    Fix tsc, remove e2e/tauri tests

commit 1c76e793d1b2d8781f5fce7399b3118438331428
Author: Pierre Jacquier <pierrejacquier39@gmail.com>
Date:   Sat Aug 3 08:25:39 2024 -0400

    Lint, codespell, remove tauri/wdio ref, add author

commit 51e91558978e634677e58c8c7248b0bbda0a82d6
Author: Pierre Jacquier <pierrejacquier39@gmail.com>
Date:   Sat Aug 3 08:11:24 2024 -0400

    Add new ci.yml breakdown from pierremtb/issue2805. Windows and macOS only for now
2024-08-08 12:33:38 -04:00

24 lines
725 B
Bash

#!/usr/bin/env sh
# From https://dev.to/rwwagner90/signing-electron-apps-with-github-actions-4cof
KEY_CHAIN=build.keychain
CERTIFICATE_P12=certificate.p12
# Recreate the certificate from the secure environment variable
echo $APPLE_CERTIFICATE | base64 --decode > $CERTIFICATE_P12
#create a keychain
security create-keychain -p actions $KEY_CHAIN
# Make the keychain the default so identities are found
security default-keychain -s $KEY_CHAIN
# Unlock the keychain
security unlock-keychain -p actions $KEY_CHAIN
security import $CERTIFICATE_P12 -k $KEY_CHAIN -P $APPLE_CERTIFICATE_PASSWORD -T /usr/bin/codesign;
security set-key-partition-list -S apple-tool:,apple: -s -k actions $KEY_CHAIN
# remove certs
rm -fr *.p12