mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-25 07:57:12 -07:00
Install launcher(s) if not found.
This commit is contained in:
parent
c83d0b3710
commit
3acf5dc2ad
1 changed files with 14 additions and 0 deletions
|
@ -219,6 +219,20 @@ public class Main {
|
|||
log(2, " Couldn't find $VERSION_TEXT, overwriting the installed wrapper");
|
||||
installWrapperFiles(version, wrapperVersion);
|
||||
}
|
||||
|
||||
//
|
||||
// Install the launcher if not already found.
|
||||
//
|
||||
File kobaltw = new File(KOBALTW);
|
||||
File kobaltw_bat = new File(KOBALTW_BAT);
|
||||
|
||||
if (!kobaltw.exists()) {
|
||||
generateKobaltW(kobaltw.toPath());
|
||||
}
|
||||
|
||||
if (!kobaltw_bat.exists()) {
|
||||
generateKobaltWBat(kobaltw_bat.toPath());
|
||||
}
|
||||
}
|
||||
|
||||
return kobaltJarFile;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue