Skip to content

Commit

Permalink
Update plugin-rolling-release
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayideyia committed Oct 11, 2024
1 parent 0ebd06e commit 5d2e476
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions plugins/Generic/plugin-rolling-release.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,15 @@ const Recovery = async () => {
ok && (await Plugins.WindowReloadApp())
}

/**
* 右键菜单 - 更新日志
*/
const Changelog = async () => {
const url = `https://github.com/GUI-for-Cores/${Plugins.APP_TITLE}/releases/download/rolling-release/changelog.md`
const { body } = await Plugins.HttpGet(url)
await Plugins.alert(Plugin.name, body, { type: 'markdown' })
}

const checkRollingReleaseEnabled = async () => {
const appSettings = Plugins.useAppSettingsStore()
if (!appSettings.app.rollingRelease) {
Expand Down
3 changes: 2 additions & 1 deletion plugins/generic.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@
"triggers": ["on::manual", "on::ready", "on::startup"],
"menus": {
"滚动版本": "Rolling",
"恢复版本": "Recovery"
"恢复版本": "Recovery",
"更新日志": "Changelog"
},
"configuration": [
{
Expand Down

0 comments on commit 5d2e476

Please sign in to comment.