Files
Max KleinandGitHub 6b0edc1cb7 Fix python server startup (#8)
* overhaul `launchPythonServer` code in app main

* run the windows app debug build on this branch

* upgrade typescript

* add assets script

* attempt to fix rehydrate process in `launchPythonServer`

* add some built assets to .gitignore

* fixing up actual launch of python server in `launchPythonServer`

* improve console feedback during one-time python install

* fixup handling of python in prod/dev builds

- in production build, install python to per-user application data dir
- in development build, install python to the in-source-tree assets dir
- also added cleanup of wheels dir post-install

* add scripts to create and clean assets to package.json

* add "Building/running" section to README

* add build linux github action and build-linux-debug workflow

* fix linux build action

* switch "Make app" step powershell => bash in linux build action

* attempt to turn on github action debug logging

* fixup target argument in "Make app" step of build-linux-debug

* add disk cleanup step to start of linux build action

* add command `make:assets:cpu` cmd for building cpu-only assets

* small cleanup of "yarn clean" cmds

* use `assets/python.tgz` on all platforms
2024-09-07 00:57:17 -04:00

23 lines
759 B
Bash
Executable File

#!/usr/bin/env bash
set -e
# Decode the base64 encoded certificate
echo $CERTIFICATE_OSX_APPLICATION | base64 --decode > certificate.p12
# Create a keychain
security create-keychain -p "$CERTIFICATE_PASSWORD" build.keychain
# Make the custom keychain default, so xcodebuild will use it for signing
security default-keychain -s build.keychain
# Unlock the keychain
security unlock-keychain -p "$CERTIFICATE_PASSWORD" build.keychain
# Add certificates to keychain and allow codesign to access them
security import certificate.p12 -k build.keychain -P "$CERTIFICATE_PASSWORD" -T /usr/bin/codesign
security set-key-partition-list -S apple-tool:,apple: -s -k "$CERTIFICATE_PASSWORD" build.keychain
# Remove the temporary certificate file
rm certificate.p12