-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathbuild_mac.sh
executable file
·41 lines (36 loc) · 1.25 KB
/
build_mac.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/sh
TYPHON_ROOT=/usr/local/codetyphon
FPC=${TYPHON_ROOT}/fpc/fpc32/bin/i386-darwin/fpc
TYPHON=${TYPHON_ROOT}/typhon
FW=/System/Library/Frameworks
ARCH=i386-darwin
# clean
rm -fr smaliide.app
mkdir -p build/${ARCH}
# compile
${FPC} -MObjFPC -Scghi -O1 -gw -gl -l -vewnhibq \
-k-framework -kCarbon -k-framework -kOpenGL \
-k-dylib_file -k${FW}/OpenGL.framework/Versions/A/Libraries/libGL.dylib:${FW}/OpenGL.framework/Versions/A/Libraries/libGL.dylib \
-Fibuild/${ARCH} \
-FUbuild/${ARCH} \
-Fu . -Fuform -Fubase -Fuutil -Fuview -Fuview/synedit -Fuapi \
-Fu${TYPHON}/lcl/units/${ARCH}/carbon \
-Fu${TYPHON}/lcl/units/${ARCH} \
-Fu${TYPHON}/components/BaseUtils/lib/${ARCH} \
-Fu${TYPHON}/packager/units/${ARCH} \
-dLCL -dLCLcarbon \
smaliide.ppr
# bundle
mkdir smaliide.app
mkdir smaliide.app/Contents
mkdir smaliide.app/Contents/MacOS
mkdir smaliide.app/Contents/Resources
cp PkgInfo smaliide.app/Contents/PkgInfo
cp Info.plist smaliide.app/Contents/Info.plist
mv smaliide smaliide.app/Contents/MacOS/
cp -r bin smaliide.app/Contents/MacOS/
cp -r lib smaliide.app/Contents/MacOS/
cp -r style smaliide.app/Contents/MacOS/
cp -r template smaliide.app/Contents/MacOS/
cp -r image smaliide.app/Contents/MacOS/
cp smaliide.icns smaliide.app/Contents/Resources/