-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcodemagic.yaml
150 lines (143 loc) · 5 KB
/
codemagic.yaml
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
workflows:
ios-workflow:
name: iOS Workflow - VLobby Occuopant
max_build_duration: 120
integrations:
app_store_connect: Virtual Lobby Technology
environment:
ios_signing:
distribution_type: app_store
bundle_identifier: com.vlobby.app
vars:
APP_STORE_APPLE_ID: 6736442782
XCODE_WORKSPACE: "apps/vlobby-app/ios/App/App.xcworkspace"
XCODE_SCHEME: "App"
scripts:
- name: Install pnpm
script: |
if ! command -v pnpm &> /dev/null; then
npm install -g pnpm
else
echo "pnpm is already installed"
fi
- name: Install dependencies and sync Capacitor
script: |
pnpm install
cd apps/vlobby-app
npx cap sync
- name: Cocoapods installation
script: |
cd apps/vlobby-app/ios/App && pod install
- name: Set up code signing settings on Xcode project
script: |
cd apps/vlobby-app/ios/App
xcode-project use-profiles
- name: Set build number
script: |
#!/bin/sh
cd $CM_BUILD_DIR/apps/vlobby-app/ios/App
NEW_BUILD_NUMBER="1.1.0"
echo "Setting build number to: $NEW_BUILD_NUMBER"
agvtool new-version -all $NEW_BUILD_NUMBER
# Verify the new build number
CURRENT_BUILD_NUMBER=$(agvtool what-version -terse)
echo "Current build number after update: $CURRENT_BUILD_NUMBER"
if [ "$CURRENT_BUILD_NUMBER" != "$NEW_BUILD_NUMBER" ]; then
echo "Error: Build number was not updated correctly"
exit 1
fi
- name: Build ipa for distribution
script: |
cd $CM_BUILD_DIR/apps/vlobby-app/ios/App
xcode-project build-ipa \
--workspace "App.xcworkspace" \
--scheme "$XCODE_SCHEME"
artifacts:
- apps/vlobby-app/ios/App/build/ios/ipa/*.ipa
- /tmp/xcodebuild_logs/*.log
- $HOME/Library/Developer/Xcode/DerivedData/**/Build/**/*.app
- $HOME/Library/Developer/Xcode/DerivedData/**/Build/**/*.dSYM
publishing:
email:
recipients:
notify:
success: true
failure: false
app_store_connect:
auth: integration
submit_to_testflight: true
beta_groups:
- vlobby-beta-testers
submit_to_app_store: false
vlobby-resolve-ios-workflow:
name: iOS Workflow - VLobby Resolve
max_build_duration: 120
integrations:
app_store_connect: Virtual Lobby Technology
environment:
ios_signing:
distribution_type: app_store
bundle_identifier: com.vlobby.resolve.app
vars:
APP_STORE_APPLE_ID: 6736678348 # You may need to update this with the correct Apple ID for VLobby Resolve
XCODE_WORKSPACE: "apps/vlobby-resolve/ios/App/App.xcworkspace"
XCODE_SCHEME: "App"
scripts:
- name: Install pnpm
script: |
if ! command -v pnpm &> /dev/null; then
npm install -g pnpm
else
echo "pnpm is already installed"
fi
- name: Install dependencies and sync Capacitor
script: |
pnpm install
cd apps/vlobby-resolve
npx cap sync
- name: Cocoapods installation
script: |
cd apps/vlobby-resolve/ios/App && pod install
- name: Set up code signing settings on Xcode project
script: |
cd apps/vlobby-resolve/ios/App
xcode-project use-profiles
- name: Set build number
script: |
#!/bin/sh
cd $CM_BUILD_DIR/apps/vlobby-resolve/ios/App
NEW_BUILD_NUMBER="1.0.6" # You may want to adjust this for VLobby Resolve
echo "Setting build number to: $NEW_BUILD_NUMBER"
agvtool new-version -all $NEW_BUILD_NUMBER
# Verify the new build number
CURRENT_BUILD_NUMBER=$(agvtool what-version -terse)
echo "Current build number after update: $CURRENT_BUILD_NUMBER"
if [ "$CURRENT_BUILD_NUMBER" != "$NEW_BUILD_NUMBER" ]; then
echo "Error: Build number was not updated correctly"
exit 1
fi
- name: Build ipa for distribution
script: |
cd $CM_BUILD_DIR/apps/vlobby-resolve/ios/App
xcode-project build-ipa \
--workspace "App.xcworkspace" \
--scheme "$XCODE_SCHEME"
artifacts:
- apps/vlobby-resolve/ios/App/build/ios/ipa/*.ipa
- /tmp/xcodebuild_logs/*.log
- $HOME/Library/Developer/Xcode/DerivedData/**/Build/**/*.app
- $HOME/Library/Developer/Xcode/DerivedData/**/Build/**/*.dSYM
publishing:
email:
recipients:
notify:
success: true
failure: false
app_store_connect:
auth: integration
submit_to_testflight: true
beta_groups:
- vlobby-beta-testers
submit_to_app_store: false