deckarep / gosx-notifier

gosx-notifier is a Go framework for sending desktop notifications to OSX 10.8 or higher

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Embed the terminal-notifier so it's statically linked to the app and deploy-able to other environments.

deckarep opened this issue · comments

Currently, the terminal-notifier is found by being in the GOPATH src directory of the project. If you deploy a binary using this package, the terminal-notifier dependency will also need to be moved over and setup to be found. This can lead to trouble and confusion. The solution is to embed the terminal-notifier statically into the package such that it can be utilized in any environment.

Closing this, the app is no longer dependent on the binary being external. The binary is embedded as a Go source file of bytes as a zipped resource.