opt: seperate the pdb file with application bundle

This commit is contained in:
YiFang Xiao 2023-05-12 07:58:56 +08:00 committed by xiaoyifang
parent 136d1cb03b
commit 17d7fa663f
2 changed files with 14 additions and 7 deletions

View file

@ -32,9 +32,9 @@ function Main() {
Copy-Item release\$targetName $archiveName\
Write-Host "copy item finished..."
#拷贝pdb
Copy-Item release\*.pdb $archiveName\
Write-Host "copy pdb finished..."
# #拷贝pdb
# Copy-Item release\*.pdb $archiveName\
# Write-Host "copy pdb finished..."
# 拷贝依赖
windeployqt --qmldir . --plugindir $archiveName\plugins --compiler-runtime $archiveName\$targetName
# 删除不必要的文件

View file

@ -125,10 +125,6 @@ jobs:
$name = ${env:archiveName}
echo "::set-output name=packageName::$name"
# - uses: actions/upload-artifact@v2
# with:
# name: ${{ steps.package.outputs.packageName }}
# path: ${{ steps.package.outputs.packageName }}.zip
- name: uploadRelease
# if: startsWith(github.event.ref, 'refs/tags/')
uses: svenstaro/upload-release-action@v2
@ -177,6 +173,17 @@ jobs:
release_name: GoldenDict-ng-v${{env.version}}-${{env.version-suffix}}.${{ steps.vars.outputs.release_hm }}.${{ steps.vars.outputs.sha_short }}
prerelease: ${{env.prerelease}}
- name: upload pdb
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: release/GoldenDict.pdb
asset_name: ${{ matrix.qt_ver }}.${{ matrix.os }}-xapian-GoldenDict.pdb
tag: v${{env.version}}-${{env.version-suffix}}.${{ steps.vars.outputs.release_hm }}.${{ steps.vars.outputs.sha_short }}
overwrite: true
release_name: GoldenDict-ng-v${{env.version}}-${{env.version-suffix}}.${{ steps.vars.outputs.release_hm }}.${{ steps.vars.outputs.sha_short }}
prerelease: ${{env.prerelease}}
- name: copy nsis
shell: bash
run: |