From cdaf5f50697226a3f767a90068736d8dcefb5433 Mon Sep 17 00:00:00 2001 From: Anton Keks Date: Tue, 2 Jun 2020 23:46:29 +0300 Subject: [PATCH] specify nsis version separately --- build.gradle | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index dcfe54bf..8e0b18ad 100644 --- a/build.gradle +++ b/build.gradle @@ -263,9 +263,10 @@ packageTask('mac') { task 'win-installer'(dependsOn: ['win32', 'win64']) { doLast { - def nsis = 'nsis-3.05' + def nsisVersion = "3.05" + def nsis = "nsis-$nsisVersion" def installerDir = 'ext/win-installer' - ant.get(src: "https://netcologne.dl.sourceforge.net/project/nsis/NSIS%203/${nsis.split('-')[1]}/${nsis}.zip", dest: installerDir, skipexisting: 'true') + ant.get(src: "https://netcologne.dl.sourceforge.net/project/nsis/NSIS%203/${nsisVersion}/${nsis}.zip", dest: installerDir, skipexisting: 'true') ant.unzip(src: "${installerDir}/${nsis}.zip", dest: installerDir) ant.replace(file: "${installerDir}/InstallerConfig.nsh") { ant.replacefilter(token: "VERSION_MINOR", value: "5")