Comments (19)
See https://github.com/electron-userland/electron-forge#configuring-package for how to configure electron-packager
.
The options are documented here https://github.com/electron-userland/electron-packager/blob/master/docs/api.md
from forge.
Got it thanks. Good thing and bad lol, because when I was signing with packager it kept breaking my app and I couldn't even open it after.
from forge.
@ahadcove Probably because you were modifying the files somehow after signing. If you sign and then modify it will consider the app "untrusted".
from forge.
I wonder if it had something to do with the entitlements being added after the osx-sign? Hmm, I guess I will figure out when I get my forge set up.
Well, I have all my electron scripts re-setup, now how do I tell electron-forge to use electronPackagerConfig?
Im trying to package as mas, I see that forge doesn't support it directly so I passed the parameter inside packager config, currently can't figure out how to use the config though
from forge.
Is the configuration section not clear enough? Also, here is what our package.json
template looks like (used when you create a new project): https://github.com/electron-userland/electron-forge/blob/master/tmpl/package.json
from forge.
Im trying to package as mas, I see that forge doesn't support it directly
It doesn't? You should be able to run electron-forge package --platform mas
.
from forge.
Oh Okay thank you, I couldn't figure out how to actually use the configs, but now that makes sense
from forge.
Everything is set up. Now i am still running into the problem after signing my app not opening. Even tried on a clean new system still will not open. I know this is not a forge question, but would you guys happen to know what might be going on?
from forge.
Did you address @MarshallOfSound's comment in #74 (comment)? It wasn't clear from your other comments.
There's a command that verifies a signed Mac app but I don't know it offhand, since Mac apps aren't in my area of expertise.
from forge.
Yes, I addressed it, it is not being modified after signing.
The command is
codesign -vvvv -d '../PathtoApp.app'
spctl --assess -vvvv '../PattoApp.app'
I checked those and Im getting all clean and accepted checks, yet my app still will not start
from forge.
Does a darwin (non-mas) app work?
from forge.
Yes it works perfectly
from forge.
Well, before I sign it it works perfectly
from forge.
At this point, it might be more helpful if you ask about Electron app signing at the electron-osx-sign
project, since the developers there have more knowledge about the topic, and also Packager/Forge delegates all signing tasks to that module.
from forge.
Okay, will try there. Responses are pretty slow, if at all over there though lol. Thank you guys for everything, I love how simple forge is!
from forge.
I posted on osx-sign, but I won't get an answer for a while. Would you guys happen to know why after I sign my app isn't allowed to access the web? Im guessing it has something to do with my entitlements. Do you guys notice anything or anything I could add?
parent.plist:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
</dict>
</plist>
child.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.inherit</key>
<true/>
</dict>
</plist>
from forge.
@ahadcove While we are happy to help with -forge
issues as @malept said signing and entitlements are a little out of our field of expertise. You're going to have to wait for a response on osx-sign
from forge.
This is more of a general Mac app question, perhaps look in an Apple development specific StackOverflow site?
from forge.
Okay, I will try and keep looking around. Thanks
from forge.
Related Issues (20)
- Feature Request: preStart simple hook HOT 2
- When making a folder using Electron-forge, after installing the exe file, a green boot page will pop up. How to close it? HOT 7
- @electron-forge/publisher-electron maker.clone is not a function HOT 1
- An error is reported after vue is imported HOT 8
- Error during packaging on macOS HOT 10
- The installation of the package printed by electron forge failed
- fix(cli): add descriptive error for node version mismatch
- How to pass environment variables to build ? HOT 5
- [Bug] An error when trying to install forge during import HOT 2
- Plugins are ignored and nothing runs after the generateAssets hook HOT 1
- Unable to package app on macOS using vite-typescript + typeorm library HOT 1
- Codesigning works on M* Mac but not on Intel Mac HOT 2
- @electron-forge/maker-zip don't have v7.4.0, but it install it HOT 2
- Update maker docs or defaults to Fiddle's config HOT 2
- error Couldn't find any versions for "@electron-forge/maker-zip" that matches "^7.4.0" HOT 2
- error when running make/package
- Add option to Vite plugin to filter copied dependencies HOT 10
- Cannot make with latest forge version HOT 3
- Weird PublisherGithub issues with gh action when running `electron-forge publish --arch=arm64,x64` to build macos arm and x64 intel at same time HOT 4
- The 'path' argument must be of type string. Received undefined HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from forge.