mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-04-21 12:04:59 +00:00
1
This commit is contained in:
parent
0d8deedb5e
commit
b3e67457a3
2 changed files with 9 additions and 6 deletions
3
.github/workflows/windows.yml
vendored
3
.github/workflows/windows.yml
vendored
|
@ -69,6 +69,9 @@ jobs:
|
|||
shell: cmd
|
||||
env:
|
||||
vc_arch: ${{ matrix.msvc_arch }}
|
||||
ENV_VCVARSALL: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat'
|
||||
ENV_QT_MSVC: 'd:\a\QtScrcpy\Qt\5.12.7'
|
||||
ENV_BUILD_DIR: '../build-win'
|
||||
run: |
|
||||
call "ci\win\build_for_win.bat" release %vc_arch%
|
||||
# tag 打包
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
@echo off
|
||||
set vcvarsall="C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat"
|
||||
set qt_msvc_path="d:\a\QtScrcpy\Qt\5.12.7\"
|
||||
set build_path_name="../build-win"
|
||||
:: 从环境变量获取必要参数
|
||||
set vcvarsall=%ENV_VCVARSALL%
|
||||
set qt_msvc_path=%ENV_QT_MSVC%
|
||||
set build_path_name=%ENV_BUILD_DIR%
|
||||
|
||||
:: 获取脚本绝对路径
|
||||
set script_path=%~dp0
|
||||
|
@ -46,9 +47,9 @@ if /i %debug_mode% == "true" (
|
|||
|
||||
:: 环境变量设置
|
||||
if /i %cpu_mode% == x86 (
|
||||
set qt_msvc_path=%qt_msvc_path%msvc2017\bin
|
||||
set qt_msvc_path=%qt_msvc_path%\msvc2017\bin
|
||||
) else (
|
||||
set qt_msvc_path=%qt_msvc_path%msvc2017_64\bin
|
||||
set qt_msvc_path=%qt_msvc_path%\msvc2017_64\bin
|
||||
)
|
||||
|
||||
set PATH=%qt_msvc_path%;%PATH%
|
||||
|
@ -87,7 +88,6 @@ if /i %debug_mode% == "true" (
|
|||
|
||||
:: qmake ../../all.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
|
||||
qmake ../../all.pro %qmake_params%
|
||||
:: qmake ../../all.pro
|
||||
if not %errorlevel%==0 (
|
||||
echo "qmake failed"
|
||||
goto return
|
||||
|
|
Loading…
Add table
Reference in a new issue