Skip to content
Snippets Groups Projects
Unverified Commit fecf2a2b authored by Matiss Janis Aboltins's avatar Matiss Janis Aboltins Committed by GitHub
Browse files

Merge pull request #118 from TomAFrench/strip-down-package-scripts

Strip down and refactor package scripts
parents 0782081f 456369f1
No related branches found
No related tags found
No related merge requests found
...@@ -88,16 +88,7 @@ yarn workspace loot-core build:node ...@@ -88,16 +88,7 @@ yarn workspace loot-core build:node
yarn workspace @actual-app/web build yarn workspace @actual-app/web build
yarn workspace Actual update-client
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
if [ -n "$RELEASE" ]; then if [ -n "$RELEASE" ]; then
SENTRY_CLI="./packages/desktop-electron/node_modules/.bin/sentry-cli" SENTRY_CLI="./packages/desktop-electron/node_modules/.bin/sentry-cli"
...@@ -133,30 +124,8 @@ fi ...@@ -133,30 +124,8 @@ fi
echo "\nCreated release $VERSION with release notes \"$RELEASE_NOTES\"" echo "\nCreated release $VERSION with release notes \"$RELEASE_NOTES\""
elif [ "$RELEASE" == "beta" ]; then elif [ "$RELEASE" == "beta" ]; then
yarn build --publish never --arm64 --x64 yarn build --publish never --arm64 --x64
WINDOWS_FILE="./dist/Actual Setup $VERSION.exe" echo "\nCreated beta release $VERSION"
if [ -f "$WINDOWS_FILE" ]; then
scp "$WINDOWS_FILE" "jlongster.com:/sites/static.actualbudget/Actual-Setup-$VERSION.exe"
echo "Windows: https://static.actualbudget.com/Actual-Setup-$VERSION.exe"
else
echo "No Windows file found"
fi
MAC_FILE="./dist/Actual-$VERSION.dmg"
if [ -f "$MAC_FILE" ]; then
scp "$MAC_FILE" "jlongster.com:/sites/static.actualbudget.com/Actual-$VERSION.dmg"
echo "macOS: https://static.actualbudget.com/Actual-$VERSION.dmg"
else
echo "No macOS file found"
fi
LINUX_FILE="./dist/Actual-$VERSION-x86_64.AppImage"
if [ -f "$LINUX_FILE" ]; then
scp "$LINUX_FILE" "jlongster.com:/sites/static.actualbudget/Actual-$VERSION-x86_64.AppImage"
echo "Linux: https://static.actualbudget.com/Actual-$VERSION-x86_64.AppImage"
else
echo "No linux file found"
fi
else else
SKIP_NOTARIZATION=true yarn build --publish never --x64 SKIP_NOTARIZATION=true yarn build --publish never --x64
fi fi
......
#!/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 @@ ...@@ -6,6 +6,7 @@
"version": "22.12.03", "version": "22.12.03",
"scripts": { "scripts": {
"clean": "rm -rf dist", "clean": "rm -rf dist",
"update-client": "bin/update-client",
"build": "electron-builder", "build": "electron-builder",
"watch": "cross-env ACTUAL_DOCUMENT_DIR=\"../../data\" ACTUAL_DATA_DIR=\"../../data\" electron ." "watch": "cross-env ACTUAL_DOCUMENT_DIR=\"../../data\" ACTUAL_DATA_DIR=\"../../data\" electron ."
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment