bozon icon indicating copy to clipboard operation
bozon copied to clipboard

Ability to create app for windows 32 bit system

Open sagrawal31 opened this issue 7 years ago • 3 comments

First, a wonderful tool to wrap electron packaging! Really great for bootstrap an electron app for the first time.

Here is my environment:

Environment Version
OS MacOS Sierra
electron 1.4.3
electron-builder 12.0.3
electron-packager-tf 7.5.3
gulp 3.9.1
npm 4.1.2

When I'm doing bozon package windows it is by default generating for 64-bit machine and app is working fine. But I don't find a way to generate for 32-bit machine using bozon.

Is there any option available or am I missing something?

I went through the code and found a temporary workaround by changing

this.electronBuilder.Platform[platform.toUpperCase()].createTarget()

to

this.electronBuilder.Platform[platform.toUpperCase()].createTarget(null,
        this.electronBuilder.Arch.ia32, this.electronBuilder.Arch.x64)

here packager.js#L49

sagrawal31 avatar Jan 31 '17 09:01 sagrawal31

i'm new to bozon and node so please help me ..where i'm i to put the packager.js file been trying to figure that out ... I'm very new

kinyodan avatar Sep 28 '17 23:09 kinyodan

Hello. Happy new year. Anyone could help me on how to setup or package my bozon generated app NSIS installer to be compatible both simultaneously IA32 and x64? I know how to generate it using "electron-builder" but with "bozon package", I don't. Anyone could help please? Thank you in advance.

ndrantotiana avatar Jan 03 '18 18:01 ndrantotiana

I found a solution to build both 32bit(ia32) and 64bit(x64) installers for Windows. Here is a portion of my "package.json". You could remove one of them in the following config if you want only one of them.

"build": {
   ...
    "win": {
      "target": [
        {
          "target": "nsis",
          "arch": [
            "x64",
            "ia32"
          ]
        }
      ],
      ...
    },
...

ndrantotiana avatar Jan 04 '18 15:01 ndrantotiana