A Go package that moves the running MacOS application to the Applications folder using potionfactory/LetsMove.
Builds and runs on MacOS 10.6 or higher.
Made for .app bundles, not single-binary command line apps.
Does NOT support sandboxed applications.
package main
import "github.com/abemedia/letsmove"
func init() {
letsmove.MoveToApplications()
}
func main() {
// your business logic...
}
To translate the messages download the MoveApplication.string
files from
https://github.com/potionfactory/LetsMove and place them in your bundle's
Contents/Resources
directory in a folder named ${ISO_CODE}.lproj
e.g.
MyBundle.app/Contents/Resources/en.lproj/MoveApplication.string
.