vars = Variables()\r
vars.Add("version", "The version of this build", versionInfo.version)\r
vars.Add(BoolVariable("release", "Whether this is a release version", False))\r
-vars.Add("publisher", "The publisher of this build", "unknown")\r
+vars.Add("publisher", "The publisher of this build", versionInfo.publisher)\r
vars.Add(PathVariable("certFile", "The certificate file with which to sign executables", "",\r
lambda key, val, env: not val or PathVariable.PathIsFile(key, val, env)))\r
vars.Add("certPassword", "The password for the private key in the signing certificate", "")\r
\r
version = env["version"]\r
release = env["release"]\r
+publisher = env["publisher"]\r
certFile = env["certFile"]\r
certPassword = env["certPassword"]\r
userDocsDir=Dir('user_docs')\r
# Make the NVDA build use the specified version.\r
# We don't do this using normal scons mechanisms because we want it to be cleaned up immediately after this builder\r
# and py2exe will cause bytecode files to be created for it which scons doesn't know about.\r
- action = [lambda target, source, env: file(buildVersionFn, "w").write('version = "%s"' % version)]\r
+ action = [lambda target, source, env: file(buildVersionFn, "w").write(\r
+ 'version = {version!r}\r\n'\r
+ 'publisher = {publisher!r}\r\n'\r
+ .format(version=version, publisher=publisher))]\r
\r
buildCmd = ["cd", source[0].path, "&&",\r
sys.executable]\r
"description":"NVDA application",\r
"product_version":version,\r
"copyright":copyright,\r
+ "company_name":publisher,\r
},\r
{\r
"script": "nvda_slave.pyw",\r
"description": "NVDA slave",\r
"product_version": version,\r
"copyright": copyright,\r
+ "company_name": publisher,\r
},\r
],\r
service=[{\r
"description": "NVDA service",\r
"product_version": version,\r
"copyright": copyright,\r
+ "company_name": publisher,\r
"uac_info": ("requireAdministrator", False),\r
"cmdline_style": "pywin32",\r
}],\r