Click the drive to open it and you'll get a window with the actual application file (.app file), usually this is the file with the actual program icon. This is the file that you should drag to your applications folder. You can then right click on the.dmg drive on your desktop and unmount it, or just drag it to the trash.
- App Directory In Mac Shortcut
- Mac Terminal List Directory
- App Directory In Mac Operating System
- App Directory In Mac Os
A simple example to make a Mac OS X application from generated binary file
While software programs usually live in the Applications folder in macOS, they can be found all over the place. That’s because some apps are really tiny utilities that applications or services. My printers forward fine but folder redirection doesn't happen at all. It works fine when working from Windows but not from the Mac app. I don't see anywhere to tell the app what folders to forward to remote resources. I would think it would forward either all drives like it does in Windows or at least the user directory. This two part tutorial will show you how to locate the Applications Folder and Utilities Folder on your Mac computer. Part 1 shows how to find the Applicatio.
App Directory In Mac Shortcut
Introduction
A generated binary file of GUI application for Mac OS X can be launched directly, but it is not a kind of Mac OS X application. To be a Mac OS X application, we need to put it into an '.app' folder before we deploy it.
Solution
We just need to create an '.app' folder, and then put an 'Info.plist' file in it and put the generated binary file into the 'MacOS' sub-folder, then modify the 'Info.plist' to let it know the filename of the generated binary file.
Features used
We advise you to use following features:
Feature | Advice | Introduction | How to enable |
---|---|---|---|
GUI application type | Required | If your program is not GUI application, usually you need not to put it into an '.app' folder. | At Step 2, select Windows GUI |
Splash window | Recommended | To display a splash window is more friendly. This can tell user the program is starting. | At Step 3, select a picture |
Optional | If your program need to run in a certain 'working directory', you can enable 'Force CWD' to ignore the start position. | At Step 6 > Config Internal > Custom tab, use a 'forcecwd' item | |
Stdout redirect | Optional | Because the console window is not visible, if you need to get the content of System.out, you can redirect it to a disk file. | At Step 6 > Config Internal > Custom tab, use a 'stdout' item |
Mac Terminal List Directory
Steps
App Directory In Mac Operating System
Steps of this advice:
- The demo program is a simple calculator. ( Source code)
- Compile and pack into a jar file: SimpleCalc.jar. ( Jar file)
- Build a binary file for Mac OS X from jar file by Jar2Exe
- Start Jar2Exe, at step 1, click Browse Jar and select SimpleCalc.jar.
- Still at step 1, select Mac as target platform.
- At step 2, select Windows GUI application.
- At step 6, please check 'Create Universal Binary', to create a binary with both 32 and 64 cores.
- Click next until finish, then get the binary file 'SimpleCalc' for Mac OS X.
- For other options, please refer to other solutions.
- Make a Mac OS X application from the binary file
- Make an empty folder, for example './Calc/'
- Make a sub-folder 'Contents'.
- Make a sub-folder 'MacOS' and put the binary file in it, so we get './Calc/Contents/MacOS/SimpleCalc'.
- Add the 'execute' privilege to 'SimpleCalc' by 'chmod +x SimpleCalc' because windows filesystem could not express 'x'.
- Make a text file './Calc/Contents/Info.plist' with following content:
- Rename the folder './Calc' to './Calc.app'
- Icon of Mac '.app' folder, the icon file of '.app' folder is a '.icns' file, which means 'icons' in one file.
- Put the '.icns' file into sub-folder 'Resources', for example: './Calc/Contents/Resources/SimpleCalc.icns'.
- Specify the icon filename in 'Info.plist' file:
Download
App Directory In Mac Os
- solutions-all.zip - 11.3M, all solution related files in one file.