File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed
Expand file tree Collapse file tree 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,
324324 def launchFile = new File (bundleOutput, " bin/launch" )
325325 def launchBatFile = new File (bundleOutput, " bin/launch.bat" )
326326
327+ def isBat = launchBatFile. exists()
328+
327329 def cubacliFile = new File (bundleOutput, " cuba-cli" )
328- if (launchBatFile . exists() ) {
330+ if (isBat ) {
329331 cubacliFile = new File (bundleOutput, " cuba-cli.bat" )
330332 }
331333
@@ -355,10 +357,12 @@ task bundle(dependsOn: jarPatch,
355357 }
356358 }
357359
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
362366 }
363367 }
364368}
Original file line number Diff line number Diff line change 1- #! /bin/sh
1+ #! /bin/bash
22JLINK_VM_OPTIONS=
33get_script_dir () {
44 SOURCE=" ${BASH_SOURCE[0]} "
You can’t perform that action at this time.
0 commit comments