Skip to content

Commit

Permalink
fix: 修正下载链接中的版本号格式
Browse files Browse the repository at this point in the history
  • Loading branch information
xishang0128 committed Mar 4, 2025
1 parent 7580a0f commit 5a7dedd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/updater.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { readFileSync, writeFileSync } from 'fs'
const pkg = readFileSync('package.json', 'utf-8')
let changelog = readFileSync('changelog.md', 'utf-8')
const { version } = JSON.parse(pkg)
const downloadUrl = `https://github.com/xishang0128/mihomo-party/releases/download/v${version}`
const downloadUrl = `https://github.com/xishang0128/mihomo-party/releases/download/${version}`
const latest = {
version,
changelog
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/components/updater/updater-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const UpdaterModal: React.FC<Props> = (props) => {
size="sm"
className="flex app-nodrag"
onPress={() => {
open(`https://github.com/xishang0128/mihomo-party/releases/tag/v${version}`)
open(`https://github.com/xishang0128/mihomo-party/releases/tag/${version}`)
}}
>
前往下载
Expand Down

0 comments on commit 5a7dedd

Please sign in to comment.