mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-09 06:02:22 -05:00
refactor: move script to update client build into electron package
This commit is contained in:
13
bin/package
13
bin/package
@@ -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"
|
||||
|
||||
13
packages/desktop-electron/bin/update-client
Executable file
13
packages/desktop-electron/bin/update-client
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
ROOT=`dirname $0`
|
||||
|
||||
rm -rf ${ROOT}/../client-build
|
||||
cp -r ${ROOT}/../../desktop-client/build ${ROOT}/../client-build
|
||||
|
||||
# Remove the embedded backend for the browser version. Will improve
|
||||
# this process
|
||||
rm -rf ${ROOT}/../client-build/data
|
||||
rm -rf ${ROOT}/../client-build/*kcab.*
|
||||
rm -rf ${ROOT}/../client-build/*.wasm
|
||||
rm -rf ${ROOT}/../client-build/*.map
|
||||
@@ -6,6 +6,7 @@
|
||||
"version": "4.0.2",
|
||||
"scripts": {
|
||||
"clean": "rm -rf dist",
|
||||
"update-client": "bin/update-client",
|
||||
"build": "electron-builder",
|
||||
"watch": "cross-env ACTUAL_DOCUMENT_DIR=\"../../data\" ACTUAL_DATA_DIR=\"../../data\" electron ."
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user