Use the old Sierra install app to make a USB installer. Boot from the Sierra USB installer. Use the Terminal to change the Date: Terminal Command Date Install 10.12.6 “date” command string, where date is in the mmddHHMMyy format for 1223: so enter in Terminal: date Quit Terminal. Proceed with installing. The executable JAR file ShowTime.jar checks in at a mere 0.001 MB, but the installer file show-time-installer.pkg almost hits a whopping 70 MB. The reason is that the installer bundles the JRE (an Apple requirement for publishing Java programs to the Mac App Store). Whenever you need to create an installation package or distribution for Mac OS X 10.5 or later, Packages is the powerful and flexible solution you're looking for. With Packages, you can define which applications, bundles, documents or folders should be part of the payload of your installation packages and where they should be installed.
Basically, a Mac application has a
.app extension, but it’s not really a file — it’s a package. You can view the application’s contents by navigating to it in the Finder, right-clicking it and then choosing “Show Package Contents”.
The internal folder structure may vary between apps, but you can be sure that every Mac app will have a
Contents folder with a MacOS subfolder in it. Inside the MacOS directory, there’s an extension-less file with the exact same name as the app itself. This file can be anything really, but in its simplest form it’s a shell script. As it turns out, this folder/file structure is all it takes to create a functional app!
Enter appify
After this discovery, Thomas Aylott came up with a clever “appify” script that allows you to easily create Mac apps from shell scripts. Land measuring app for mac. The code looks like this: Adobe cc trial reset mac.
Installing and using appify is pretty straightforward if you’re used to working with UNIX. (I’m not, so I had to figure this out.) Here’s how to install it:
Download App Installer For Pc
After that, you can create apps based on any shell script simply by launching Terminal.app and entering something like this: Hero session download on mac.
Obviously, this would create a stand-alone application named
Your App Name.app that executes the your-shell-script.sh script.
After that, you can very easily add a custom icon to the app if you want to.
Adding a custom app icon
Note that this will work for any file or folder, not just
.app files.
ExamplesChrome/Chromium bootstrappers
I like to run Chrome/Chromium with some command-line switches or flags enabled. On Windows, you can create a shortcut and set the parameters you want in its properties; on a Mac, you’ll need to launch it from the command line every time. Well, not anymore :)
The
& at the end is not a typo; it is there to make sure Chromium is launched in a separate thread. Without the & , Chromium would exit as soon as you quit Terminal.app.
Launch a local web server from a directory
Say you’re working on a project and you want to debug it from a web server. The following shell script will use Python to launch a local web server from a specific directory and open the index page in your default browser of choice. After appifying it, you won’t even need to open the terminal for it anymore.
More?
Needless to say, the possibilities are endless. Just to give another example, you could very easily create an app that minifies all JavaScript and CSS files in a specific folder. Got any nice ideas? Let me know by leaving a comment!
'Great tutorial. Thank you for concise directions to get me running with Java on my new iMac.'A.M., May 3, 2010
'Thank you so much for this tutorial! I am new to programming and have never written any code on my mac before now. This was very helpful!'M.A., August 29, 2010
'Great tutorial.'W.C., October 8, 2009
'Great tutorial! Many thanks, this is really helpful for a programming assignment in a computer network class I'm taking.'Z.L., October 6, 2009
'Great tut omg thanks so much!'S., October 4, 2009
'I love this tutorial! Thank you!'S.R., March 4, 2009
App Installer Download
'Fantastic!!!!! Thank you very muchhhhh!! I can start mac programing now. The tutorial is great!!!'F., November 8, 2008
Mac os space usage app. 'Incredibly clear to follow, Thanks very much'J.G., October 1, 2008
'Très bon tutorial, merci beaucoup'K., November 7, 2007
'This is exactly the information I was looking for!! Is there a hangout desktop app for mac. Great job explaining how to use the Jar Bundler. I always wondered how to group my files into a single 'app' file.'J.L.M., July 6, 2007
Alarm clock app for macbook. 'Thanks for the tutorial.'D.W., June 6, 2007
'Great tutorial! Thank You very much!'T., May 19, 2007
'This is a very good developement friendly site'A.K., March 18, 2007
'Thankyou, I am very happy to read your content for MacJava. Thankyou very much'A., January 12, 2007
'Very Good!!!!'D.A., August 10, 2006
'Great article - I found it very helpful! Thanks!'J.T., August 1, 2006
'Hello, Great information, thank you very much! Can I translate your article in french?'P.T., January 21, 2006
'Great article!'D., December 9, 2005
'Thank you so much. Your instructions are perfectly concise. There is plenty of information about programming, but not nearly enough about installing and packaging. This page is a blessing.'S.B., October 21, 2005
'This is a great info on mac application builder'S.S., October 11, 2005
'sweet article! one of the clearest and simplest ive seen and everything just works!!'J.B., September 9, 2005
https://yellowberry432.weebly.com/emoji-apps-for-mac.html. 'Amazing, I would never have thought it was that easy. You are truely the best!'M.F., September 7, 2005
'Couldn't be more clearer!'M.H., August 13, 2005
Samsung phone program for pc. 'THX a lot - very helpful and direct to the point'T.W., August 9, 2005
Create Installer App Mac
'Cool -- you solved the mystery!'C.M., June 27, 2005
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |