Skip to content

Commit

Permalink
🐛 修复图标大小溢出,调整CI
Browse files Browse the repository at this point in the history
  • Loading branch information
BTMuli committed Apr 17, 2024
1 parent 9e7e3d0 commit b7854de
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 27 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/build_signPath.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,11 @@ jobs:
- name: 构建项目
run: dart run msix:create --sign-msix false

- name: 安装 SignPath CLI
if: env.TOKEN != ''
shell: pwsh
run: |
Install-Module -Name SignPath -Force -AllowClobber -Scope CurrentUser
- 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}" `
Expand All @@ -70,7 +65,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: BTMuli.cer
path: $HOME/BTMuli.cer
path: BTMuli.cer

- name: 添加Summary
shell: pwsh
Expand Down
35 changes: 18 additions & 17 deletions .github/workflows/release_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,32 +40,32 @@ 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 != ''
uses: actions/upload-artifact@v4
with:
name: BangumiToday(SignPath).msix
name: BangumiToday(SignPath)
path: BangumiToday.msix

- name: 上传证书
uses: actions/upload-artifact@v4
with:
name: BTMuli.cer
path: $HOME/BTMuli.cer
path: BTMuli.cer

- name: 删除 msix 并打包
shell: pwsh
Expand All @@ -76,13 +76,14 @@ jobs:
- name: 上传打包文件
uses: actions/upload-artifact@v4
with:
name: BangumiToday.zip
name: BangumiToday
path: BangumiToday.zip

- name: 发行Release
uses: ncipollo/release-action@v1.5.0
with:
files: |
commit: ${{ github.sha }}
artifacts: |
BangumiToday.zip
BTMuli.cer
BangumiToday(SignPath).msix
Expand Down
5 changes: 2 additions & 3 deletions lib/components/app/app_nav.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'package:fluent_ui/fluent_ui.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:window_manager/window_manager.dart';

import '../../pages/app/bmf_page.dart';
Expand Down Expand Up @@ -81,7 +80,7 @@ class _AppNavState extends ConsumerState<AppNav> {
PaneItem(
icon: Image.asset(
'assets/images/platforms/mikan-favicon.ico',
height: 16.spMax,
height: 32,
),
title: Text('Mikan'),
body: MikanRSSPage(),
Expand All @@ -92,7 +91,7 @@ class _AppNavState extends ConsumerState<AppNav> {
body: ComicatRSSPage(),
),
PaneItem(
icon: Image.asset('assets/images/logo.png'),
icon: Image.asset('assets/images/logo.png', height: 32),
title: Text('BMF配置'),
body: BmfPage(),
)
Expand Down

0 comments on commit b7854de

Please sign in to comment.