actual/packages/loot-core/bin/copy-migrations

21 lines
430 B
Text
Raw Permalink Normal View History

2022-04-29 02:44:38 +00:00
#!/bin/sh -e
ROOT=`dirname "$0"`
cd "$ROOT"
# Copy them to the browser version
$(
cd ../../desktop-client/public;
rm -rf ./data;
mkdir ./data;
cp -r ../../loot-core/migrations ./data;
cp ../../loot-core/default-db.sqlite ./data;
cd data && find * -type f | sort > ../data-file-index.txt;
2022-04-29 02:44:38 +00:00
)
# Copy them to the mobile app
rsync -av --delete ../migrations/ ../../mobile/nodejs-assets/nodejs-project/data/migrations