Skip to content

Instantly share code, notes, and snippets.

View ohir's full-sized avatar

OHIR-RIPE ohir

  • private contractor
  • Poland
View GitHub Profile
@ohir
ohir / macapp.go
Created May 26, 2018 11:55 — forked from mholt/macapp.go
Distribute your Go program (or any single binary) as a native macOS application
// Package main is a sample macOS-app-bundling program to demonstrate how to
// automate the process described in this tutorial:
//
// https://medium.com/@mattholt/packaging-a-go-application-for-macos-f7084b00f6b5
//
// Bundling the .app is the first thing it does, and creating the DMG is the
// second. Making the DMG is optional, and is only done if you provide
// the template DMG file, which you have to create beforehand.
//
// Example use: