Skip to content

Commit

Permalink
fix(build): monkey download url
Browse files Browse the repository at this point in the history
  • Loading branch information
Chilfish committed Feb 26, 2024
1 parent 5ff6b09 commit adfdab9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ node ./merge.mjs

如果你觉得这个项目对你有帮助,可以考虑赞助我一杯咖啡😇这将给我更多的动力来维护这个项目:[赞助地址]

[releases]: https://github.com/Chilfish/Weibo-archiver/releases/latest
[releases]: https://raw.githubusercontent.com/Chilfish/Weibo-archiver/monkey/weibo-archiver.user.js
[speechless]: https://github.com/meterscao/Speechless
[naive-ui]: https://www.naiveui.com/zh-CN/os-theme
[#1]: https://github.com/Chilfish/Weibo-archiver/issues/1
Expand Down
12 changes: 10 additions & 2 deletions apps/monkey/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import AutoImport from 'unplugin-auto-import/vite'

import config, { autoImportConfig } from '../../vite.config'

const repo = 'https://github.com/Chilfish/Weibo-archiver'
const downloadURL = 'https://raw.githubusercontent.com/Chilfish/Weibo-archiver/monkey/weibo-archiver.user.js'

export default defineConfig({
...config,
plugins: [
Expand All @@ -15,9 +18,14 @@ export default defineConfig({
userscript: {
name: 'Weibo Archiver',
description: '将你的新浪微博存档备份的油猴脚本,为号被完全夹没前绸缪 😭',
homepage: 'https://github.com/Chilfish/Weibo-Archiver',
source: 'https://github.com/Chilfish/Weibo-Archiver/tree/main/packages/monkey',
homepage: repo,
source: `${repo}/tree/main/packages/monkey`,
icon: 'https://p.chilfish.top/weibo/icon.webp',
downloadURL,
updateURL: downloadURL,
supportURL: `${repo}/issues`,
author: 'Chilfish',
license: 'MIT',
namespace: 'chilfish/monkey',
match: [
'https://weibo.com/u/*',
Expand Down

0 comments on commit adfdab9

Please sign in to comment.