diff --git a/README.md b/README.md index 6023a70b..6e11a8db 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,7 @@ ## Related Links - - [Wiki](https://github.com/Qv2ray/Qv2ray/wiki) and [First Time Usage](https://github.com/Qv2ray/Qv2ray/wiki/Getting-Started-step0) + - [Website](https://qv2ray.github.io/en/) and [First Time Usage](https://qv2ray.github.io/en/getting-started/) - Latest **[Release](https://github.com/Qv2ray/Qv2ray/releases/latest)** - Welcome to translate Qv2ray via: **[Transifex](https://www.transifex.com/qv2ray/qv2ray)** diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 00000000..3435a8cc --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,52 @@ +# Starter pipeline + +trigger: + branches: + include: + - master + - dev + - dev-azure-pipelines + tags: + include: + - v* + +pool: + vmImage: 'macOS-10.14' + +steps: +- checkout: self + submodules: recursive +- script: | + brew install protobuf grpc ninja qt5 + displayName: Prepare dependencies +- script: | + xcversion select 10.1 --symlink + displayName: Select Xcode 10.1 as active +- script: | + mkdir build + cd build + cmake .. -GNinja -DCMAKE_BUILD_TYPE=Release + cmake --build . --parallel $(sysctl -n hw.logicalcpu) + sudo cmake --install . + sudo chmod -Rv a+rw ./ + displayName: Build Qv2ray + env: + Qt5_DIR: /usr/local/opt/qt5/lib/cmake/Qt5 +- script: | + cd build + tar czvf Qv2ray.macOS.tar.gz qv2ray.app + displayName: Create Tarball +- task: PublishBuildArtifacts@1 + inputs: + PathtoPublish: 'build/Qv2ray.macOS.tar.gz' + ArtifactName: 'Qv2ray-macOS' + publishLocation: 'Container' +- task: GitHubRelease@0 + condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/v') + inputs: + gitHubConnection: 'github.com_DuckSoft' + assets: 'build/Qv2ray.macOS.tar.gz' + action: edit + tag: '$(Build.SourceBranchName)' + isPreRelease: true + addChangeLog: false \ No newline at end of file