Skip to content

codesign for osx #43

Description

@pctj101

Hi Mark,

I'm working on a gobuffalo project and on refresh, if I listen on non-localhost, I get the dialog:

Do you want the application “yourapp-build” to accept incoming network connections?

I found that the following sequence of commands clears the warning

sudo /usr/libexec/ApplicationFirewall/socketfilterfw --remove `pwd`/tmp/yourapp-build
sudo codesign --force --sign - `pwd`/tmp/payedge-build                            
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --add `pwd`/tmp/yourapp-build             

And seems we can shove it into runner.go just before cmd is run:

func (m *Manager) runner() {
        var cmd *exec.Cmd
        for {
                <-m.Restart  // right after this

Any plans/thoughts on this topic?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions