macpack

command module
v0.0.0-...-b1c9f7e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2017 License: MIT Imports: 19 Imported by: 0

README

macpack

Build Status Go Report Card Coverage Status

Program to package MacOS apps. Will create a .app.

Install

go get -u github.com/murlokswarm/macpack

Usage

In a directory where the package name is main,

macpack build

macpack will automatically create these directories and files:

  • resources
  • resources/css
  • mac.json

Customize build

Build can be customized by modifying mac.json.

eg:

{
  "name": "Jubiz",
  "id": "maxence.Jubiz",
  "version": "1.0",
  "build-number": 4243,
  "icon": "jubiz.png",
  "dev-region": "en",
  "deployment-target": "10.12",
  "copyright": "Copyright © 2017 maxence. All rights reserved",
  "role": "None",
  "category": "public.app-category.photography",
  "sandbox": true,
  "capabilities": {
    "network": {
      "in": false,
      "out": true
    },
    "hardware": {
      "camera": false,
      "microphone": false,
      "usb": false,
      "printing": false,
      "bluetooth": false
    },
    "app-data": {
      "contacts": false,
      "location": false,
      "calendar": false
    },
    "file-access": {
      "user-selected": "",
      "downloads": "",
      "pictures": "",
      "music": "",
      "movies": ""
    }
  },
  "app-store": false,
  "supported-files": []
}

Sass

Sass can be used with:

macpack sass

This launches sass with watch mode. .scss from resources/scss will be converted to .css in resources/css.

Require sass to be installed:

sudo gem install sass

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL