fix: preserve architecture in unpacked ASAR path (#1094)

This commit is contained in:
ZacharyZcR
2026-07-28 01:47:33 +08:00
committed by GitHub
parent fdeb79e9e9
commit 7c397e3f8a
3 changed files with 43 additions and 4 deletions
+8
View File
@@ -0,0 +1,8 @@
function getUnpackedAppRoot(appRoot) {
return appRoot.replace(
/app(-[a-z0-9]+)?\.asar(?!\.unpacked)/,
"app$1.asar.unpacked",
);
}
module.exports = { getUnpackedAppRoot };