Skip to content

Commit 60cc4d5

Browse files
committed
🔨 添加store构建
1 parent 82b95aa commit 60cc4d5

File tree

3 files changed

+13
-146
lines changed

3 files changed

+13
-146
lines changed

.github/workflows/build_store.yml

-49
This file was deleted.

.github/workflows/build_test.yml

-77
This file was deleted.

.github/workflows/release.yml

+13-20
Original file line numberDiff line numberDiff line change
@@ -49,37 +49,30 @@ jobs:
4949
- name: 打包msix
5050
run: dart run msix:create -p ${{ secrets.SIGN_SECRET }}
5151

52+
- name: 打包msix-Store
53+
run: >
54+
dart run msix:create
55+
--store true
56+
-i "27581BTMuli.25716F7F62159"
57+
-b "CN=5FE33156-C3CE-4E71-A036-81BAA99521CB"
58+
-n "BangumiToday_Store"
59+
-p ${{ secrets.SIGN_SECRET }}
60+
5261
- name: 上传文件
5362
uses: actions/upload-artifact@v4
5463
with:
55-
name: output
64+
name: BangumiToday
5665
path: |
5766
BangumiToday.zip
5867
BangumiToday.msix
59-
目棃.cer
60-
61-
- name: 生成更新说明
62-
run: |
63-
$checksum = Get-FileHash -Path BangumiToday.zip -Algorithm SHA256
64-
$checksum = $checksum.Hash
65-
Write-Output "> 本 Release 文件来自 [GithubActions](https://github.com/BTMuli/BangumiToday/actions/runs/${{ github.run_id }})" >> $env:GITHUB_STEP_SUMMARY
66-
Write-Output "> " >> $env:GITHUB_STEP_SUMMARY
67-
Write-Output "> 由于安装 ``.msix`` 文件需要证书,请参考 [README](https://github.com/BTMuli/BangumiToday/#%E5%85%B3%E4%BA%8E%E8%AF%81%E4%B9%A6) 进行操作" >> $env:GITHUB_STEP_SUMMARY
68-
Write-Output "" >> $env:GITHUB_STEP_SUMMARY
69-
$log = .\genLog.ps1
70-
$log | ForEach-Object { Write-Output $_ >> $env:GITHUB_STEP_SUMMARY }
71-
Write-Output "sha256:" >> $env:GITHUB_STEP_SUMMARY
72-
Write-Output "+ ZIP:``$checksum``" >> $env:GITHUB_STEP_SUMMARY
73-
$checksum = Get-FileHash -Path BangumiToday.msix -Algorithm SHA256
74-
$checksum = $checksum.Hash
75-
Write-Output "+ MSIX:``$checksum``" >> $env:GITHUB_STEP_SUMMARY
68+
BangumiToday_Store.msix
7669
7770
- name: 发行Release
7871
uses: marvinpinto/action-automatic-releases@latest
7972
with:
80-
repo_token: ${{ secrets.RELEASE_TOKEN }}
73+
repo_token: ${{ secrets.GITHUB_TOKEN }}
8174
draft: true
8275
files: |
8376
BangumiToday.zip
8477
BangumiToday.msix
85-
目棃.cer
78+
BangumiToday_Store.msix

0 commit comments

Comments
 (0)