GithubHelp home page GithubHelp logo

Signing and adding icns about forge HOT 19 CLOSED

electron avatar electron commented on May 24, 2024
Signing and adding icns

from forge.

Comments (19)

MarshallOfSound avatar MarshallOfSound commented on May 24, 2024

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.

ahadcove avatar ahadcove commented on May 24, 2024

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.

MarshallOfSound avatar MarshallOfSound commented on May 24, 2024

@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.

ahadcove avatar ahadcove commented on May 24, 2024

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.

malept avatar malept commented on May 24, 2024

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.

malept avatar malept commented on May 24, 2024

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.

ahadcove avatar ahadcove commented on May 24, 2024

Oh Okay thank you, I couldn't figure out how to actually use the configs, but now that makes sense

from forge.

ahadcove avatar ahadcove commented on May 24, 2024

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.

malept avatar malept commented on May 24, 2024

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.

ahadcove avatar ahadcove commented on May 24, 2024

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.

malept avatar malept commented on May 24, 2024

Does a darwin (non-mas) app work?

from forge.

ahadcove avatar ahadcove commented on May 24, 2024

Yes it works perfectly

from forge.

ahadcove avatar ahadcove commented on May 24, 2024

Well, before I sign it it works perfectly

from forge.

malept avatar malept commented on May 24, 2024

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.

ahadcove avatar ahadcove commented on May 24, 2024

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.

ahadcove avatar ahadcove commented on May 24, 2024

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.

MarshallOfSound avatar MarshallOfSound commented on May 24, 2024

@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.

malept avatar malept commented on May 24, 2024

This is more of a general Mac app question, perhaps look in an Apple development specific StackOverflow site?

from forge.

ahadcove avatar ahadcove commented on May 24, 2024

Okay, I will try and keep looking around. Thanks

from forge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.