File tree 1 file changed +13
-0
lines changed
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -260,10 +260,22 @@ end
260
260
#### Set iOS version
261
261
262
262
``` bash
263
+ # git clone
263
264
export V=` git rev-parse --verify HEAD`
265
+
266
+ # Delete all old DerivedData
267
+ rm -rf " /Users/` whoami` /Library/Developer/Xcode/DerivedData/ProjectName*"
268
+ # xcode build
269
+ cd " /Users/` whoami` /Library/Developer/Xcode/DerivedData/ProjectName*/Build/Products/Debug-iphonesimulator/ProjectName.app"
270
+
271
+ # set version
264
272
/usr/libexec/PlistBuddy -c " Set :CFBundleVersion $V " Info.plist
265
273
/usr/libexec/PlistBuddy -c " Set :CFBundleShortVersionString $V " Info.plist
266
274
/usr/bin/plutil -convert binary1 Info.plist
275
+
276
+ # zip app
277
+ cd ..
278
+ zip -r -X " $WORKSPACE /ProjectName.zip" ProjectName.app
267
279
```
268
280
269
281
#### Set Android version
@@ -277,3 +289,4 @@ Dir.glob('./**/AndroidManifest.xml') do |xml|
277
289
File .open (xml, ' w' ) { |f | f.write data }
278
290
end
279
291
```
292
+
You can’t perform that action at this time.
0 commit comments