mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-08-12 02:18:52 +00:00
1
This commit is contained in:
parent
aa3610a47d
commit
43190022a7
3 changed files with 9 additions and 6 deletions
7
.github/workflows/windows.yml
vendored
7
.github/workflows/windows.yml
vendored
|
@ -76,9 +76,10 @@ jobs:
|
||||||
env:
|
env:
|
||||||
vc_arch: ${{ matrix.msvc_arch }}
|
vc_arch: ${{ matrix.msvc_arch }}
|
||||||
run: |
|
run: |
|
||||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" %vc_arch%
|
# call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" %vc_arch%
|
||||||
qmake
|
# qmake
|
||||||
nmake
|
# nmake
|
||||||
|
call "ci\win\build_for_win.bat" release %vc_arch%
|
||||||
# tag 打包
|
# tag 打包
|
||||||
- name: package
|
- name: package
|
||||||
if: startsWith(github.event.ref, 'refs/tags/')
|
if: startsWith(github.event.ref, 'refs/tags/')
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
@echo off
|
@echo off
|
||||||
set vcvarsall="D:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\Build\vcvarsall.bat"
|
set vcvarsall="C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat"
|
||||||
set qt_msvc_path="D:\Qt\Qt5.12.5\5.12.5\"
|
set qt_msvc_path="d:\a\QtScrcpy\Qt\5.12.7\"
|
||||||
|
set build_path_name="../build-win"
|
||||||
|
|
||||||
:: 获取脚本绝对路径
|
:: 获取脚本绝对路径
|
||||||
set script_path=%~dp0
|
set script_path=%~dp0
|
||||||
|
@ -8,6 +9,8 @@ set script_path=%~dp0
|
||||||
set old_cd=%cd%
|
set old_cd=%cd%
|
||||||
cd /d %~dp0
|
cd /d %~dp0
|
||||||
|
|
||||||
|
set build_path=%script_path%%build_path_name%
|
||||||
|
|
||||||
:: 启动参数声明
|
:: 启动参数声明
|
||||||
set debug_mode="false"
|
set debug_mode="false"
|
||||||
set cpu_mode=x86
|
set cpu_mode=x86
|
||||||
|
@ -47,7 +50,6 @@ if /i %cpu_mode% == x86 (
|
||||||
set qt_msvc_path=%qt_msvc_path%msvc2017_64\bin
|
set qt_msvc_path=%qt_msvc_path%msvc2017_64\bin
|
||||||
)
|
)
|
||||||
|
|
||||||
set build_path=%script_path%build
|
|
||||||
set PATH=%qt_msvc_path%;%PATH%
|
set PATH=%qt_msvc_path%;%PATH%
|
||||||
|
|
||||||
:: 注册vc环境
|
:: 注册vc环境
|
Loading…
Add table
Add a link
Reference in a new issue