Skip to content

Commit

Permalink
Merge pull request Eugeny#6276 from Jai-JAP/master
Browse files Browse the repository at this point in the history
Fix armv7l builds
  • Loading branch information
Eugeny authored Apr 25, 2022
2 parents 28b227b + ae82e56 commit f653fe9
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.8.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 f653fe9

Please sign in to comment.