Closed achekroud closed 8 years ago
tagging @ameesme just in case he can solve this issue also!
I think I can! By running that command, you're trying to create a new build including one for OSX. This requires the package to be signed with an app-id you create with your development account.
https://github.com/henryboldi/felony/blob/master/package.js#L127 Check this line.
Hmm.. I think I'm a little lost still. If I call "npm run dev" I get this error in a popup Electron window. I'm not sure how I would make an app-id. I think this is still really aimed at people who are a lot more familiar with js and cryptography, perhaps not yet ready for people a bit out of the loop. Thanks a lot for your help though @ameesme - much appreciated.
Uncaught Exception:
TypeError: Cannot read property 'start' of undefined
at Object.<anonymous> (main.development.js:9:1)
at Module._compile (module.js:413:34)
at loader (/Users/adamchekroud/felony/node_modules/babel-register/lib/node.js:158:5)
at Object.require.extensions.(anonymous function) [as .js] (/Users/adamchekroud/felony/node_modules/babel-register/lib/node.js:168:7)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at loadApplicationPackage (/Users/adamchekroud/felony/node_modules/electron-prebuilt/dist/Electron.app/Contents/Resources/default_app.asar/main.js:253:23)
at Object.<anonymous> (/Users/adamchekroud/felony/node_modules/electron-prebuilt/dist/Electron.app/Contents/Resources/default_app.asar/main.js:293:5)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
@achekroud I am very familiar with JS and crypto, and am having this same problem. I'm still looking into electron, but even following the README.md, I haven't been able to get anything working
EDIT: Figured it out, if you set that ID that @ameesme mentioned to '-', you'll run it in ad-hoc signing mode, which at least for me gets the application to open...
@tobycyanide-pwr haha, that makes me feel better. I made the edit you suggested, but the app still doensn't open for me. What command am I supposed to be inferring? npm run package executes fine and then says:
Packaging app for platform darwin x64 using electron v0.37.8
WARNING: osx-sign.app will be inferred from the main options
darwin-x64 finished
but not clear how you're supposed to start the application :s
@achekroud in the directory of the project, there should be a directory called release, and in there there should be a directory, which contains another directory, which contains a Felony.app file.
~/felony/release/darwin-x64/Felony-darwin-x64/Felony.app
At least, that's where mine is. The app doesn't start and still has a white screen, but it opens a little window, which is better than npm run dev
@tobycyanide ok, thx, we are in identical positions then. mine does exact same.
Funny. The same now happens for me. Not sure what is up. I'm gonna take a look at this tomorrow.
Hello,
npm run package
is to generate the package and then run as an application (i.e. Felony.app
on OSX).
If you wish to just run the application you can npm run dev
.
If you have more questions or concerns please feel free to comment on here and I'll re-open the issue!
Hey again
I'm trying to run felony in Mac OSX. When, as instructed, I type:
adamchekroud $ npm run package
I get the following output (but no application popping up):