|
@@ -101,7 +101,10 @@ export function checkMainExe() {
|
|
|
const encoding = window.nodeRequire("encoding");
|
|
|
executablePath = encoding.convert(executablePath, "utf8", "gbk").toString();
|
|
|
console.log(executablePath);
|
|
|
- executablePath = executablePath.replace("ExecutablePath=", "").trim();
|
|
|
+ executablePath = executablePath
|
|
|
+ .replace("ExecutablePath=", "")
|
|
|
+ .trim()
|
|
|
+ .replace(/&/g, "&");
|
|
|
if (executablePath === eval(`process.env.PORTABLE_EXECUTABLE_FILE`)) {
|
|
|
const getHash = window
|
|
|
.nodeRequire("crypto")
|