File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,19 +30,22 @@ jobs:
3030 COMMIT_COUNT : ${{ steps.pack.outputs.commit_count }}
3131 FULL_NAME : ${{ steps.pack.outputs.full_name }}
3232 run : |
33- # 以仓库内 .github/update.json 为模板(保留 changelog 等静态字段),仅回填动态字段
33+ # 以仓库根的 update.json 为模板(保留 changelog 等静态字段),仅回填动态字段
34+ # 模板与产物同名,先写临时文件再覆盖,避免重定向截断输入
35+ tmp="$(mktemp)"
3436 jq \
3537 --arg version "Module ${TAG}" \
3638 --argjson versionCode "${COMMIT_COUNT}" \
3739 --arg zipUrl "https://github.com/${REPO}/releases/download/${TAG}/${FULL_NAME}" \
3840 '.version = $version | .versionCode = $versionCode | .zipUrl = $zipUrl' \
39- .github/update.json > update.json
41+ update.json > "$tmp"
42+ mv "$tmp" update.json
4043 cat update.json
4144
4245 - name : 发布 GitHub Release
4346 uses : softprops/action-gh-release@v3
4447 with :
45- body_path : .github /changelog.md
48+ body_path : docs /changelog.md
4649 files : |
4750 ${{ steps.pack.outputs.full_name }}
4851 ${{ steps.pack.outputs.lite_name }}
Original file line number Diff line number Diff line change @@ -24,8 +24,14 @@ export default defineConfig({
2424 nav : [
2525 { text : '指南' , link : '/guide/introduction' } ,
2626 { text : '配置参考' , link : '/config/module' } ,
27- { text : 'N' , link : '/tools/monet' } ,
28- { text : '祈愿' , link : '/tools/gacha' } ,
27+ {
28+ text : '工具' ,
29+ items : [
30+ { text : '莫奈调色器' , link : '/tools/monet' } ,
31+ { text : '祈愿模拟器' , link : '/tools/gacha' }
32+ ]
33+ } ,
34+ { text : '更新日志' , link : '/changelog' } ,
2935 { text : 'GitHub' , link : 'https://github.com/Fanju6/NetProxy-Magisk' }
3036 ] ,
3137
@@ -74,7 +80,7 @@ export default defineConfig({
7480 ] ,
7581
7682 footer : {
77- message : '基于 GPL-3.0 许可证发布' ,
83+ message : '基于 GPL-3.0 许可证发布 · <a href="/privacy">隐私政策</a> ' ,
7884 copyright : 'Copyright © 2024-present Fanju'
7985 } ,
8086
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 22 "version" : " Module v7.0.5" ,
33 "versionCode" : 604 ,
44 "zipUrl" : " https://github.com/Fanju6/NetProxy-Magisk/releases/download/v7.0.5/NetProxy_v7.0.5_604.zip" ,
5- "changelog" : " https://raw.githubusercontent.com/Fanju6/NetProxy-Magisk/refs/heads/main/.github /changelog.md"
5+ "changelog" : " https://raw.githubusercontent.com/Fanju6/NetProxy-Magisk/refs/heads/main/docs /changelog.md"
66}
You can’t perform that action at this time.
0 commit comments