missing files

This commit is contained in:
ntr
2019-07-16 14:06:59 +10:00
parent 95ffc0d2e9
commit 5ad0938a13
2 changed files with 26 additions and 0 deletions
Executable
+14
View File
@@ -0,0 +1,14 @@
# bless you chris and andy <3
# DOES NOT WORK AT MOMENT
DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
MNML_PATH=$(realpath "$DIR/../")
VERSION=$(<"$MNML_PATH/VERSION")
make server
cp -R "$MNML_PATH/server/target/release" "/usr/local/mnml/build/server/$VERSION"
make client
cp -R "$MNML_PATH/client/dist" "/usr/local/mnml/build/client/$VERSION"
Executable
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
# bless you chris and andy <3
DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
MNML_PATH=$(realpath "$DIR/../")
VERSION=$(<"$MNML_PATH/VERSION")
echo "syncing /usr/local/mnml/build/server/$VERSION"
rsync -a --delete --delete-excluded "/usr/local/mnml/build/server/$VERSION" mnml:"/usr/local/mnml/build/server/"
echo "syncing /usr/local/mnml/build/client/$VERSION"
rsync -a --delete --delete-excluded "/usr/local/mnml/build/client/$VERSION" mnml:"/usr/local/mnml/build/client/"