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

21 lines
423 B
Text
Raw 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 > ../data-file-index.txt;
)
# Copy them to the mobile app
rsync -av --delete ../migrations/ ../../mobile/nodejs-assets/nodejs-project/data/migrations