question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't build OS X bundle on linux

See original GitHub issue
# npm run build:osx

> jetchat-desktop@1.0.0 build:osx /root/JetChat/desktop
> npm run pack:osx && electron-builder "dist/osx/JetChat.app" --platform=osx --out="dist/osx" --config=builder.json


> jetchat-desktop@1.0.0 pack:osx /root/JetChat/desktop
> npm run clean:osx && electron-packager ./app "JetChat" --out=dist/osx --platform=darwin --arch=x64 --version=0.36.1 --icon=assets/osx/jetchat.icns


> jetchat-desktop@1.0.0 clean:osx /root/JetChat/desktop
> rm -rf ./dist/osx

Packaging app for platform darwin x64 using electron v0.36.1
Wrote new app to dist/osx/JetChat.app
- Running electron-builder 2.7.2
/root/JetChat/desktop/node_modules/electron-builder/cli.js:63
    throw error;
          ^
Error: Cannot find module 'appdmg'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/root/JetChat/desktop/node_modules/electron-builder/lib/osx.js:13:14)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)

npm ERR! Linux 4.1.13-boot2docker
npm ERR! argv "node" "/usr/bin/npm" "run" "build:osx"
npm ERR! node v0.12.10
npm ERR! npm  v2.13.2
npm ERR! code ELIFECYCLE
npm ERR! jetchat-desktop@1.0.0 build:osx: `npm run pack:osx && electron-builder "dist/osx/JetChat.app" --platform=osx --out="dist/osx" --config=builder.json`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the jetchat-desktop@1.0.0 build:osx script 'npm run pack:osx && electron-builder "dist/osx/JetChat.app" --platform=osx --out="dist/osx" --config=builder.json'.
npm ERR! This is most likely a problem with the jetchat-desktop package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run pack:osx && electron-builder "dist/osx/JetChat.app" --platform=osx --out="dist/osx" --config=builder.json
npm ERR! You can get their info via:
npm ERR!     npm owner ls jetchat-desktop
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /root/JetChat/desktop/npm-debug.log
# npm install -g appdmg
npm ERR! Linux 4.1.13-boot2docker
npm ERR! argv "node" "/usr/bin/npm" "install" "-g" "appdmg"
npm ERR! node v0.12.10
npm ERR! npm  v2.13.2
npm ERR! code EBADPLATFORM

npm ERR! notsup Unsupported
npm ERR! notsup Not compatible with your operating system or architecture: appdmg@0.3.5
npm ERR! notsup Valid OS:    darwin
npm ERR! notsup Valid Arch:  any
npm ERR! notsup Actual OS:   linux
npm ERR! notsup Actual Arch: x64

npm ERR! Please include the following file with any support request:
npm ERR!     /root/JetChat/desktop/npm-debug.log

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:11 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
develarcommented, Feb 15, 2016

It is possible to fix build DMG on Linux, but for what? You cannot sign app on Linux, so… implementing DMG support on Linux doesn’t make any sense.

1reaction
develarcommented, Sep 1, 2016

@jackric Will be fixed in 6.3.2 (10-20 minutes).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Building OSX App Bundle - macos - Stack Overflow
There are two ways to create an app bundle on MacOSX, the Easy and the Ugly. The easy way is just to use...
Read more >
How to install .bundle packages in Ubuntu?
How to use the file, based on this information? You can make it executable with chmod , then run it: chmod +x VMware-Player-6.0.3 ......
Read more >
Compiling Your Code in OS X - Apple Developer
Conceptual information and tips about porting UNIX and Linux applications to OS X.
Read more >
Can't build Mac OS X target on Linux (Ubuntu 18.04)
I downloaded new Hub for Linux. I downloaded 2018.3.10b and added Mac OS X support. But I can't build with this target.
Read more >
Is there a technical reason why you can't develop iOS apps on ...
Mac OS X can only contractually be run on Apple Hardware. iOS requires the Cocoa framework and to have access to a Mac...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found