Rev 4 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4 | Rev 7 | ||
---|---|---|---|
Line 4... | Line 4... | ||
4 | APP_NAME="Rick Dangerous" |
4 | APP_NAME="Rick Dangerous" |
5 | APP_VERSION="1. |
5 | APP_VERSION="1.3" |
6 | APP_COPYRIGHT="© 2016 Pierre-Marie Baty |
6 | APP_COPYRIGHT="© 2016 Pierre-Marie Baty |
7 | © 2002 BigOrno |
7 | © 2002 BigOrno |
8 | © 1989 CORE Design |
8 | © 1989 CORE Design |
9 | Artwork by Simon Phipps" |
9 | Artwork by Simon Phipps" |
10 | BUNDLE_ID="com.pmbaty.rick.rickdangerous" |
10 | BUNDLE_ID="com.pmbaty.rick.rickdangerous" |
Line 18... | Line 18... | ||
18 | mkdir "${APP_NAME}.app/Contents" |
18 | mkdir "${APP_NAME}.app/Contents" |
19 | mkdir "${APP_NAME}.app/Contents/MacOS" |
19 | mkdir "${APP_NAME}.app/Contents/MacOS" |
20 | mkdir "${APP_NAME}.app/Contents/Frameworks" |
20 | mkdir "${APP_NAME}.app/Contents/Frameworks" |
21 | mkdir "${APP_NAME}.app/Contents/Resources" |
21 | mkdir "${APP_NAME}.app/Contents/Resources" |
22 | 22 | ||
23 | cp - |
23 | cp -pPR SDL2.framework "${APP_NAME}.app/Contents/Frameworks" |
- | 24 | rm -rf "${APP_NAME}.app/Contents/Frameworks/SDL2.framework/Versions/A/_CodeSignature" |
|
- | 25 | rm -rf "${APP_NAME}.app/Contents/Frameworks/SDL2.framework/Versions/A/Headers" |
|
- | 26 | rm -rf "${APP_NAME}.app/Contents/Frameworks/SDL2.framework/Headers" |
|
- | 27 | rm -rf "${APP_NAME}.app/Contents/Frameworks/SDL2_image.framework" |
|
24 | 28 | ||
25 | gcc *.c osx-sdlmain.m - |
29 | gcc *.c osx-sdlmain.m -ISDL2.framework/Headers -framework Foundation -framework Cocoa -F. -framework SDL2 -o "${APP_NAME}.app/Contents/MacOS/${APP_NAME}" |
26 | if [ ! "_$?" = "_0" ]; then |
30 | if [ ! "_$?" = "_0" ]; then |
27 | rm -rf "${APP_NAME}.app" |
31 | rm -rf "${APP_NAME}.app" |
28 | exit |
32 | exit |
29 | fi |
33 | fi |
30 | install_name_tool -add_rpath "@loader_path/../Frameworks" "${APP_NAME}.app/Contents/MacOS/${APP_NAME}" |
34 | install_name_tool -add_rpath "@loader_path/../Frameworks" "${APP_NAME}.app/Contents/MacOS/${APP_NAME}" |