mirror of
https://github.com/actualbudget/actual.git
synced 2026-07-15 22:54:03 -05:00
* seperate build folders for easier switching between web and electron builds * gitignore * release notes * one directory back from electron * spelling mistake * Update 3801.md * test * making it correct * huh * urghh * again * account for api bundle which uses electron bundle for some reason * hu- * lets go * remove comment
22 lines
770 B
Bash
Executable File
22 lines
770 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
ROOT=`dirname $0`/..
|
|
|
|
rm -rf ${ROOT}/build
|
|
mkdir -p ${ROOT}/build
|
|
cp -r ${ROOT}/../desktop-client/build-electron ${ROOT}/build/client-build
|
|
|
|
# Remove the embedded backend for the browser version. Will improve
|
|
# this process
|
|
rm -rf ${ROOT}/build/client-build/data
|
|
rm -rf ${ROOT}/build/client-build/*kcab.*
|
|
rm -rf ${ROOT}/build/client-build/*.wasm
|
|
rm -rf ${ROOT}/build/client-build/*.map
|
|
|
|
# Copy loot-core into build directory
|
|
mkdir -p ${ROOT}/build/loot-core/lib-dist/electron
|
|
cp ${ROOT}/../loot-core/lib-dist/electron/bundle.desktop.js ${ROOT}/build/loot-core/lib-dist/electron/bundle.desktop.js
|
|
cp ${ROOT}/../loot-core/default-db.sqlite ${ROOT}/build/loot-core/default-db.sqlite
|
|
cp -r ${ROOT}/../loot-core/migrations ${ROOT}/build/loot-core/migrations
|
|
|