mirror of https://github.com/sbt/sbt.git
Add back script to generate standalone launcher *from the sources*
The way described in the README uses the artifacts (from Central or Sonatype releases)
This commit is contained in:
parent
29f8d49c83
commit
73e2f5ad68
|
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
if [ ! -e cli/target/scala-2.11/proguard/coursier-standalone.jar ]; then
|
||||
echo "Generating proguarded JAR..." 1>&2
|
||||
sbt cli/proguard:proguard
|
||||
fi
|
||||
|
||||
cat > coursier-standalone << EOF
|
||||
#!/bin/sh
|
||||
exec java -noverify -cp "\$0" coursier.cli.Coursier "\$@"
|
||||
EOF
|
||||
cat cli/target/scala-2.11/proguard/coursier-standalone.jar >> coursier-standalone
|
||||
chmod +x coursier-standalone
|
||||
Loading…
Reference in New Issue