|
1 | | ---- script/node_modules/electron-packager/targets.js.orig 1985-10-26 08:15:00 UTC |
2 | | -+++ script/node_modules/electron-packager/targets.js |
3 | | -@@ -5,9 +5,10 @@ const downloadArch = require('electron-download/lib/ar |
| 1 | +--- script/node_modules/electron-packager/src/targets.js.orig 2021-02-15 12:23:04 UTC |
| 2 | ++++ script/node_modules/electron-packager/src/targets.js |
| 3 | +@@ -5,10 +5,11 @@ const { getHostArch } = require('@electron/get') |
4 | 4 | const semver = require('semver') |
5 | 5 |
|
6 | 6 | const officialArchs = ['ia32', 'x64', 'armv7l', 'arm64', 'mips64el'] |
7 | 7 | -const officialPlatforms = ['darwin', 'linux', 'mas', 'win32'] |
8 | | -+const officialPlatforms = ['darwin', 'freebsd', 'linux', 'mas', 'win32'] |
| 8 | ++const officialPlatforms = ['darwin', 'linux', 'freebsd', 'mas', 'win32'] |
9 | 9 | const officialPlatformArchCombos = { |
10 | 10 | darwin: ['x64'], |
11 | | -+ freebsd: ['x64'], |
12 | 11 | linux: ['ia32', 'x64', 'armv7l', 'arm64', 'mips64el'], |
| 12 | ++ freebsd: ['x64'], |
13 | 13 | mas: ['x64'], |
14 | | - win32: ['ia32', 'x64'] |
15 | | -@@ -21,6 +22,7 @@ const linuxArchBuildVersions = { |
16 | | - // Maps to module filename for each platform (lazy-required if used) |
| 14 | + win32: ['ia32', 'x64', 'arm64'] |
| 15 | + } |
| 16 | +@@ -27,6 +28,7 @@ const buildVersions = { |
17 | 17 | const osModules = { |
18 | 18 | darwin: './mac', |
19 | | -+ freebsd: './linux', |
20 | 19 | linux: './linux', |
| 20 | ++ freebsd: './linux', |
21 | 21 | mas: './mac', // map to darwin |
22 | 22 | win32: './win32' |
| 23 | + } |
0 commit comments