13 lignes
906 B
Bash
13 lignes
906 B
Bash
#!/bin/sh
|
|
# Depuis le PC : envoie les sources sur cornafserver (~/staging/GastinelClient), compile, rapatrie le jar dans livrable/.
|
|
# Ne touche ni au serveur Minecraft en marche ni à son dossier.
|
|
set -e
|
|
cd "$(dirname "$0")"
|
|
V=$(grep '^mod_version=' gradle.properties | cut -d= -f2)
|
|
tar czf /tmp/gastinelclient-src.tgz --exclude=build --exclude=.gradle --exclude=livrable --exclude=run --exclude=.git --exclude=maquette .
|
|
scp /tmp/gastinelclient-src.tgz cornafserver:gastinelclient-src.tgz
|
|
ssh cornafserver 'set -e; rm -rf "$HOME/staging/GastinelClient"; mkdir -p "$HOME/staging/GastinelClient"; tar xzf "$HOME/gastinelclient-src.tgz" -C "$HOME/staging/GastinelClient"; rm "$HOME/gastinelclient-src.tgz"; cd "$HOME/staging/GastinelClient" && sh build-sur-cornafserver.sh'
|
|
mkdir -p livrable
|
|
scp "cornafserver:staging/GastinelClient/build/libs/gastinelclient-neoforge-1.21.1-$V.jar" livrable/
|
|
ls -l livrable
|