Feature: add notarize task for ci in release

This commit is contained in:
yichengchen 2019-07-30 10:15:57 +08:00
parent 4daf34da4c
commit 08b9ac7595
3 changed files with 31 additions and 4 deletions

View File

@ -23,16 +23,19 @@ install:
- echo `go version` - echo `go version`
- CGO_CFLAGS=-mmacosx-version-min=10.10 CGO_LDFLAGS=-mmacosx-version-min=10.10 go build -buildmode=c-archive - CGO_CFLAGS=-mmacosx-version-min=10.10 CGO_LDFLAGS=-mmacosx-version-min=10.10 go build -buildmode=c-archive
- cd $TRAVIS_BUILD_DIR - cd $TRAVIS_BUILD_DIR
script: script:
- 'xcodebuild -workspace ClashX.xcworkspace -scheme "ClashX" build CODE_SIGN_IDENTITY="Developer - 'xcodebuild -workspace ClashX.xcworkspace -scheme "ClashX" build CODE_SIGN_IDENTITY="Developer
ID Application: Fuzhou West2Online Internet Inc. (MEWHFZ92DY)"| xcpretty' ID Application: Fuzhou West2Online Internet Inc. (MEWHFZ92DY)"| xcpretty'
before_deploy: before_deploy:
- gem install gym - gem install gym
- bundle install
- fastlane gym -s ClashX - fastlane gym -s ClashX
- npm install --global create-dmg - npm install --global create-dmg
- create-dmg ClashX.app - create-dmg ClashX.app
- mv ClashX*.dmg ClashX.dmg - mv ClashX*.dmg ClashX.dmg
- fastlane run notarize package:"./ClashX.dmg" bundle_id:"com.west2online.ClashX"
deploy: deploy:
provider: releases provider: releases

View File

@ -1,4 +0,0 @@
lane :notarize do
app_path = './ClashX.dmg'
notarize(package: app_path)
end

28
fastlane/README.md Normal file
View File

@ -0,0 +1,28 @@
fastlane documentation
================
# Installation
Make sure you have the latest version of the Xcode command line tools installed:
```
xcode-select --install
```
Install _fastlane_ using
```
[sudo] gem install fastlane -NV
```
or alternatively using `brew cask install fastlane`
# Available Actions
### notarize
```
fastlane notarize
```
----
This README.md is auto-generated and will be re-generated every time [fastlane](https://fastlane.tools) is run.
More information about fastlane can be found on [fastlane.tools](https://fastlane.tools).
The documentation of fastlane can be found on [docs.fastlane.tools](https://docs.fastlane.tools).