Skip to content

Commit

Permalink
fix(ci): win-arm64 deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Mairon1206 committed Sep 7, 2024
1 parent a0c5f1a commit 65dfaa1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,15 @@ jobs:
echo vcToolsRedistDir=$env:VCToolsRedistDir >> $env:GITHUB_ENV
}
- name: Check win-arm64 qt dir
if: matrix.rid == 'win-arm64'
shell: pwsh
run: |
cd ${env:QT_ROOT_DIR}
ls
cd bin
ls
- name: Package for Windows
if: startsWith(matrix.rid, 'win-')
env:
Expand Down
4 changes: 3 additions & 1 deletion scripts/windows-publish.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ function Main() {
Copy-Item build\src\Tray\Release\* dist -Force -Recurse | Out-Null
# 拷贝依赖
$windeployqt = 'windeployqt'
$qtpaths = Join-Path -Path ${env:QT_ROOT_DIR} -ChildPath 'bin\qtpaths'
if (${env:QT_HOST_PATH}.Length -ne 0) {
$windeployqt = Join-Path -Path ${env:QT_HOST_PATH} -ChildPath 'bin\windeployqt'
$qtpaths = Join-Path -Path ${env:QT_ROOT_DIR} -ChildPath 'bin\qtpaths.bat'
}
& $windeployqt dist\sast-evento-tray.exe
& $windeployqt --qtpaths $qtpaths dist\sast-evento-tray.exe
# 删除不必要的文件
$excludeList = @("*.qmlc", "*.ilk", "*.exp", "*.lib", "*.pdb")
Remove-Item -Path dist -Include $excludeList -Recurse -Force
Expand Down

0 comments on commit 65dfaa1

Please sign in to comment.