This commit is contained in:
rankun 2020-02-22 16:56:35 +08:00
commit 755bf7c402
3 changed files with 6 additions and 9 deletions

View file

@ -45,16 +45,13 @@ jobs:
with:
fetch-depth: 1
- name: Build MacOS
env:
ENV_QT_PATH: '/Users/runner/runners/2.165.2/work/QtScrcpy/Qt/5.12.6'
run: |
export ENV_QT_CLANG=$(pwd)/${{env.Qt5_Dir}}
ci/mac/build_for_mac.sh release
# tag 打包
- name: Package
env:
ENV_QT_PATH: '/Users/runner/runners/2.165.2/work/QtScrcpy/Qt/5.12.6'
run: |
echo ${{env.Qt5_Dir}}
export ENV_QT_CLANG=$(pwd)/${{env.Qt5_Dir}}
ci/mac/publish_for_mac.sh ../build
# tag 查询github-Release
- name: queryRelease

View file

@ -7,7 +7,7 @@ echo ---------------------------------------------------------------
# 从环境变量获取必要参数
# 例如 /Users/barry/Qt5.12.5/5.12.5
echo ENV_QT_PATH $ENV_QT_PATH
echo ENV_QT_CLANG $ENV_QT_CLANG
# 获取绝对路径,保证其他目录执行此脚本依然正确
{
@ -39,7 +39,7 @@ fi
echo current build mode: $build_mode
# 环境变量设置
export PATH=$PATH:$ENV_QT_PATH/clang_64/bin
export PATH=$PATH:$ENV_QT_CLANG/bin
echo
echo

View file

@ -6,7 +6,7 @@ echo ---------------------------------------------------------------
# 从环境变量获取必要参数
# 例如 /Users/barry/Qt5.12.5/5.12.5
echo ENV_QT_PATH $ENV_QT_PATH
echo ENV_QT_CLANG $ENV_QT_CLANG
# 获取绝对路径,保证其他目录执行此脚本依然正确
{
@ -31,7 +31,7 @@ keymap_path=$script_path/../../keymap
publish_path=$script_path/$publish_dir
release_path=$script_path/../../output/mac/release
export PATH=$PATH:$ENV_QT_PATH/clang_64/bin
export PATH=$PATH:$ENV_QT_CLANG/bin
if [ -d "$publish_path" ]; then
rm -rf $publish_path