2019-02-12 16:12:44 +08:00
|
|
|
language: objective-c
|
2019-09-25 18:39:33 +08:00
|
|
|
osx_image: xcode11
|
2019-02-12 16:12:44 +08:00
|
|
|
node_js: 10
|
|
|
|
before_install:
|
|
|
|
- openssl aes-256-cbc -K $encrypted_a43c9d4ca4d4_key -iv $encrypted_a43c9d4ca4d4_iv
|
|
|
|
-in dist.p12.enc -out scripts/travis/dist.p12 -d
|
|
|
|
- security create-keychain -p mysecretpassword build.keychain
|
|
|
|
- security default-keychain -s build.keychain
|
|
|
|
- security unlock-keychain -p mysecretpassword build.keychain
|
|
|
|
- security set-keychain-settings -t 3600 -u build.keychain
|
|
|
|
- security import ./scripts/travis/dist.p12 -k build.keychain -T /usr/bin/codesign
|
|
|
|
-P ""
|
|
|
|
- 'security set-key-partition-list -S apple-tool:,apple: -s -k mysecretpassword build.keychain'
|
|
|
|
install:
|
2019-10-02 21:43:18 +08:00
|
|
|
- bash install_dependency.sh
|
|
|
|
- cd $TRAVIS_BUILD_DIR/ClashX
|
2019-09-25 18:39:33 +08:00
|
|
|
- echo `go version`
|
2019-10-02 21:43:18 +08:00
|
|
|
#- brew update
|
2019-09-30 14:42:28 +08:00
|
|
|
#- brew upgrade go || true
|
|
|
|
#- echo `go version`
|
2019-10-02 21:43:18 +08:00
|
|
|
- python3 build_clash.py
|
2019-02-12 16:12:44 +08:00
|
|
|
- cd $TRAVIS_BUILD_DIR
|
2019-07-30 10:15:57 +08:00
|
|
|
|
2019-02-12 16:12:44 +08:00
|
|
|
script:
|
|
|
|
- 'xcodebuild -workspace ClashX.xcworkspace -scheme "ClashX" build CODE_SIGN_IDENTITY="Developer
|
2019-09-15 21:22:21 +08:00
|
|
|
ID Application: Fuzhou West2Online Internet Inc. (MEWHFZ92DY)"'
|
2019-08-18 11:47:15 +08:00
|
|
|
|
|
|
|
- echo "Checking SMJobBless Vailded"
|
|
|
|
- build_dir=`xcodebuild -workspace ClashX.xcworkspace -scheme "ClashX" -showBuildSettings -configuration Debug | grep -m 1 "TARGET_BUILD_DIR" | grep -oEi "\/.*"`
|
|
|
|
- build_dir=${build_dir}"/ClashX.app"
|
|
|
|
- python SMJobBlessUtil.py check ${build_dir}
|
|
|
|
- echo "Check completed"
|
2019-02-12 16:12:44 +08:00
|
|
|
|
|
|
|
before_deploy:
|
|
|
|
- gem install gym
|
2019-07-30 10:15:57 +08:00
|
|
|
- bundle install
|
2019-02-19 11:21:27 +08:00
|
|
|
- fastlane gym -s ClashX
|
2019-02-12 16:12:44 +08:00
|
|
|
- npm install --global create-dmg
|
|
|
|
- create-dmg ClashX.app
|
|
|
|
- mv ClashX*.dmg ClashX.dmg
|
2019-07-30 10:15:57 +08:00
|
|
|
- fastlane run notarize package:"./ClashX.dmg" bundle_id:"com.west2online.ClashX"
|
2019-02-12 16:12:44 +08:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
provider: releases
|
|
|
|
prerelease: false
|
|
|
|
skip_cleanup: true
|
|
|
|
api_key:
|
|
|
|
secure: YKO96FhN1JgvM+EiyciNQCu8nk/t87txxCEA5//XuKGKh+75tVyB+udmEL4sQL2R01vuShO5WwXLRulHkDsVFjNgvTGa64cdG6SMNORMI+mEuBW2L/RPtkaK1GAY+l+iGkH9i1Ng0SaDqL8xSc5rkqicdUV9NSDrg3k+Ck0pu/DvHgwHAmIjN0JG73TuQKfENDlwoa/uj6ztXpxGR30vgobqaex8wwGV+9fs8Jfbh3cO/79iGXweRhJptvvW0EAF1vV95KyEaUYtHP+7NYVVapOCWwek2irdn1HBm4pRib/0bHh/wFQgnI9OoQbKYuKNc6xRnt9h0wWh+SSIwRA1X7jiZTipli+7G2HGXpvW0r8jMskhYxqjcRH5EWB8rGXoiy/16GUuY1SK1ID/oW9nSh5ws6quaRBmpXGyJcoOUq9STsF+HVOF1DOX4qRt8B7049ytdKIRNe3QGmOlc8w3Nyi5y/v9CHWmVWRrKvzJ8qXP/+JJlFIsXhZR+TYqosiX2ZoKpanLv1RFFbU5FxqdaQapQX465FlpoD/6Qhv+2WLmLBgI1+ewR6g/wjLus6unVu4C3ztYov/9Y7OhYlfD+CqdzKOn+98gGAPRV92MfFh8Qa6rXjsVbP4dC09zKze/+OZtCXr36C5M40MYIChVuSUlDSG4IhElylboSYvQ/wQ=
|
|
|
|
file:
|
|
|
|
- ClashX.dmg
|
|
|
|
|
|
|
|
on:
|
|
|
|
repo: yichengchen/clashX
|
|
|
|
branch: master
|
|
|
|
tags: true
|
2019-03-24 14:28:41 +08:00
|
|
|
|
|
|
|
after_deploy:
|
|
|
|
- 'curl -u yichengchen:$GitHub_Token -X POST https://api.github.com/repos/yichengchen/clashX/pages/builds -H "Accept: application/vnd.github.mister-fantastic-preview+json"'
|
2019-03-30 18:20:06 +08:00
|
|
|
- fastlane run upload_symbols_to_crashlytics
|