Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Mac: Add support for code signing

  • Loading branch information...
commit 29763b8ab51996d5739f0785e316e4c4a8058c5c 1 parent 81b75c8
@bjorng authored
View
14 BUILD.unix
@@ -231,6 +231,20 @@ When everything is done, there should be a file named like
in the current directory.
+Code-signing the Wings3D application on Mac OS X
+================================================
+
+If you are a member of Apple's Mac developer program and have
+obtained a Developer ID certificate, you can sign the code for
+Wings3D so that Gatekeeper will accept it. Do like this:
+
+$ export WINGS_CODE_SIGN=yes
+$ make macosx
+
+You will be prompted for your login keychain password if the login
+keychain is locked.
+
+
Building an installation package for Linux (and other Unix systems)
===================================================================
View
2  Makefile
@@ -66,7 +66,7 @@ win32: all lang
macosx: all lang
(cd plugins_src/mac_file; $(MAKE))
(cd plugins_src/mac_file; $(MAKE) lang)
- (cd macosx; xcodebuild; ./make_dmg $(WINGS_VSN))
+ (cd macosx; ./mac_release $(WINGS_VSN))
#
# Build package for Unix.
View
4 macosx/Wings3d.plist
@@ -23,10 +23,14 @@
<string>Wings3d</string>
<key>CFBundleIconFile</key>
<string>wings3d.icns</string>
+ <key>CFBundleIdentifier</key>
+ <string>com.wings3d.wings3d</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.5</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
View
8 macosx/Wings3d.xcodeproj/project.pbxproj
@@ -165,7 +165,7 @@
29B97313FDCFA39411CA2CEA /* Project object */ = {
isa = PBXProject;
attributes = {
- LastUpgradeCheck = 0430;
+ LastUpgradeCheck = 0450;
};
buildConfigurationList = 4CA8398B085C2B4300C48A7F /* Build configuration list for PBXProject "Wings3d" */;
compatibilityVersion = "Xcode 3.2";
@@ -319,6 +319,7 @@
4C724755085C300D006ED218 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
+ COMBINE_HIDPI_IMAGES = YES;
COPY_PHASE_STRIP = NO;
ERLANG_PATH = /usr/local/lib/erlang;
FRAMEWORK_SEARCH_PATHS = "";
@@ -333,6 +334,7 @@
INSTALL_PATH = "$(HOME)/Applications";
JAVA_COMPILER_DEBUGGING_SYMBOLS = NO;
LIBRARY_SEARCH_PATHS = "";
+ MACOSX_DEPLOYMENT_TARGET = 10.8;
OTHER_CFLAGS = "";
OTHER_LDFLAGS = "";
PRODUCT_NAME = Wings3d;
@@ -350,6 +352,7 @@
4C724756085C300D006ED218 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
+ COMBINE_HIDPI_IMAGES = YES;
COPY_PHASE_STRIP = YES;
ERLANG_PATH = /usr/local/lib/erlang;
FRAMEWORK_SEARCH_PATHS = "";
@@ -361,6 +364,7 @@
INSTALL_PATH = "$(HOME)/Applications";
JAVA_COMPILER_DEBUGGING_SYMBOLS = NO;
LIBRARY_SEARCH_PATHS = "";
+ MACOSX_DEPLOYMENT_TARGET = 10.8;
OTHER_CFLAGS = "";
OTHER_LDFLAGS = "";
PRODUCT_NAME = Wings3d;
@@ -378,6 +382,7 @@
4C724757085C300D006ED218 /* Default */ = {
isa = XCBuildConfiguration;
buildSettings = {
+ COMBINE_HIDPI_IMAGES = YES;
ERLANG_PATH = /usr/local/lib/erlang;
FRAMEWORK_SEARCH_PATHS = "";
GCC_USE_GCC3_PFE_SUPPORT = NO;
@@ -388,6 +393,7 @@
INSTALL_PATH = "$(HOME)/Applications";
JAVA_COMPILER_DEBUGGING_SYMBOLS = NO;
LIBRARY_SEARCH_PATHS = "";
+ MACOSX_DEPLOYMENT_TARGET = 10.8;
OTHER_CFLAGS = "";
OTHER_LDFLAGS = "";
PRODUCT_NAME = Wings3d;
View
10 macosx/mac_release
@@ -0,0 +1,10 @@
+#!/bin/sh
+function developer_code_sign () {
+ if [ "x$WINGS_CODE_SIGN" != "x" ]; then
+ codesign -s "Developer ID" $1
+ fi
+}
+
+xcodebuild &&
+developer_code_sign build/Default/Wings3d.app &&
+./make_dmg $1
Please sign in to comment.
Something went wrong with that request. Please try again.