forked from MrKai77/Loop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
77 lines (75 loc) · 2.47 KB
/
makefile
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
app-standalone:
set -o pipefail && xcodebuild archive \
-project ./Loop.xcodeproj \
-destination "generic/platform=macOS" \
-scheme "Loop" \
-archivePath "./Build/Loop.xcarchive" \
-xcconfig "./Loop/Config.xcconfig" \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGNING_ALLOWED=NO \
CODE_SIGN_IDENTITY= \
CODE_SIGN_ENTITLEMENTS= \
GCC_OPTIMIZATION_LEVEL=s \
SWIFT_OPTIMIZATION_LEVEL=-O \
GCC_GENERATE_DEBUGGING_SYMBOLS=YES \
DEBUG_INFORMATION_FORMAT=dwarf-with-dsym | xcbeautify
cp -R ./Build/Loop.xcarchive/Products/Applications/ ./Build/
release:
set -o pipefail && xcodebuild archive \
-project ./Loop.xcodeproj \
-destination "generic/platform=macOS" \
-scheme "Loop" \
-archivePath "./Build/Loop.xcarchive" \
-xcconfig "./Loop/Config.xcconfig" \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGNING_ALLOWED=NO \
CODE_SIGN_IDENTITY= \
CODE_SIGN_ENTITLEMENTS= \
GCC_OPTIMIZATION_LEVEL=s \
SWIFT_OPTIMIZATION_LEVEL=-O \
GCC_GENERATE_DEBUGGING_SYMBOLS=YES \
DEBUG_INFORMATION_FORMAT=dwarf-with-dsym | xcbeautify
create-dmg \
--volname "Loop" \
--background "./assets/graphics/dmg-background.png" \
--window-pos 200 120 \
--window-size 660 400 \
--icon-size 160 \
--icon "Loop.app" 180 170 \
--hide-extension "Loop.app" \
--app-drop-link 480 170 \
--no-internet-enable \
"./Build/Loop.dmg" \
"./Build/Loop.xcarchive/Products/Applications/"
cp -R ./Build/Loop.xcarchive/Products/Applications/ ./Build/
ditto -c -k --sequesterRsrc --keepParent ./Build/Loop.app ./Build/Loop.zip
debug:
set -o pipefail && xcodebuild archive \
-project ./Loop.xcodeproj \
-destination "generic/platform=macOS" \
-scheme "Loop" \
-configuration Debug \
-archivePath "./Build/Loop.xcarchive" \
-xcconfig "./Loop/Config.xcconfig" \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGNING_ALLOWED=NO \
CODE_SIGN_IDENTITY= \
CODE_SIGN_ENTITLEMENTS= \
GCC_OPTIMIZATION_LEVEL=s \
SWIFT_OPTIMIZATION_LEVEL=-O \
GCC_GENERATE_DEBUGGING_SYMBOLS=YES \
DEBUG_INFORMATION_FORMAT=dwarf-with-dsym | xcbeautify
create-dmg \
--volname "Loop" \
--background "./assets/graphics/dmg-background.png" \
--window-pos 200 120 \
--window-size 660 400 \
--icon-size 160 \
--icon "Loop.app" 180 170 \
--hide-extension "Loop.app" \
--app-drop-link 480 170 \
--no-internet-enable \
"./Build/Loop.dmg" \
"./Build/Loop.xcarchive/Products/Applications/"
cp -R ./Build/Loop.xcarchive/Products/Applications/ ./Build/
ditto -c -k --sequesterRsrc --keepParent ./Build/Loop.app ./Build/Loop.zip