mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-08-04 14:48:37 +00:00
1
This commit is contained in:
parent
d0e852cf46
commit
755bf7c402
3 changed files with 6 additions and 9 deletions
7
.github/workflows/macos.yml
vendored
7
.github/workflows/macos.yml
vendored
|
@ -45,16 +45,13 @@ jobs:
|
||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
- name: Build MacOS
|
- name: Build MacOS
|
||||||
env:
|
|
||||||
ENV_QT_PATH: '/Users/runner/runners/2.165.2/work/QtScrcpy/Qt/5.12.6'
|
|
||||||
run: |
|
run: |
|
||||||
|
export ENV_QT_CLANG=$(pwd)/${{env.Qt5_Dir}}
|
||||||
ci/mac/build_for_mac.sh release
|
ci/mac/build_for_mac.sh release
|
||||||
# tag 打包
|
# tag 打包
|
||||||
- name: Package
|
- name: Package
|
||||||
env:
|
|
||||||
ENV_QT_PATH: '/Users/runner/runners/2.165.2/work/QtScrcpy/Qt/5.12.6'
|
|
||||||
run: |
|
run: |
|
||||||
echo ${{env.Qt5_Dir}}
|
export ENV_QT_CLANG=$(pwd)/${{env.Qt5_Dir}}
|
||||||
ci/mac/publish_for_mac.sh ../build
|
ci/mac/publish_for_mac.sh ../build
|
||||||
# tag 查询github-Release
|
# tag 查询github-Release
|
||||||
- name: queryRelease
|
- name: queryRelease
|
||||||
|
|
|
@ -7,7 +7,7 @@ echo ---------------------------------------------------------------
|
||||||
|
|
||||||
# 从环境变量获取必要参数
|
# 从环境变量获取必要参数
|
||||||
# 例如 /Users/barry/Qt5.12.5/5.12.5
|
# 例如 /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
|
echo current build mode: $build_mode
|
||||||
|
|
||||||
# 环境变量设置
|
# 环境变量设置
|
||||||
export PATH=$PATH:$ENV_QT_PATH/clang_64/bin
|
export PATH=$PATH:$ENV_QT_CLANG/bin
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo
|
echo
|
||||||
|
|
|
@ -6,7 +6,7 @@ echo ---------------------------------------------------------------
|
||||||
|
|
||||||
# 从环境变量获取必要参数
|
# 从环境变量获取必要参数
|
||||||
# 例如 /Users/barry/Qt5.12.5/5.12.5
|
# 例如 /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
|
publish_path=$script_path/$publish_dir
|
||||||
release_path=$script_path/../../output/mac/release
|
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
|
if [ -d "$publish_path" ]; then
|
||||||
rm -rf $publish_path
|
rm -rf $publish_path
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue