Permalink
Browse files

Final tweaks to Mac installer

symbolic links now made -sf to ensure they work
added reminder to sign installers
  • Loading branch information...
1 parent 0ec142d commit 9952bbfadf688b29e33713d7c9862591e3f1e097 @mzero mzero committed Nov 4, 2012
Showing with 18 additions and 8 deletions.
  1. +11 −4 NOTES-2012.4.0.0
  2. +7 −4 src/macos/Makefile
View
@@ -24,6 +24,15 @@
* Still need the PatchSettings.hs program
+* sign with:
+ productsign --sign 'Developer ID Installer: Mark Lentczner' xxx.pkg xxx-signed.pkg
+* check wtih:
+ spctl -a -v --type install xxx-signed.pkg
+
+* installing one same GHC version over existing (even if archs are different):
+ - causes failures in the postinstall.sh where the links for docs fail as they are not -sf
+ - uninstall-hs doesn't catch this
+
TODO
@@ -44,10 +53,10 @@ MAC TODO
[x] mac cabal script needs to quote things with $HOME or ~ in them (ticket #192)
[x] If the cabal command is "update" then the wrapper script shouldn't do an
update the first time through!
-[] sign Mac installers (ticket #203)
+[x] sign Mac installers (ticket #203)
+ [x] add instructions to makefile output
[] where are the GLUT documents (ticket #202)
-
WEB TODO
--------
[] update language to indicate that 64-bit needs Xcode 4.1 or later
@@ -59,5 +68,3 @@ WEB TODO
[] merge in pull request #7
[] pretty up and update release timetable page (ticket #131)
-
-[] close tickets: 192, 195, 197, 198, 207
View
@@ -257,9 +257,9 @@ $(IMAGE_INDEX_HTML): $(HP_POST_SCRIPT)
$$read --title="Haskell Platform"
# These can't be symlink'd in the image as they cause PackageMaker fits
# So symlink them in the post install script
- echo "ln -s $(PKGS_PLAT_REL) $(TARGET_DOC_BASE)/packages" >> $(HP_POST_SCRIPT)
- echo "ln -s $(PKGS_GHC_REL) $(TARGET_DOC_BASE)/ghc-doc" >> $(HP_POST_SCRIPT)
- echo "ln -s $(PKGS_API_REL) $(TARGET_DOC_BASE)/ghc-api" >> $(HP_POST_SCRIPT)
+ echo "ln -sf $(PKGS_PLAT_REL) $(TARGET_DOC_BASE)/packages" >> $(HP_POST_SCRIPT)
+ echo "ln -sf $(PKGS_GHC_REL) $(TARGET_DOC_BASE)/ghc-doc" >> $(HP_POST_SCRIPT)
+ echo "ln -sf $(PKGS_API_REL) $(TARGET_DOC_BASE)/ghc-api" >> $(HP_POST_SCRIPT)
$(IMAGE_START_HTML): start.html
cp $< $@
@@ -332,7 +332,10 @@ $(INSTALLER_PACKAGE): Platform.pmdoc ghc scripts polish
ln -s $(BUILD) dist
@echo "Build from PackageMaker please..."
rm -f Platform.pmdoc/*-contents.xml
- open -a /Developer/Applications/Utilities/PackageMaker.app Platform.pmdoc
+ open -a PackageMaker.app Platform.pmdoc
+ @echo "After building, sign & check with:"
+ @echo " productsign --sign 'Developer ID Installer: name' xxx.pkg xxx-signed.pkg"
+ @echo " spctl -a -v --type install xxx-signed.pkg"
installer: $(INSTALLER_PACKAGE)
clean-installer:

0 comments on commit 9952bbf

Please sign in to comment.