15 lines
495 B
Bash
15 lines
495 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;
|
|
# jar [...] --manifest=[...] with main class does work when running with "java -jar" but not with "java --module-path"
|
|
# --create --file <=> cf
|
|
jar --create --file=../dist/zeitlaeufer.jar --main-class=de.szimnau.zeitlaeufer.Main ./**/*;
|
|
cd $dir
|