Skip to content
This repository was archived by the owner on May 2, 2022. It is now read-only.

Commit 45a1bd8

Browse files
authored
Fix rcedit.exe is not included in production package (#1460)
1 parent 25ce248 commit 45a1bd8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

patches/rcedit+2.3.0.patch

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/node_modules/rcedit/lib/rcedit.js b/node_modules/rcedit/lib/rcedit.js
2+
index 476a055..f77844f 100644
3+
--- a/node_modules/rcedit/lib/rcedit.js
4+
+++ b/node_modules/rcedit/lib/rcedit.js
5+
@@ -7,7 +7,7 @@ const singleSettings = ['file-version', 'product-version', 'icon', 'requested-ex
6+
const noPrefixSettings = ['application-manifest']
7+
8+
module.exports = async (exe, options) => {
9+
- let rcedit = path.resolve(__dirname, '..', 'bin', process.arch === 'x64' ? 'rcedit-x64.exe' : 'rcedit.exe')
10+
+ let rcedit = path.resolve(__dirname, '..', 'bin', (process.arch === 'x64' || process.arch === 'arm64') ? 'rcedit-x64.exe' : 'rcedit.exe')
11+
const args = [exe]
12+
13+
for (const name of pairSettings) {

0 commit comments

Comments
 (0)