mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-08-15 23:09:13 +00:00
1
This commit is contained in:
parent
d988ef7f12
commit
9cb19053d9
1 changed files with 3 additions and 3 deletions
6
.github/workflows/windows.yml
vendored
6
.github/workflows/windows.yml
vendored
|
@ -86,7 +86,7 @@ jobs:
|
||||||
env:
|
env:
|
||||||
VCINSTALLDIR: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC'
|
VCINSTALLDIR: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC'
|
||||||
vc_arch: ${{ matrix.msvc_arch }}
|
vc_arch: ${{ matrix.msvc_arch }}
|
||||||
publish_dir: .QtScrcpy-win-${{ matrix.msvc_arch }}
|
publish_dir: QtScrcpy-win-${{ matrix.msvc_arch }}
|
||||||
ref: ${{ github.event.ref }}
|
ref: ${{ github.event.ref }}
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
|
@ -94,7 +94,7 @@ jobs:
|
||||||
[string]$full_publish_dir = ${env:publish_dir} + ${tag}
|
[string]$full_publish_dir = ${env:publish_dir} + ${tag}
|
||||||
cmd.exe /c ci\win\publish_for_win.bat %vc_arch% ..\build\$full_publish_dir
|
cmd.exe /c ci\win\publish_for_win.bat %vc_arch% ..\build\$full_publish_dir
|
||||||
# 打包zip
|
# 打包zip
|
||||||
Compress-Archive -Path 'ci\win\build\'$full_publish_dir 'ci\win\build\'$full_publish_dir'.zip'
|
Compress-Archive -Path ci\build\$full_publish_dir ci\build\${full_publish_dir}.zip
|
||||||
# 记录环境变量packageName给后续step
|
# 记录环境变量packageName给后续step
|
||||||
$name = $full_publish_dir
|
$name = $full_publish_dir
|
||||||
echo "::set-env name=packageName::$name"
|
echo "::set-env name=packageName::$name"
|
||||||
|
@ -172,6 +172,6 @@ jobs:
|
||||||
uses: actions/upload-release-asset@v1.0.1
|
uses: actions/upload-release-asset@v1.0.1
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ env.uploadUrl }}
|
upload_url: ${{ env.uploadUrl }}
|
||||||
asset_path: ./${{ env.packageName }}.zip
|
asset_path: ci\build\${{ env.packageName }}.zip
|
||||||
asset_name: ${{ env.packageName }}.zip
|
asset_name: ${{ env.packageName }}.zip
|
||||||
asset_content_type: application/zip
|
asset_content_type: application/zip
|
Loading…
Add table
Add a link
Reference in a new issue