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

Invalid platform #97

Closed
tborychowski opened this issue Dec 18, 2015 · 4 comments
Closed

Invalid platform #97

tborychowski opened this issue Dec 18, 2015 · 4 comments

Comments

@tborychowski
Copy link
Contributor

I'm trying to build osx app on ubuntu and I'm getting an error:

electron-builder \"dist/osx/MyApp.app\" --platform=osx --out=\"dist/osx\" --config=packager.json
- Running electron-builder 2.4.0
/usr/local/lib/node_modules/electron-builder/cli.js:40
    throw error;
    ^

Error: Invalid platform.
    at Object.OSXBuilder.build (/usr/local/lib/node_modules/electron-builder/lib/osx.js:28:24)
    at Object.Builder.build (/usr/local/lib/node_modules/electron-builder/index.js:74:42)
    at Object.<anonymous> (/usr/local/lib/node_modules/electron-builder/cli.js:36:9)
    at Module._compile (module.js:434:26)
    at Object.Module._extensions..js (module.js:452:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Function.Module.runMain (module.js:475:10)
    at startup (node.js:118:18)
    at node.js:952:3

My packager.json is exactly the same as in your readme example.

@havenchyk
Copy link
Contributor

The error message isn't very helpful, but it's from node-appdmg and it mean that there is no way to build dmg on non-osx.

@havenchyk
Copy link
Contributor

Look at LinusU/node-appdmg#14 and LinusU/node-appdmg#80 for details.

@stefanjudis
Copy link
Contributor

I think I'll close this one for now as there is no way to fix it here. :(

Feel free to reopen later on. :)

@havenchyk
Copy link
Contributor

@stefanjudis is there this info in the readme?

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

No branches or pull requests

3 participants