diff options
author | Pierre Boutillier <pierre.boutillier@ens-lyon.org> | 2014-07-21 15:50:20 +0200 |
---|---|---|
committer | Pierre Boutillier <pierre.boutillier@ens-lyon.org> | 2014-07-22 17:13:32 +0200 |
commit | a088d03434417e935df3c75f81a954eadbdfc2b8 (patch) | |
tree | dcd5a5d4372236a46838106a13f3bf9a9e071dd2 /ide | |
parent | 4271bebb68b09ddcc0d283ab16acaab399e22f13 (diff) |
A makefile rule to build bin/CoqIDE_$VERSION.app macOS bundle
The created bundle contains only coqide and gtk (no coqtop, no stdlib)
Diffstat (limited to 'ide')
-rw-r--r-- | ide/MacOS/Info.plist.template | 87 | ||||
-rw-r--r-- | ide/MacOS/coqfile.icns | bin | 0 -> 50724 bytes | |||
-rw-r--r-- | ide/MacOS/coqide.icns | bin | 0 -> 38372 bytes | |||
-rw-r--r-- | ide/MacOS/default_accel_map (renamed from ide/mac_default_accel_map) | 0 | ||||
-rwxr-xr-x | ide/MacOS/relatify_with-respect-to_.sh | 15 |
5 files changed, 102 insertions, 0 deletions
diff --git a/ide/MacOS/Info.plist.template b/ide/MacOS/Info.plist.template new file mode 100644 index 000000000..cba708e94 --- /dev/null +++ b/ide/MacOS/Info.plist.template @@ -0,0 +1,87 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict> + <key>CFBundleDocumentTypes</key> + <array> + <dict> + <key>CFBundleTypeExtensions</key> + <array> + <string>*</string> + </array> + <key>CFBundleTypeName</key> + <string>NSStringPboardType</string> + <key>CFBundleTypeOSTypes</key> + <array> + <string>****</string> + </array> + <key>CFBundleTypeRole</key> + <string>Editor</string> + </dict> + <dict> + <key>CFBundleTypeIconFile</key> + <string>coqfile.icns</string> + <key>CFBundleTypeName</key> + <string>Coq file</string> + <key>CFBundleTypeRole</key> + <string>Editor</string> + <key>CFBundleTypeMIMETypes</key> + <array> + <string>text/plain</string> + </array> + <key>CFBundleTypeExtensions</key> + <array> + <string>v</string> + </array> + <key>LSHandlerRank</key> + <string>Owner</string> + </dict> + <dict> + <key>CFBundleTypeName</key> + <string>All</string> + <key>CFBundleTypeRole</key> + <string>Editor</string> + <key>CFBundleTypeMIMETypes</key> + <array> + <string>text/plain</string> + </array> + <key>LSHandlerRank</key> + <string>Default</string> + <key>CFBundleTypeExtensions</key> + <array> + <string>*</string> + </array> + </dict> + </array> + <key>CFBundleIconFile</key> + <string>coqide.icns</string> + <key>CFBundleVersion</key> + <string>390</string> + <key>CFBundleName</key> + <string>CoqIDE</string> + <key>CFBundleShortVersionString</key> + <string>Coq_vVERSION</string> + <key>CFBundleDisplayName</key> + <string>Coq Proof Assistant vVERSION</string> + <key>CFBundleGetInfoString</key> + <string>Coq_vVERSION</string> + <key>NSHumanReadableCopyright</key> + <string>Copyright 1999-2014, The Coq Development Team INRIA - CNRS - LIX - LRI - PPS</string> + <key>CFBundleHelpBookFolder</key> + <string>share/doc/coq/html/</string> + <key>CFAppleHelpAnchor</key> + <string>index</string> + <key>CFBundleExecutable</key> + <string>coqide</string> + <key>CFBundlePackageType</key> + <string>APPL</string> + <key>CFBundleInfoDictionaryVersion</key> + <string>6.0</string> + <key>CFBundleIdentifier</key> + <string>fr.inria.coqide</string> + <key>CFBundleDevelopmentRegion</key> + <string>English</string> + <key>NSPrincipalClass</key> + <string>NSApplication</string> +</dict> +</plist> diff --git a/ide/MacOS/coqfile.icns b/ide/MacOS/coqfile.icns Binary files differnew file mode 100644 index 000000000..1946f3d61 --- /dev/null +++ b/ide/MacOS/coqfile.icns diff --git a/ide/MacOS/coqide.icns b/ide/MacOS/coqide.icns Binary files differnew file mode 100644 index 000000000..2252bb4b6 --- /dev/null +++ b/ide/MacOS/coqide.icns diff --git a/ide/mac_default_accel_map b/ide/MacOS/default_accel_map index 6f474eb12..6f474eb12 100644 --- a/ide/mac_default_accel_map +++ b/ide/MacOS/default_accel_map diff --git a/ide/MacOS/relatify_with-respect-to_.sh b/ide/MacOS/relatify_with-respect-to_.sh new file mode 100755 index 000000000..a24af9395 --- /dev/null +++ b/ide/MacOS/relatify_with-respect-to_.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e + +for i in "$3/"*.dylib +do install_name_tool -change "$2"/$(basename $i) @executable_path/../Resources/lib/$(basename $i) "$1" +done +case "$1" in + *.dylib) + install_name_tool -id @executable_path/../Resources/lib/$(basename $1) $1 + for i in "$3"/*.dylib + do install_name_tool -change "$2/"$(basename $1) @executable_path/../Resources/lib/$(basename $1) $i + done;; + *) +esac |