0.0
No commit activity in last 3 years
No release in over 3 years
Create launcher app bundles with icon from app bundle
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.16
~> 0.11
~> 10.0

Runtime

~> 3.4
 Project Readme

Maintainability

create_bundle

Tool for creating MacOS application bundles containing an icon and launch command copied from the source application.

Example

example

Why?

  • Can't you just create a link? Yes I can but I can't add commands to be run before an app is started
  • Can't you just do it all using a bash one liner? Yes I can but I'm lazy and the gem exec provides some basic error handling
  • To create bare bundles to edit later

Installation

$ gem install create_bundle

Usage

Usage: cb [OPTIONS] SOURCE_APP [DESTINATION_APP]
Usage: cb -i ICON -s SCRIPT -b DESTINATION_APP
    -v, --[no-]verbose               Run verbosely
    -i, --icon PATH                  Use a custom icon
    -s, --script PATH                Use a custom executable
    -b, --bare                       Create a bare bundle
$ cb -v /Applications/iTerm.app ~/Desktop/iTerm.app
$ cb -b -i Icon.icns -s start.sh New.app

What does it actually do?

The script when run for a source app bundle copies the icon file from the bundle (trying to parse the Info.plist, falling back to AppIcon.icns when failed), creates a new app bundle with this icon and a script to open the original app bundle. You may say the end result is kind of like creating a filesystem link.

You can create a "bare" bundle with a custom script and icon

License

The gem is available as open source under the terms of the MIT License.