Skip to content

Commit fadc224

Browse files
committed
Build Windows 32bit app
1 parent 709276d commit fadc224

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

app/.npmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
runtime = electron
22
disturl = https://atom.io/download/electron
33
target = 5.0.6
4-
arch = x64
4+
arch = ia32

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"start": "cross-env NODE_ENV=development ts-node -P script/tsconfig.json script/start.ts",
2020
"start:prod": "cross-env NODE_ENV=production ts-node -P script/tsconfig.json script/start.ts",
2121
"compile:dev": "cross-env NODE_ENV=development parallel-webpack --config app/webpack.development.ts",
22-
"compile:prod": "cross-env NODE_ENV=production NODE_OPTIONS='--max_old_space_size=4096' parallel-webpack --config app/webpack.production.ts",
22+
"compile:prod": "cross-env NODE_ENV=production NODE_OPTIONS='--max_old_space_size=3072' parallel-webpack --config app/webpack.production.ts",
2323
"build:dev": "yarn compile:dev && cross-env NODE_ENV=development ts-node -P script/tsconfig.json script/build.ts",
2424
"build:prod": "yarn compile:prod && cross-env NODE_ENV=production ts-node -P script/tsconfig.json script/build.ts",
2525
"package": "ts-node -P script/tsconfig.json script/package.ts",

script/build.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,10 @@ function packageApp() {
135135

136136
const toPackageArch = (targetArch: string | undefined): packager.arch => {
137137
if (targetArch === undefined) {
138-
return 'x64'
138+
return 'ia32'
139139
}
140140

141-
if (targetArch === 'arm64' || targetArch === 'x64') {
141+
if (targetArch === 'arm64' || targetArch === 'x64' || targetArch == 'ia32') {
142142
return targetArch
143143
}
144144

script/dist-info.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function getDistRoot() {
1616
export function getDistPath() {
1717
return Path.join(
1818
getDistRoot(),
19-
`${getExecutableName()}-${process.platform}-x64`
19+
`${getExecutableName()}-${process.platform}-ia32`
2020
)
2121
}
2222

script/package.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ function packageLinux() {
137137
'build',
138138
'--prepackaged',
139139
distPath,
140-
'--x64',
140+
'--ia32',
141141
'--config',
142142
configPath,
143143
]

0 commit comments

Comments
 (0)