aboutsummaryrefslogtreecommitdiffstats
path: root/build/ci.go
diff options
context:
space:
mode:
authorbas-vk <bas-vk@users.noreply.github.com>2016-12-11 07:01:57 +0800
committerFelix Lange <fjl@users.noreply.github.com>2016-12-11 07:01:57 +0800
commit4f9ccdd70f69dd0a879329d57ec21588f29f182c (patch)
tree485d305d44c364b93a4c6a06505803bb97ba70af /build/ci.go
parent4e36b1e3dadda62a53e309a1b6cf7aed97ea7a3a (diff)
downloaddexon-4f9ccdd70f69dd0a879329d57ec21588f29f182c.tar
dexon-4f9ccdd70f69dd0a879329d57ec21588f29f182c.tar.gz
dexon-4f9ccdd70f69dd0a879329d57ec21588f29f182c.tar.bz2
dexon-4f9ccdd70f69dd0a879329d57ec21588f29f182c.tar.lz
dexon-4f9ccdd70f69dd0a879329d57ec21588f29f182c.tar.xz
dexon-4f9ccdd70f69dd0a879329d57ec21588f29f182c.tar.zst
dexon-4f9ccdd70f69dd0a879329d57ec21588f29f182c.zip
build: safe update of PATH on Windows (#3419)
NSIS has a default MAX_STR_LEN of 1024. If $ENV{PATH} is longer the returned string is truncated to an empty string. Its then not possible to distinguis between the variable not set or too long. As a result the variable is set with the location where geth and/or dev tools are installed. This may override any previous set values.
Diffstat (limited to 'build/ci.go')
-rw-r--r--build/ci.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/build/ci.go b/build/ci.go
index c985e2da6..602eb8239 100644
--- a/build/ci.go
+++ b/build/ci.go
@@ -638,6 +638,7 @@ func doWindowsInstaller(cmdline []string) {
build.Render("build/nsis.geth.nsi", filepath.Join(*workdir, "geth.nsi"), 0644, nil)
build.Render("build/nsis.install.nsh", filepath.Join(*workdir, "install.nsh"), 0644, templateData)
build.Render("build/nsis.uninstall.nsh", filepath.Join(*workdir, "uninstall.nsh"), 0644, allTools)
+ build.Render("build/nsis.pathupdate.nsh", filepath.Join(*workdir, "PathUpdate.nsh"), 0644, nil)
build.Render("build/nsis.envvarupdate.nsh", filepath.Join(*workdir, "EnvVarUpdate.nsh"), 0644, nil)
build.CopyFile(filepath.Join(*workdir, "SimpleFC.dll"), "build/nsis.simplefc.dll", 0755)
build.CopyFile(filepath.Join(*workdir, "COPYING"), "COPYING", 0755)