mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
build scripts: copy script file to a temp directory and modify it there
This is needed to avoid modification of source files by the build script.
This commit is contained in:
+5
-3
@@ -98,11 +98,13 @@ class WinExeInstallerBuilder {
|
||||
" \"${box}/nsiconf/idea.nsi\"")
|
||||
}
|
||||
else if (SystemInfoRt.isLinux) {
|
||||
buildContext.ant.fixcrlf(file: "$communityHome/build/conf/install_nsis3.sh", eol: "unix")
|
||||
String installScriptPath = "$box/install_nsis3.sh"
|
||||
buildContext.ant.copy(file: "$communityHome/build/conf/install_nsis3.sh", tofile: installScriptPath)
|
||||
buildContext.ant.fixcrlf(file: installScriptPath, eol: "unix")
|
||||
ant.exec(executable: "chmod") {
|
||||
arg(line: " u+x \"${communityHome}/build/conf/install_nsis3.sh\"")
|
||||
arg(line: " u+x \"$installScriptPath\"")
|
||||
}
|
||||
ant.exec(command: "\"$communityHome/build/conf/install_nsis3.sh\"" +
|
||||
ant.exec(command: "\"$installScriptPath\"" +
|
||||
" \"${buildContext.paths.communityHome}\"")
|
||||
|
||||
ant.exec(command: "\"${buildContext.paths.communityHome}/nsis/nsis-3.01/bin/makensis\"" +
|
||||
|
||||
Reference in New Issue
Block a user