mirror of
https://github.com/penpot/penpot.git
synced 2025-01-08 07:50:43 -05:00
c48da3d316
Now the final artifact is a single, compiled uberjar. It considerably improves startup speed.
19 lines
394 B
Bash
19 lines
394 B
Bash
#!/usr/bin/env bash
|
|
set +e
|
|
JAVA_CMD=$(type -p java)
|
|
|
|
set -e
|
|
if [[ ! -n "$JAVA_CMD" ]]; then
|
|
if [[ -n "$JAVA_HOME" ]] && [[ -x "$JAVA_HOME/bin/java" ]]; then
|
|
JAVA_CMD="$JAVA_HOME/bin/java"
|
|
else
|
|
>&2 echo "Couldn't find 'java'. Please set JAVA_HOME."
|
|
exit 1
|
|
fi
|
|
fi
|
|
|
|
if [ -f ./environ ]; then
|
|
source ./environ
|
|
fi
|
|
|
|
exec $JAVA_CMD $JVM_OPTS -jar penpot.jar -m app.cli.manage "$@"
|