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(), )