The purpose of this is to build a GHC macOS Installer to demonstrate how to code sign, package, and notarize an application.
GHC macOS Installer was originally created and influenced by Kosala Sananthana's tool at KosalaHerath/macos-installer-builder.
-
macOS 10.15.6 or greater
-
Xcode 11.6 or greater
-
Download and decompress a recent GHC version
wget https://downloads.haskell.org/~ghc/<X.Y.Z>/ghc-<X.Y.Z>-x86_64-apple-darwin.tar.xz gunzip -dc ghc-<X.Y.Z>-x86_64-apple-darwin.tar.xz | tar xf -
e.g.
wget https://downloads.haskell.org/~ghc/8.10.2/ghc-8.10.2-x86_64-apple-darwin.tar.xz gunzip -dc ghc-8.10.2-x86_64-apple-darwin.tar.xz | tar xf -
-
Download the installer
git clone https://github.com/conradwt/ghc-macos-installer
-
Copy files to macOS Installer
application
directorycp -r /path/to/ghc-<X.Y.Z>/* /path/to/ghc-macos-installer/macOS-x64/application
e.g.
cp -r /path/to/ghc-8.10.2/* /path/to/ghc-macos-installer/macOS-x64/application
-
Run installer
cd /path/to/ghc-macos-installer ./build-macos-x64.sh <product> <version>
e.g.
./build-macos-x64.sh ghc 8.10.2
-
https://developer.apple.com/documentation/xcode/notarizing_macos_software_before_distribution
-
https://medium.com/swlh/the-easiest-way-to-build-macos-installer-for-your-application-34a11dd08744
Bug reports and feature requests can be filed for the cassandra-example-using-rails project here:
-
Conrad Taylor (@conradwt)
-
Kosala Sananthana (@KosalaHerath)
This repository is released un the MIT License
© Copyright 2020 Conrad Taylor. All Rights Reserved.