Skip to content

Commit

Permalink
perf: 优化生成包的文件名格式
Browse files Browse the repository at this point in the history
  • Loading branch information
msojocs committed May 11, 2024
1 parent a02648b commit 630cc33
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,12 @@ jobs:
version=$(cat conf/bilibili_version)
tar -zcf tmp/build/bilibili-${version}-${{ steps.tag.outputs.tag }}-${{ matrix.ARCH }}.tar.gz bin app electron
- name: Fix name for continuous
if: steps.tag.outputs.tag == 'continuous'
run: |
version=$(cat conf/bilibili_version)
mv ./tmp/build/bilibili-${version}-${{ steps.tag.outputs.tag }}-${{ matrix.ARCH }}.tar.gz ./tmp/build/bilibili-${{ steps.tag.outputs.tag }}-${{ matrix.ARCH }}.tar.gz
- name: Upload artifact
uses: actions/[email protected]
with:
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
"installerIcon": "res/icons/bilibili.ico",
"uninstallerIcon": "res/icons/bilibili.ico",
"installerHeaderIcon": "res/icons/bilibili.ico",
"allowToChangeInstallationDirectory": true
"allowToChangeInstallationDirectory": true,
"artifactName": "${productName}-${version}-${arch}.${ext}"
},
"linux": {
"target": [
Expand All @@ -53,6 +54,9 @@
"synopsis": "BiliBili client for Linux.",
"description": "BiliBili client for Linux with roaming.",
"category": "AudioVideo"
},
"appImage": {
"artifactName": "${productName}-${version}-${arch}.${ext}"
}
},
"scripts": {
Expand Down

0 comments on commit 630cc33

Please sign in to comment.