electron / forge

:electron: A complete tool for building and publishing Electron applications
https://electronforge.io
MIT License
6.49k stars 520 forks source link

Cannot build ia32 version on Win x64 PC #3342

Closed Kutikov closed 1 year ago

Kutikov commented 1 year ago

Pre-flight checklist

Electron Forge version

6.3.0

Electron version

25.0.0

Operating system

Windows 10 (22H2) 19045.3324

Last known working Electron Forge version

No response

Expected behavior

I'm trying to build a 32-bit version of my app using @electron-forge/maker-squirrel. I have already successfully built the x64 version with the same configuration using npm run make --arch="x64" --platform=win32.

Actual behavior

No x86 version built using npm run make --arch="ia32" --platform=win32. Script finishing successfully, BUT results in x64 build placed in out/make/squirrel.windows/x64/AppName.exe

Steps to reproduce

  1. Start a webpack/electronforge project on x64 Windows 10 PC
  2. Try to build x86 version using npm run make --arch="ia32" --platform=win32

My forge.config.ts squirel maker

import { MakerSquirrel } from '@electron-forge/maker-squirrel';

new MakerSquirrel({
      iconUrl: 'https://electon/icons/ic_launcher2.ico',
      setupIcon: path.resolve(__dirname, 'electron/icons/ic_launcher2.ico'),
      certificateFile: path.resolve(__dirname, 'certs/testsign.pfx'),
      certificatePassword: process.env.CERTIFICATE_PASSWORD
})

Additional information

No response

dfunckt commented 1 year ago

Try npm run make -- --arch="ia32" --platform=win32, note the double-dash (--) after npm run make.

Kutikov commented 1 year ago

Thank you, that works!

Try npm run make -- --arch="ia32" --platform=win32, note the double-dash (--) after npm run make.