mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-28 05:30:29 +08:00
Compare commits
No commits in common. "c73d1479380d53dc9cf09105f883b2eeb07c438c" and "195306f251d5db22f7aa72f6dd67634ef33de341" have entirely different histories.
c73d147938
...
195306f251
@ -1,4 +1,4 @@
|
|||||||
## 1.8.6
|
## 1.8.6-dev
|
||||||
|
|
||||||
**本次更新修改了软件名称,可能导致不可预期的 BUG,请大家积极反馈**
|
**本次更新修改了软件名称,可能导致不可预期的 BUG,请大家积极反馈**
|
||||||
|
|
||||||
@ -14,7 +14,6 @@
|
|||||||
- 修复windows 下以非管理员模式启动后,无法自动更新的权限问题
|
- 修复windows 下以非管理员模式启动后,无法自动更新的权限问题
|
||||||
- 修复 icon 切换时的重复创建问题
|
- 修复 icon 切换时的重复创建问题
|
||||||
- 修复UWPTool没有权限的问题
|
- 修复UWPTool没有权限的问题
|
||||||
- 修复定时更新订阅引入的删除后自动添加问题
|
|
||||||
|
|
||||||
### 样式调整 (Sytle)
|
### 样式调整 (Sytle)
|
||||||
- DNS 设置部分样式微调
|
- DNS 设置部分样式微调
|
||||||
|
|||||||
@ -27,6 +27,8 @@ function updatePackageVersion() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (import.meta.url === `file://${process.argv[1]}`) {
|
||||||
updatePackageVersion()
|
updatePackageVersion()
|
||||||
|
}
|
||||||
|
|
||||||
export { updatePackageVersion }
|
export { updatePackageVersion }
|
||||||
@ -26,7 +26,7 @@ export function getBaseVersion() {
|
|||||||
const pkg = readFileSync('package.json', 'utf-8')
|
const pkg = readFileSync('package.json', 'utf-8')
|
||||||
const { version } = JSON.parse(pkg)
|
const { version } = JSON.parse(pkg)
|
||||||
// 移除dev版本格式后缀
|
// 移除dev版本格式后缀
|
||||||
return version.replace(/-d\d{2,4}\.[a-f0-9]{7}$/, '')
|
return version.replace('-dev', '').replace(/-\d{4}-[a-f0-9]{7}$/, '')
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Failed to read package.json:', error.message)
|
console.error('Failed to read package.json:', error.message)
|
||||||
return '1.0.0'
|
return '1.0.0'
|
||||||
@ -39,7 +39,7 @@ export function getDevVersion() {
|
|||||||
const monthDate = getCurrentMonthDate()
|
const monthDate = getCurrentMonthDate()
|
||||||
const commitHash = getGitCommitHash(true)
|
const commitHash = getGitCommitHash(true)
|
||||||
|
|
||||||
return `${baseVersion}-d${monthDate}.${commitHash}`
|
return `${baseVersion}-${monthDate}-${commitHash}`
|
||||||
}
|
}
|
||||||
|
|
||||||
// 检查当前环境是否为dev构建
|
// 检查当前环境是否为dev构建
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user