nwutils / nw-builder

Build NW.js applications for Linux, MacOS and Windows
MIT License
1.68k stars 302 forks source link

v0.87.0 MacOS builds don't launch with nw-builder v4.7.4 #1088

Closed CosmoMyzrailGorynych closed 2 months ago

CosmoMyzrailGorynych commented 5 months ago

Issue Type

Current/Missing Behaviour

An app built for MacOS doesn't launch. No errors, no popups, nothing. The buids are baked on a Linux runner and zipped later. I checked the zip structure and the symlinks are all in place, nothing have vanished, so I'm pretty sure it's not a problem on my side.

Expected/Proposed Behaviour

Apps should work.

Additional Info

Builder config object for mac builds:

{
    version: nwVersion,
    flavor: 'sdk',
    srcDir: './app/',
    glob: false,
    mode: 'build',
    platform: 'osx',
    arch: 'x64',
    outDir: `./build/ctjs - v${pack.version}/${itchChannel}`,
    zip: false
}
ayushmanchhabra commented 5 months ago

From what I understand, you're building MacOS x64 executable and running it on M1 (ARM). Do you have Rosetta enabled?

CosmoMyzrailGorynych commented 5 months ago

Well, I'm only relaying info from my user. I asked about Rosetta (awaiting response), but previously they used x64 builds just fine before I updated nw.js from v0.72.0 to v0.87.0.

ayushmanchhabra commented 5 months ago

Are they able to run the ARM build on their M1? if not, then it is probably a nw-builder issue.

marcobrunodev commented 5 months ago

From what I understand, you're building MacOS x64 executable and running it on M1 (ARM). Do you have Rosetta enabled?

Yeah! I'm using it with Rosetta activated

ayushmanchhabra commented 5 months ago

If NW.js v0.72.0 works with nw-builder v4.7.4 but v0.78 doesn't then there has been a change in the structure of the MacOS app which nw-builder is not taking into account. Will investigate

ayushmanchhabra commented 4 months ago

@marcobrunodev What do the logs say when running the application? Running it directly in terminal will allow ypu to see them.

CosmoMyzrailGorynych commented 4 months ago

@marcobrunodev What do the logs say when running the application? Running it directly in terminal will allow ypu to see them.

@marcobrunodev try that on ct.js Nightly's version 2342a50c (May 13)