Skip to content

Steps for building an OSX .pkg file for releases #674

Description

@GoogleCodeExporter
Hello!

I noticed that download for Pencil's OSX release is a .tar.bz2 file. If you 
have interest, the following will convert that .tar.bz2 to an OSX .pkg file for 
(hopefully) easier installation:

fpm -s tar -t osxpkg -n Pencil -v 2.0.6 --prefix /Applications/ 
Pencil-2.0.6-mac.tar.bz2

This requires fpm (an open source tool I help maintain) and ruby to achieve.

Once the .pkg file is made, users can install it by double-clicking, and the 
resulting package will install to /Applications/ (and request elevated 
credentials to write to that location during the install).

If you find this useful, sweet! If not, that's ok :)

---

Example use:

# Creating the package (usually by the release process)
% fpm -s tar -t osxpkg -n Pencil -v 2.0.6 --prefix /Applications/ 
Pencil-2.0.6-mac.tar.bz2
Created package {:path=>"Pencil-2.0.6.pkg"}

# As a user
% open Pencil-2.0.6.pkg
... Normal OSX package installer UI presents itself ...
% ls -ld /Applications/Pencil.app
drwxr-xr-x  3 root  wheel  102 Apr 13 18:02 /Applications/Pencil.app/

Original issue reported on code.google.com by j...@semicomplete.com on 14 Apr 2015 at 1:07

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions