From 49812365a7734258a7aa75ffb823d02dc8b4943c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9B=AE=E6=A3=83?= Date: Wed, 17 Apr 2024 17:40:46 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=E5=9B=BE?= =?UTF-8?q?=E6=A0=87=E5=A4=A7=E5=B0=8F=E6=BA=A2=E5=87=BA=EF=BC=8C=E8=B0=83?= =?UTF-8?q?=E6=95=B4CI=EF=BC=88=E4=BA=8C=E5=91=A8=E7=9B=AE=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release_dev.yml | 33 +++++++++++++++++-------------- lib/components/app/app_nav.dart | 4 ++-- 2 files changed, 20 insertions(+), 17 deletions(-) diff --git a/.github/workflows/release_dev.yml b/.github/workflows/release_dev.yml index b5508a4..fbb93a4 100644 --- a/.github/workflows/release_dev.yml +++ b/.github/workflows/release_dev.yml @@ -1,6 +1,9 @@ name: Build Release(Dev) -on: workflow_dispatch +on: + push: + tags: + - 'v*.*.*' jobs: build: @@ -40,19 +43,19 @@ jobs: - name: 打包msix run: dart run msix:create --sign-msix false -# - name: SignPath 签名 -# if: env.TOKEN != '' -# shell: pwsh -# run: | -# Install-Module -Name SignPath -Force -AllowClobber -Scope CurrentUser -# Submit-SigningRequest ` -# -InputArtifactPath "build/windows/x64/runner/Release/BangumiToday.msix" ` -# -ApiToken "${env:TOKEN}" ` -# -OrganizationId "df493769-e8b5-461d-84a8-e9cc2071d9b2" ` -# -ProjectSlug "BangumiToday" ` -# -SigningPolicySlug "Dev" ` -# -OutputArtifactPath "BangumiToday.msix" ` -# -WaitForCompletion + - name: SignPath 签名 + if: env.TOKEN != '' + shell: pwsh + run: | + Install-Module -Name SignPath -Force -AllowClobber -Scope CurrentUser + Submit-SigningRequest ` + -InputArtifactPath "build/windows/x64/runner/Release/BangumiToday.msix" ` + -ApiToken "${env:TOKEN}" ` + -OrganizationId "df493769-e8b5-461d-84a8-e9cc2071d9b2" ` + -ProjectSlug "BangumiToday" ` + -SigningPolicySlug "Dev" ` + -OutputArtifactPath "BangumiToday.msix" ` + -WaitForCompletion - name: 上传 MSIX if: env.TOKEN != '' @@ -82,7 +85,7 @@ jobs: - name: 发行Release uses: ncipollo/release-action@v1.5.0 with: - commit: ${{ github.sha }} + tag: ${{ github.ref }} artifacts: | BangumiToday.zip BTMuli.cer diff --git a/lib/components/app/app_nav.dart b/lib/components/app/app_nav.dart index e9f40f5..86e45fc 100644 --- a/lib/components/app/app_nav.dart +++ b/lib/components/app/app_nav.dart @@ -80,7 +80,7 @@ class _AppNavState extends ConsumerState { PaneItem( icon: Image.asset( 'assets/images/platforms/mikan-favicon.ico', - height: 32, + height: 16, ), title: Text('Mikan'), body: MikanRSSPage(), @@ -91,7 +91,7 @@ class _AppNavState extends ConsumerState { body: ComicatRSSPage(), ), PaneItem( - icon: Image.asset('assets/images/logo.png', height: 32), + icon: Image.asset('assets/images/logo.png', height: 16), title: Text('BMF配置'), body: BmfPage(), )