refactor: move script to update client build into electron package

This commit is contained in:
Tom French
2022-07-03 23:45:38 +01:00
parent 1a4b46cb6c
commit da62f9b5d9
3 changed files with 18 additions and 9 deletions

View File

@@ -89,15 +89,10 @@ yarn workspace loot-core build:node
yarn workspace @actual-app/web build
rm -fr packages/desktop-electron/client-build
cp -r packages/desktop-client/build packages/desktop-electron/client-build
# Remove the embedded backend for the browser version. Will improve
# this process
rm -fr packages/desktop-electron/client-build/data
rm -fr packages/desktop-electron/client-build/*kcab.*
rm -fr packages/desktop-electron/client-build/*.wasm
rm -fr packages/desktop-electron/client-build/*.map
(
cd packages/desktop-electron;
yarn update-client
)
if [ -n "$RELEASE" ]; then
SENTRY_CLI="./packages/desktop-electron/node_modules/.bin/sentry-cli"