Giter Club home page Giter Club logo

Comments (8)

jasonhinkle avatar jasonhinkle commented on July 17, 2024

I'll take a look further into this per your note at #4 . I'm not sure if auto-detecting binaries would be the easiest way or if that is possible..? For example - in my app I actually make a call out to a python script which is treated like a binary, but is not really a binary file, it merely needs to be signed with an entitlement to be accepted.

I'll see if I can figure out if there is a way to reliably do it without any user input, or otherwise provide some sensible argument.

from osx-sign.

sethlu avatar sethlu commented on July 17, 2024

@jasonhinkle Sounds good. Anyway we could go for the --additional-binaries option without too much work. Also, I'm not sure about a workable delimiter as commas may be used as parts of the paths to any files.
As I'm using substack/minimist to parse the arguments, app as part of the input. We may have all other arguments after the first as additional binaries to be signed:

# To have path/to/my/binary and path/to/my/another/binary.dylib as additional binaries to be signed:
electron-osx-sign my_app.app path/to/my/binary path/to/my/another/binary.dylib
# To have options as well
electron-osx-sign my_app.app path/to/my/binary path/to/my/other/binary [--options...]

Any suggestions on this way of working?

from osx-sign.

jasonhinkle avatar jasonhinkle commented on July 17, 2024

I think that would work just fine, it makes sense I think. It probably will be a lesser-used option I'm sure, but as I'm finding electron makes an awesome way to write GUI for command-line applications. That's what I'm doing, ffmpeg in my case I'm able to make simple GUIs to do complicated file conversions.

I haven't had a chance to write any code yet but if you don't get to it then I will once i'm finished with my current project.

from osx-sign.

sethlu avatar sethlu commented on July 17, 2024

@jasonhinkle That's fine. I could work on a fork tomorrow on a concatenation of files/dirs along with the required binaries quite quickly.

from osx-sign.

sethlu avatar sethlu commented on July 17, 2024

Here it is; it looks like a neat way to work around this issue: https://github.com/sethlu/electron-osx-sign/pull/8

from osx-sign.

jasonhinkle avatar jasonhinkle commented on July 17, 2024

I just tested it, there's a minor bug:

Line 114 of index.js:

if (opts.binaries) childPaths.concat(opts.binaries)

should be this:

if (opts.binaries) childPaths = childPaths.concat(opts.binaries)

Once I changed that it worked and signed the additional binaries - awesome!

from osx-sign.

sethlu avatar sethlu commented on July 17, 2024

@jasonhinkle cool, thanks! I'll also do some manual testing and that should be ready for merging.

from osx-sign.

sethlu avatar sethlu commented on July 17, 2024

Just merged #8. The signing with additional binaries should be available for future releases, which I'm planning to do now, as a lot have been changed since the last.
Again, thanks for helping to improve this module!

from osx-sign.

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.