30 lines
No EOL
641 B
Bash
Executable file
30 lines
No EOL
641 B
Bash
Executable file
#!/bin/bash
|
|
|
|
if [ ! -d out ]
|
|
then
|
|
mkdir out
|
|
fi
|
|
|
|
flutter pub get
|
|
|
|
|
|
if [[ -z "${DOCKER}" ]]
|
|
then
|
|
flutter build linux
|
|
fi
|
|
|
|
|
|
dart compile exe -o out/server bin/server.dart
|
|
rsync -a --progress -h --delete build/linux/x64/release/bundle/ out/client/
|
|
|
|
if [ -f RELEASE ]
|
|
then
|
|
docker login git.zontreck.com
|
|
|
|
docker build -t git.zontreck.com/ariascreations/conanservermanager:stable $(pwd)
|
|
docker push git.zontreck.com/ariascreations/conanservermanager:stable
|
|
|
|
docker build -t git.zontreck.com/ariascreations/conanservermanager:installer docker_images/installer
|
|
docker push git.zontreck.com/ariascreations/conanservermanager:installer
|
|
|
|
fi |