actual/packages/loot-core/bin/copy-migrations
2022-06-29 09:57:00 -04:00

20 lines
430 B
Bash
Executable file

#!/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;
)
# Copy them to the mobile app
rsync -av --delete ../migrations/ ../../mobile/nodejs-assets/nodejs-project/data/migrations