File tree 2 files changed +10
-6
lines changed
2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -324,8 +324,10 @@ task bundle(dependsOn: jarPatch,
324
324
def launchFile = new File (bundleOutput, " bin/launch" )
325
325
def launchBatFile = new File (bundleOutput, " bin/launch.bat" )
326
326
327
+ def isBat = launchBatFile. exists()
328
+
327
329
def cubacliFile = new File (bundleOutput, " cuba-cli" )
328
- if (launchBatFile . exists() ) {
330
+ if (isBat ) {
329
331
cubacliFile = new File (bundleOutput, " cuba-cli.bat" )
330
332
}
331
333
@@ -355,10 +357,12 @@ task bundle(dependsOn: jarPatch,
355
357
}
356
358
}
357
359
358
- if (osName. contains(' mac' )
359
- || project. hasProperty(' targetOsPlatform' ) && project[' targetOsPlatform' ] == ' macos' ) {
360
- def cubacliMacOsFile = new File (project. rootDir, " etc/cuba-cli-macos" )
361
- cubacliFile. text = cubacliMacOsFile. text
360
+ if (! isBat && (osName. contains(' nux' )
361
+ || osName. contains(' mac' )
362
+ || project. hasProperty(' targetOsPlatform' )
363
+ && (project[' targetOsPlatform' ] == ' macos' || project[' targetOsPlatform' ] == ' linux' ))) {
364
+ def cubacliUnixFile = new File (project. rootDir, " etc/cuba-cli-unix" )
365
+ cubacliFile. text = cubacliUnixFile. text
362
366
}
363
367
}
364
368
}
Original file line number Diff line number Diff line change 1
- #! /bin/sh
1
+ #! /bin/bash
2
2
JLINK_VM_OPTIONS=
3
3
get_script_dir () {
4
4
SOURCE=" ${BASH_SOURCE[0]} "
You can’t perform that action at this time.
0 commit comments