Skip to content

Commit

Permalink
Merge pull request Eugeny#1 from Jai-JAP/176-fix
Browse files Browse the repository at this point in the history
176 fix
  • Loading branch information
Jai-JAP authored Apr 25, 2022
2 parents a6e5f00 + c7a72da commit 43d389a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions patches/builder-util+23.0.3.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/node_modules/builder-util/out/arch.js b/node_modules/builder-util/out/arch.js
index eabcf47..e1ac595 100644
--- a/node_modules/builder-util/out/arch.js
+++ b/node_modules/builder-util/out/arch.js
@@ -40,6 +40,7 @@ function archFromString(name) {
return Arch.ia32;
case "arm64":
return Arch.arm64;
+ case "arm":
case "armv7l":
return Arch.armv7l;
case "universal":
2 changes: 1 addition & 1 deletion scripts/build-linux.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const vars = require('./vars')

const isTag = (process.env.GITHUB_REF || '').startsWith('refs/tags/')

process.env.ARCH = (process.env.ARCH || process.arch) === 'arm' ? 'armv7l' : process.arch
process.env.ARCH = ((process.env.ARCH || process.arch) === 'arm') ? 'armv7l' : process.env.ARCH || process.arch

builder({
dir: true,
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-native.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const path = require('path')
const vars = require('./vars')

if (process.platform === 'win32' || process.platform === 'linux') {
process.env.ARCH = (process.env.ARCH || process.arch) === 'arm' ? 'armv7l' : process.arch
process.env.ARCH = ((process.env.ARCH || process.arch) === 'arm') ? 'armv7l' : process.env.ARCH || process.arch
} else {
process.env.ARCH ??= process.arch
}
Expand Down

0 comments on commit 43d389a

Please sign in to comment.