Skip to content

Commit 6a59a99

Browse files
committed
Fixed issue with version info of kse.exe not being updated (issue kaikramer#733)
1 parent 86e2f89 commit 6a59a99

1 file changed

Lines changed: 30 additions & 16 deletions

File tree

kse/build.gradle

Lines changed: 30 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -234,30 +234,44 @@ tasks.register('prepareExe') {
234234
END
235235
END
236236
"""
237-
providers.exec { spec ->
237+
def result = providers.exec { spec ->
238238
spec.workingDir = projectDir
239239
spec.commandLine = ["${rh}",
240-
'-open', "${launcherOutDir}\\kse.rc",
241-
'-save', "${launcherOutDir}\\kse.res",
242-
'-action', 'compile']
240+
'-open', "${launcherOutDir}\\kse.rc",
241+
'-save', "${launcherOutDir}\\kse.res",
242+
'-action', 'compile']
243243
}
244-
providers.exec { spec ->
244+
println "RH1 finished with return code: ${result.result.get().exitValue}"
245+
if (result.standardError.asText.get()) {
246+
println "RH1 errors: ${result.standardError.asText.get()}"
247+
}
248+
249+
result = providers.exec { spec ->
245250
spec.workingDir = projectDir
246251
spec.commandLine = ["${rh}",
247-
'-open', "${launcherOutDir}\\${appExe}",
248-
'-save', "${launcherOutDir}\\${appExe}",
249-
'-action', 'addoverwrite',
250-
'-mask', ' VersionInfo,,',
251-
'-res', "${launcherOutDir}\\kse.res"]
252+
'-open', "${launcherOutDir}\\${appExe}",
253+
'-save', "${launcherOutDir}\\${appExe}",
254+
'-action', 'addoverwrite',
255+
'-mask', ' VersionInfo,,',
256+
'-res', "${launcherOutDir}\\kse.res"]
257+
}
258+
println "RH2 finished with return code: ${result.result.get().exitValue}"
259+
if (result.standardError.asText.get()) {
260+
println "RH2 errors: ${result.standardError.asText.get()}"
252261
}
253-
providers.exec { spec ->
262+
263+
result = providers.exec { spec ->
254264
spec.workingDir = projectDir
255265
spec.commandLine = ["${rh}",
256-
'-open', "${launcherOutDir}\\${appExe}",
257-
'-save', "${launcherOutDir}\\${appExe}",
258-
'-action', 'addoverwrite',
259-
'-mask', 'ICONGROUP,MAINICON,0',
260-
'-res', "$kseIco"]
266+
'-open', "${launcherOutDir}\\${appExe}",
267+
'-save', "${launcherOutDir}\\${appExe}",
268+
'-action', 'addoverwrite',
269+
'-mask', 'ICONGROUP,MAINICON,0',
270+
'-res', "$kseIco"]
271+
}
272+
println "RH3 finished with return code: ${result.result.get().exitValue}"
273+
if (result.standardError.asText.get()) {
274+
println "RH3 errors: ${result.standardError.asText.get()}"
261275
}
262276
}
263277
}

0 commit comments

Comments
 (0)