chore: update build scripts

This commit is contained in:
yicheng 2020-12-03 22:01:40 +08:00
parent 999ecfbf49
commit 98ccf30b0e
5 changed files with 41 additions and 9 deletions

View File

@ -6,8 +6,8 @@ GEM
public_suffix (>= 2.0.2, < 5.0)
atomos (0.1.3)
aws-eventstream (1.1.0)
aws-partitions (1.390.0)
aws-sdk-core (3.109.2)
aws-partitions (1.402.0)
aws-sdk-core (3.109.3)
aws-eventstream (~> 1, >= 1.0.2)
aws-partitions (~> 1, >= 1.239.0)
aws-sigv4 (~> 1.1)
@ -15,7 +15,7 @@ GEM
aws-sdk-kms (1.39.0)
aws-sdk-core (~> 3, >= 3.109.0)
aws-sigv4 (~> 1.1)
aws-sdk-s3 (1.83.1)
aws-sdk-s3 (1.86.0)
aws-sdk-core (~> 3, >= 3.109.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.1)
@ -45,7 +45,7 @@ GEM
faraday_middleware (1.0.0)
faraday (~> 1.0)
fastimage (2.2.0)
fastlane (2.166.0)
fastlane (2.169.0)
CFPropertyList (>= 2.3, < 4.0.0)
addressable (>= 2.3, < 3.0.0)
aws-sdk-s3 (~> 1.0)
@ -82,6 +82,7 @@ GEM
xcpretty (~> 0.3.0)
xcpretty-travis-formatter (>= 0.0.3)
fastlane-plugin-appcenter (1.11.0)
fastlane-plugin-update_xcodeproj (1.0.1)
fastlane-plugin-versioning (0.4.4)
gh_inspector (1.1.3)
google-api-client (0.38.0)
@ -120,7 +121,7 @@ GEM
json (2.3.1)
jwt (2.2.2)
memoist (0.16.2)
mini_magick (4.10.1)
mini_magick (4.11.0)
mini_mime (1.0.2)
multi_json (1.15.0)
multipart-post (2.0.0)
@ -178,6 +179,7 @@ PLATFORMS
DEPENDENCIES
fastlane
fastlane-plugin-appcenter
fastlane-plugin-update_xcodeproj
fastlane-plugin-versioning
BUNDLED WITH

View File

@ -57,4 +57,18 @@ lane :addKeyChain do
certificate_password:""
)
end
end
lane :setARM do
update_xcodeproj(
xcodeproj: 'ClashX.xcodeproj',
options: {'ARCHS': 'arm64'}
)
end
lane :setUniversal do
update_xcodeproj(
xcodeproj: 'ClashX.xcodeproj',
options: {'ARCHS': '$(ARCHS_STANDARD)'}
)
end

View File

@ -4,3 +4,4 @@
gem 'fastlane-plugin-appcenter'
gem 'fastlane-plugin-versioning'
gem 'fastlane-plugin-update_xcodeproj'

View File

@ -30,6 +30,16 @@ fastlane beta
fastlane addKeyChain
```
### setARM
```
fastlane setARM
```
### setUniversal
```
fastlane setUniversal
```
----

View File

@ -1,10 +1,15 @@
#!/bin/bash
set -eu
set -e
echo "Build Clash core"
cd ClashX/goClash
python3 build_clash.py
if [ "$1" = "skip-build-go" ]; then
echo "skip build go"
else
cd ClashX/goClash
python3 build_clash.py
cd ../..
fi
echo "Pod install"
cd ../..
pod install
echo "delete old files"
rm -f ./ClashX/Resources/Country.mmdb