Skip to content

codesign for osx #43

Open
Open
@pctj101

Description

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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