Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to create app for windows 32 bit system #35

Open
sagrawal31 opened this issue Jan 31, 2017 · 3 comments
Open

Ability to create app for windows 32 bit system #35

sagrawal31 opened this issue Jan 31, 2017 · 3 comments

Comments

@sagrawal31
Copy link

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

@kinyodan
Copy link

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

@ndrantotiana
Copy link

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
Copy link

ndrantotiana commented Jan 4, 2018

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"
          ]
        }
      ],
      ...
    },
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants