代码拉取完成,页面将自动刷新
# Starter pipeline
trigger:
branches:
include:
- master
- dev
tags:
include:
- v*
pool:
vmImage: "macOS-10.14"
steps:
- checkout: self
submodules: recursive
- task: NodeTool@0
inputs:
versionSpec: "12.x"
- script: |
pip3 install aqtinstall
aqt install --outputdir $AGENT_BUILDDIRECTORY/qt 5.15.1 mac desktop
brew install protobuf grpc ninja pkg-config tree
npm install -g appdmg
displayName: Prepare dependencies
- script: |
PATH=$AGENT_BUILDDIRECTORY/qt/5.15.1/clang_64/bin:$PATH
mkdir build
cd build
cmake .. -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_DEPLOYMENT_TARGET=10.12
cmake --build .
sudo cmake --install .
appdmg ../assets/package_dmg.json ../qv2ray-legacy.dmg
displayName: Build Qv2ray
env:
Qt5_DIR: $(Agent.BuildDirectory)/qt/5.15.1/clang_64/lib/cmake/Qt5
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: "qv2ray-legacy.dmg"
ArtifactName: "qv2ray-legacy.dmg"
publishLocation: "Container"
- task: GitHubRelease@0
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/v')
inputs:
gitHubConnection: "GitHub - DuckSoft"
assets: "qv2ray-legacy.dmg"
action: edit
tag: "$(Build.SourceBranchName)"
isPreRelease: true
addChangeLog: false
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。