Commit 58560da9 authored by Aral Balkan's avatar Aral Balkan

Fix the version substitution RegExp for Windows source version

parent b81447a7
......@@ -525,7 +525,7 @@ async function build () {
let windowsInstallScript
windowsInstallScript = fs.readFileSync(windowsInstallScriptFile, 'utf-8')
windowsInstallScript = windowsInstallScript.replace(/\d{14}/g, binaryVersion)
windowsInstallScript = windowsInstallScript.replace(/\/[0-9a-fA-F]{7}\)/g, sourceVersion)
windowsInstallScript = windowsInstallScript.replace(/\/[0-9a-fA-F]{7}\)/g, `/${sourceVersion})`)
windowsInstallScript = windowsInstallScript.replace(/\d+\.\d+\.\d+/g, packageVersion)
fs.writeFileSync(websitePathForWindowsInstallScript, windowsInstallScript)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment