diff options
| author | Maxime Dénès | 2015-11-12 11:59:33 +0100 |
|---|---|---|
| committer | Maxime Dénès | 2015-11-12 11:59:33 +0100 |
| commit | 7978e1dbd6dcd409b0b98a4b407a66b104dff3ba (patch) | |
| tree | 52186f532bacd6f05de819ef006176f9bcf2719a /dev | |
| parent | 7de9c1a45a354676a073e216f42c34820e454691 (diff) | |
Script building MacOS package.
Diffstat (limited to 'dev')
| -rwxr-xr-x | dev/make-macos-dmg.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/dev/make-macos-dmg.sh b/dev/make-macos-dmg.sh new file mode 100755 index 0000000000..8f6a7f9e1b --- /dev/null +++ b/dev/make-macos-dmg.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +# Fail on first error +set -e + +# Configuration setup +eval `opam config env` +make distclean +OUTDIR=$PWD/_install +DMGDIR=$PWD/_dmg +./configure -debug -prefix $OUTDIR +VERSION=$(sed -n -e '/^let coq_version/ s/^[^"]*"\([^"]*\)"$/\1/p' configure.ml) +APP=bin/CoqIDE_${VERSION}.app + +# Create a .app file with CoqIDE +~/.local/bin/jhbuild run make -j -l2 $APP + +# Build Coq and run test-suite +make && make check + +# Add Coq to the .app file +make OLDROOT=$OUTDIR COQINSTALLPREFIX=$APP/Contents/Resources/ install-coq install-ide-toploop + +# Sign the .app file +codesign -f -s - $APP + +# Create the dmg bundle +mkdir $DMGDIR +ln -s /Applications $DMGDIR +cp -r $APP $DMGDIR +hdiutil create -imagekey zlib-level=9 -volname CoqIDE_$VERSION -srcfolder $DMGDIR -ov -format UDZO CoqIDE_$VERSION.dmg |
