dev utilities

This commit is contained in:
tcsenpai 2024-03-15 19:33:55 +01:00
parent 6e2128e39c
commit c6860ea0d6
2 changed files with 25 additions and 0 deletions

2
.gitignore vendored
View File

@ -3,3 +3,5 @@ swingmusic_bin/swingmusic
package-lock.json
yarn.lock
node_modules
build
dist

23
dev_update_and_build.sh Executable file
View File

@ -0,0 +1,23 @@
# Updating
cd ../swingmusic || exit -1
git pull || exit -2
cd ../swingmusic-client || exit -3
git pull || exit -4
# Cleanup
cd ../swingmusic || exit -5
rm -rf client/* || exit -6
rm -rf build dist || exit -7
# Build the client
cd ../swingmusic-client || exit -8
yarn build --outDir ../swingmusic/client/ || exit -9
# Build the server
cd ../swingmusic || exit -10
poetry run python manage.py --build || exit -11
# Copying the client to the appropriate location
echo "Done building. Moving to the next step"
cp -r dist/swingmusic ../swingmusic-desktop/swingmusic_bin || exit -12
echo "Done copying. Done."