mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-04-22 04:24:59 +00:00
commit
ff9c65bf19
2 changed files with 15 additions and 0 deletions
3
.github/workflows/windows.yml
vendored
3
.github/workflows/windows.yml
vendored
|
@ -38,6 +38,7 @@ jobs:
|
|||
env:
|
||||
target-name: QtScrcpy
|
||||
vcvarsall-path: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat'
|
||||
vcinstall-path: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC'
|
||||
qt-install-path: ${{ github.workspace }}/${{ matrix.qt-ver }}
|
||||
plantform-des: win
|
||||
# 步骤
|
||||
|
@ -84,6 +85,8 @@ jobs:
|
|||
- name: Package
|
||||
id: package
|
||||
env:
|
||||
ENV_VCVARSALL: ${{ env.vcvarsall-path }}
|
||||
ENV_VCINSTALL: ${{ env.vcinstall-path }}
|
||||
ENV_QT_PATH: ${{ env.qt-install-path }}
|
||||
publish_name: ${{ env.target-name }}-${{ env.plantform-des }}-${{ matrix.msvc-arch }}-${{ steps.get-version.outputs.version }}
|
||||
run: |
|
||||
|
|
|
@ -7,9 +7,14 @@ echo check ENV
|
|||
echo ---------------------------------------------------------------
|
||||
|
||||
:: 从环境变量获取必要参数
|
||||
:: example: D:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\Build\vcvarsall.bat
|
||||
set vcvarsall="%ENV_VCVARSALL%"
|
||||
:: 设置了VCINSTALLDIR,windeployqt会自动copy vcruntime dll
|
||||
set VCINSTALLDIR="%ENV_VCINSTALL%"
|
||||
:: 例如 d:\a\QtScrcpy\Qt\5.12.7
|
||||
set qt_msvc_path="%ENV_QT_PATH%"
|
||||
|
||||
echo ENV_VCVARSALL %ENV_VCVARSALL%
|
||||
echo ENV_QT_PATH %ENV_QT_PATH%
|
||||
|
||||
:: 获取脚本绝对路径
|
||||
|
@ -51,6 +56,13 @@ if /i %cpu_mode% == x86 (
|
|||
)
|
||||
set PATH=%qt_msvc_path%;%PATH%
|
||||
|
||||
:: 注册vc环境(注册以后,windeployqt会把vc_redist复制过来(vcruntime安装包))
|
||||
:: if /i %cpu_mode% == x86 (
|
||||
:: call %vcvarsall% %cpu_mode%
|
||||
:: ) else (
|
||||
:: call %vcvarsall% %cpu_mode%
|
||||
:: )
|
||||
|
||||
if exist %publish_path% (
|
||||
rmdir /s/q %publish_path%
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue