Skip to content
This repository has been archived by the owner on Feb 5, 2025. It is now read-only.

Commit

Permalink
catch error
Browse files Browse the repository at this point in the history
  • Loading branch information
pompurin404 committed Oct 18, 2024
1 parent 338c019 commit d731c21
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 3 additions & 7 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,9 @@

- 1.5.0 之后 macOS 改用 pkg 安装方式,不再支持 dmg 安装方式,因此本次更新需要手动下载安装包进行安装
- electron33 已不再支持 macOS 10.15,故为 10.15 提供单独的安装包,需要的用户请自行下载安装,应用内更新时会自动检测系统版本,安装后后续可正常在应用内直接更新
- 1.5.1 之后 Windows 下 `profuctName` 改为 `Mihomo Party`, 更新后若出现找不到文件报错,手动以管理员权限运行一次即可

### New Features

- macOS/Linux 均不再存储 root 密码
- 修改Windows下的 `productName``Mihomo Party`
- 1.5.1 之后 Windows 下 `profuctName` 改为 `Mihomo Party`, 更新后若出现找不到文件报错,手动以管理员权限运行 `Mihomo Party.exe` 即可
- 由于更改了应用名称,开机启动失效是正常现象,在设置中重新开关一下即可

### Bug Fixes

- 单独提供适用于 macOS 10.15 的安装包
- 修复内核启动失败的问题
2 changes: 2 additions & 0 deletions src/main/core/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ export async function startCore(detached = false): Promise<Promise<void>[]> {
const pid = parseInt(await readFile(path.join(dataDir(), 'core.pid'), 'utf-8'))
try {
process.kill(pid, 'SIGINT')
} catch {
// ignore
} finally {
await rm(path.join(dataDir(), 'core.pid'))
}
Expand Down

0 comments on commit d731c21

Please sign in to comment.