mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-11 12:43:09 -05:00
* add electron logging to main browser process console * add logging * removing old way * release notes * adding some logs in to test mac build * repent satan * i caste yeee oooott sinner * derp * hmmm< * forcing nodegyprebuild * not like this.... Not like this... 😢 * hmm * dunno * will it recognise it if i link it manually.. 👀 * give up * rebuild * merge asars fasle * update package * manually do it ffs work damnit * remove the cmd * dont rebuild cause i build it manually * dafuq is this, two bettersqlite modules installed huhhhhh * test * does this work? * bloody hell * couple more logs * test this out * arch in name * adding the rebuild step back into first build * try rebuild before pack - so we know what arch we need * having a laugh * tidying up * release notes * move package up a bit * exit process if no electron verison
58 lines
1.1 KiB
Bash
Executable File
58 lines
1.1 KiB
Bash
Executable File
#!/bin/bash -e
|
|
|
|
|
|
ROOT=`dirname $0`
|
|
RELEASE=""
|
|
CI=${CI:-false}
|
|
|
|
cd "$ROOT/.."
|
|
|
|
POSITIONAL=()
|
|
while [[ $# -gt 0 ]]; do
|
|
key="$1"
|
|
|
|
case $key in
|
|
--release)
|
|
RELEASE="production"
|
|
shift
|
|
;;
|
|
*)
|
|
POSITIONAL+=("$1")
|
|
shift
|
|
;;
|
|
esac
|
|
done
|
|
set -- "${POSITIONAL[@]}"
|
|
|
|
if [ "$OSTYPE" == "msys" ]; then
|
|
if [ $CI != true ]; then
|
|
read -s -p "Windows certificate password: " -r CSC_KEY_PASSWORD
|
|
export CSC_KEY_PASSWORD
|
|
elif [ -n "$CIRCLE_TAG" ]; then
|
|
# We only want to run this on CircleCI as Github doesn't have the CSC_KEY_PASSWORD secret set.
|
|
certutil -f -p ${CSC_KEY_PASSWORD} -importPfx ~/windows-shift-reset-llc.p12
|
|
fi
|
|
fi
|
|
|
|
yarn workspace loot-core build:node
|
|
|
|
yarn workspace @actual-app/web build --mode=desktop
|
|
|
|
yarn workspace desktop-electron update-client
|
|
|
|
(
|
|
cd packages/desktop-electron;
|
|
yarn clean;
|
|
|
|
if [ "$RELEASE" == "production" ]; then
|
|
if [ -f ../../.secret-tokens ]; then
|
|
source ../../.secret-tokens
|
|
fi
|
|
yarn build
|
|
|
|
echo "\nCreated release"
|
|
else
|
|
SKIP_NOTARIZATION=true yarn build
|
|
fi
|
|
)
|