Files
zeitlaeufer/deployProject.sh
2025-11-19 10:49:01 +01:00

14 lines
376 B
Bash

#!/usr/bin/env bash
set -uo pipefail
# when executed as executable file in "git for windows" bash some things won't work, so always run with prefixed command
if [[ ! -e dist ]]; then
mkdir dist;
fi
rm -r dist/* 2>/dev/null;
dir=$(pwd)
cd target;
# --create --file <=> cf
jar --create --file=../dist/zeitlaeufer.jar --main-class=de.szimnau.zeitlaeufer.Main ./**/*;
cd $dir