mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 05:00:30 +08:00
change default substore port
This commit is contained in:
parent
d3bb076b71
commit
bad68830ff
@ -66,13 +66,13 @@ export async function startSubStoreServer(): Promise<void> {
|
||||
} = await getAppConfig()
|
||||
if (!useSubStore) return
|
||||
if (!subStoreFrontendPort) {
|
||||
subStoreFrontendPort = await findAvailablePort(4000)
|
||||
subStoreFrontendPort = await findAvailablePort(14122)
|
||||
const app = express()
|
||||
app.use(express.static(path.join(resourcesFilesDir(), 'sub-store-frontend')))
|
||||
app.listen(subStoreFrontendPort)
|
||||
}
|
||||
if (!useCustomSubStore && !subStorePort) {
|
||||
subStorePort = await findAvailablePort(3000)
|
||||
subStorePort = await findAvailablePort(38324)
|
||||
const icon = nativeImage.createFromPath(subStoreIcon)
|
||||
icon.toDataURL()
|
||||
new Worker(path.join(resourcesFilesDir(), 'sub-store.bundle.js'), {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user