Skip to content

Commit

Permalink
gui
Browse files Browse the repository at this point in the history
  • Loading branch information
trueai-org committed Jun 26, 2024
1 parent 8895b2f commit f191a5d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/dotnet-win-gui-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,27 +35,27 @@ jobs:
- name: 列出发布目录内容 (调试步骤)
run: |
echo "发布目录内容:"
dir src/MDriveSync.Client.WinFormAPI/bin/Release/net8.0/win-x64/publish
dir src/MDriveSync.Client.WinFormAPI/bin/Release/net8.0-windows/win-x64/publish
# - name: 删除 PDB 和部分 XML 文件
# run: |
# # 删除目录中的 .pdb 和部分 .xml 文件(如果存在)
# Remove-Item src/MDriveSync.Client.WinFormAPI/bin/Release/net8.0/win-x64/publish/*.pdb -Force -ErrorAction SilentlyContinue
# Remove-Item src/MDriveSync.Client.WinFormAPI/bin/Release/net8.0-windows/win-x64/publish/*.pdb -Force -ErrorAction SilentlyContinue

- name: 条件性删除 PDB 文件
run: |
$tagName = "${{ github.event.release.tag_name }}"
if (-not ($tagName -match "beta|rc|alpha")) {
echo "Deleting .pdb files..."
Remove-Item src/MDriveSync.Client.WinFormAPI/bin/Release/net8.0/win-x64/publish/*.pdb -Force -ErrorAction SilentlyContinue
Remove-Item src/MDriveSync.Client.WinFormAPI/bin/Release/net8.0-windows/win-x64/publish/*.pdb -Force -ErrorAction SilentlyContinue
} else {
echo "Preserving .pdb files for pre-release versions..."
}
- name: 压缩构建产物
run: |
# 将发布目录中的文件压缩为 zip 文件
Compress-Archive -Path src/MDriveSync.Client.WinFormAPI/bin/Release/net8.0/win-x64/publish/* -DestinationPath "MDrive-win-gui-x64-${{ github.event.release.tag_name }}.zip"
Compress-Archive -Path src/MDriveSync.Client.WinFormAPI/bin/Release/net8.0-windows/win-x64/publish/* -DestinationPath "MDrive-win-gui-x64-${{ github.event.release.tag_name }}.zip"
- name: 检查 ZIP 文件
run: |
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/dotnet-win-gui-x86.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,27 +35,32 @@ jobs:
- name: 列出发布目录内容 (调试步骤)
run: |
echo "发布目录内容:"
dir src/MDriveSync.Client.WinFormAPI/bin/Release/net8.0/win-x86/publish
dir src/MDriveSync.Client.WinFormAPI/bin/Release/net8.0-windows/win-x86/publish
- name: 列出发布目录内容 (调试步骤2)
run: |
echo "发布目录内容:"
dir src/MDriveSync.Client.WinFormAPI/bin/Release/net8.0-windows/publish/win-x86
# - name: 删除 PDB 和部分 XML 文件
# run: |
# # 删除目录中的 .pdb 和部分 .xml 文件(如果存在)
# Remove-Item src/MDriveSync.Client.WinFormAPI/bin/Release/net8.0/win-x86/publish/*.pdb -Force -ErrorAction SilentlyContinue
# Remove-Item src/MDriveSync.Client.WinFormAPI/bin/Release/net8.0-windows/win-x86/publish/*.pdb -Force -ErrorAction SilentlyContinue

- name: 条件性删除 PDB 文件
run: |
$tagName = "${{ github.event.release.tag_name }}"
if (-not ($tagName -match "beta|rc|alpha")) {
echo "Deleting .pdb files..."
Remove-Item src/MDriveSync.Client.WinFormAPI/bin/Release/net8.0/win-x86/publish/*.pdb -Force -ErrorAction SilentlyContinue
Remove-Item src/MDriveSync.Client.WinFormAPI/bin/Release/net8.0-windows/win-x86/publish/*.pdb -Force -ErrorAction SilentlyContinue
} else {
echo "Preserving .pdb files for pre-release versions..."
}
- name: 压缩构建产物
run: |
# 将发布目录中的文件压缩为 zip 文件
Compress-Archive -Path src/MDriveSync.Client.WinFormAPI/bin/Release/net8.0/win-x86/publish/* -DestinationPath "MDrive-win-gui-x86-${{ github.event.release.tag_name }}.zip"
Compress-Archive -Path src/MDriveSync.Client.WinFormAPI/bin/Release/net8.0-windows/win-x86/publish/* -DestinationPath "MDrive-win-gui-x86-${{ github.event.release.tag_name }}.zip"
- name: 检查 ZIP 文件
run: |
Expand Down

0 comments on commit f191a5d

Please sign in to comment.