mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-25 16:07:12 -07:00
commit
913360c504
2 changed files with 20 additions and 1 deletions
7
dist/kobaltw
vendored
7
dist/kobaltw
vendored
|
@ -1,2 +1,7 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
java -jar "`dirname "$0"`/../kobalt/wrapper/kobalt-wrapper.jar" $*
|
|
||||||
|
DIRNAME=`dirname $(readlink -f "$0")`
|
||||||
|
if [[ "$(uname)" == "CYGWIN"* ]]; then
|
||||||
|
DIRNAME=`cygpath -d "$DIRNAME"`
|
||||||
|
fi
|
||||||
|
java -jar "${DIRNAME}/../kobalt/wrapper/kobalt-wrapper.jar" $*
|
|
@ -219,6 +219,20 @@ public class Main {
|
||||||
log(2, " Couldn't find $VERSION_TEXT, overwriting the installed wrapper");
|
log(2, " Couldn't find $VERSION_TEXT, overwriting the installed wrapper");
|
||||||
installWrapperFiles(version, wrapperVersion);
|
installWrapperFiles(version, wrapperVersion);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// Install the launcher(s) if not already found.
|
||||||
|
//
|
||||||
|
File kobaltw = new File(KOBALTW);
|
||||||
|
File kobaltwBat = new File(KOBALTW_BAT);
|
||||||
|
|
||||||
|
if (!kobaltw.exists()) {
|
||||||
|
generateKobaltW(kobaltw.toPath());
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!kobaltwBat.exists()) {
|
||||||
|
generateKobaltWBat(kobaltwBat.toPath());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return kobaltJarFile;
|
return kobaltJarFile;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue