From 9fb9f2b3b93b5f5c0ca2140f4feab133bc88e706 Mon Sep 17 00:00:00 2001 From: msojocs Date: Sat, 11 May 2024 12:00:22 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E7=94=9F=E6=88=90?= =?UTF-8?q?=E5=8C=85=E7=9A=84=E6=96=87=E4=BB=B6=E5=90=8D=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=20(#115)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * perf: 优化生成包的文件名格式 * perf: 移除windows的名称模板 * fix: Fix name for continuous --- .github/workflows/release.yml | 6 ++++++ package.json | 3 +++ 2 files changed, 9 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 560c85a..94a00aa 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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/upload-artifact@v2.3.1 with: diff --git a/package.json b/package.json index 3c53f05..6eadc13 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,9 @@ "synopsis": "BiliBili client for Linux.", "description": "BiliBili client for Linux with roaming.", "category": "AudioVideo" + }, + "appImage": { + "artifactName": "${productName}-${version}-${arch}.${ext}" } }, "scripts": {