From d8137e7c97679fc5883c246d41ab311848886c6f Mon Sep 17 00:00:00 2001 From: asuk Date: Tue, 2 May 2023 13:49:23 +0200 Subject: [PATCH] build script --- buildAndCopy.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 buildAndCopy.sh diff --git a/buildAndCopy.sh b/buildAndCopy.sh new file mode 100755 index 0000000..34139d3 --- /dev/null +++ b/buildAndCopy.sh @@ -0,0 +1,19 @@ +#!/bin/zsh + +PREVIOUS_DIR=$(pwd) +DIR=${0:a:h} +SOURCE="$DIR/packages/browser-bundles/dist" +DESTINATION="/Users/asuk/Documents/Variable Font Tool/image-type-theatre/node_modules/@theatre/browser-bundles/dist" +DESTINATION="jrkb@nature.fritz.box:/home/jrkb/openFrameworks/apps/celinesTypeGarden/msdf-theatre/bin/data/web/node_modules/@theatre/browser-bundles/dist" + +cd $DIR +yarn build + +rsync -raz --progress $SOURCE/ $DESTINATION/ + +ssh jrkb@nature.fritz.box cd /home/jrkb/openFrameworks/apps/celinesTypeGarden/msdf-theatre && git pull +ssh jrkb@nature.fritz.box /home/jrkb/runTheatre.sh +# rm -rf "$DESTINATION" +# cp -r "$SOURCE" "$DESTINATION" + +cd $PREVIOUS_DIR