forked from RomanHargrave/displaycal
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#432] Added instructions on how to generate a macOS app and a dmg im…
…age.
- Loading branch information
Showing
1 changed file
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -118,3 +118,57 @@ This should install DisplayCAL. To run the UI: | |
```shell | ||
displaycal | ||
``` | ||
|
||
Building `DisplayCAL.app` | ||
------------------------- | ||
|
||
You can build a proper macOS app to make it easier to run the application. | ||
|
||
Fristly install the requirements if you didn't already done it before: | ||
|
||
```shell | ||
brew install glib gtk+3 [email protected] | ||
``` | ||
|
||
Clone the source of DisplayCAL, build and install it: | ||
|
||
```shell | ||
cd ~ | ||
git clone https://www.github.com/eoyilmaz/displaycal-py3 | ||
cd displaycal-py3 | ||
make venv build install | ||
source ./.venv/bin/activate | ||
``` | ||
|
||
Now you can generate the app: | ||
|
||
```shell | ||
python3 setup.py py2app | ||
``` | ||
|
||
That should generate a folder with the name `py2app.macosx-14.0-arm64-py3.13` under the | ||
`dist` folder which should contain another folder with the name `DisplayCAL-3.9.14` | ||
which should contain the `DisplayCAL.app` package. | ||
|
||
You can use this directly, by putting it under the `/Applications` of your system. | ||
|
||
Creating a `dmg` Image | ||
---------------------- | ||
|
||
You can generate a `dmg` image so that it is more compact and inline with how the other | ||
macOS applications are distributed. | ||
|
||
First put a link to the `Applications` folder for people to easily drag & drop the app | ||
in to their system `Applications` folder: | ||
|
||
```shell | ||
cd ~/displaycal-py3/dist/py2app.macosx-14.0-arm64-py3.13/DisplayCAL-3.9.14 | ||
ln -s /Applications | ||
``` | ||
|
||
Use `Disk Utility.app` to generate a `dmg` file, by using the | ||
`File -> New Image -> Image From Folder...` menu and selecting the | ||
`~/displaycal-py3/dist/py2app.macosx-14.0-arm64-py3.13/DisplayCAL-3.9.14` folder. | ||
|
||
Now you can rename the `dmg` file to `DisplayCAL-3.9.14_macOS_arm64.dmg` or | ||
`DisplayCAL-3.9.14_macOS_x86.dmg` depending on your macOS architecture. |