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
1 Commits
199ecd26dd
...
469c309f09
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
469c309f09 |
2
build/pkg-scripts/postinstall
Executable file → Normal file
2
build/pkg-scripts/postinstall
Executable file → Normal file
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# 设置日志文件
|
||||
|
||||
2
build/pkg-scripts/preinstall
Executable file → Normal file
2
build/pkg-scripts/preinstall
Executable file → Normal file
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# 检查 root 权限
|
||||
|
||||
@ -12,7 +12,6 @@
|
||||
- 遗失的部分翻译
|
||||
- 改名后潜在的 MacOS 安装失败
|
||||
- 改名后 WinGet 上传失败
|
||||
- MacOS 首次启动时的 ENOENT: no such file or directory
|
||||
|
||||
### 优化 (Optimize)
|
||||
- socket 管理防止内核通信失败
|
||||
|
||||
@ -51,7 +51,7 @@ mac:
|
||||
pkg:
|
||||
allowAnywhere: false
|
||||
allowCurrentUserHome: false
|
||||
isRelocatable: false
|
||||
installLocation: /Applications
|
||||
background:
|
||||
alignment: bottomleft
|
||||
file: build/background.png
|
||||
|
||||
@ -44,8 +44,6 @@ import { startSSIDCheck } from '../sys/ssid'
|
||||
import i18next from '../../shared/i18n'
|
||||
import { initLogger } from './logger'
|
||||
|
||||
let isInitBasicCompleted = false
|
||||
|
||||
// 安全错误处理
|
||||
export function safeShowErrorBox(titleKey: string, message: string): void {
|
||||
let title: string
|
||||
@ -352,21 +350,16 @@ function initDeeplink(): void {
|
||||
|
||||
// 基础初始化
|
||||
export async function initBasic(): Promise<void> {
|
||||
if (isInitBasicCompleted) {
|
||||
return
|
||||
}
|
||||
|
||||
await initDirs()
|
||||
await initConfig()
|
||||
await migration()
|
||||
await migrateSubStoreFiles()
|
||||
await initFiles()
|
||||
await cleanup()
|
||||
|
||||
isInitBasicCompleted = true
|
||||
}
|
||||
|
||||
export async function init(): Promise<void> {
|
||||
await initBasic()
|
||||
await startSubStoreFrontendServer()
|
||||
await startSubStoreBackendServer()
|
||||
const { sysProxy } = await getAppConfig()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user