mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 21:20:29 +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()
|
} = await getAppConfig()
|
||||||
if (!useSubStore) return
|
if (!useSubStore) return
|
||||||
if (!subStoreFrontendPort) {
|
if (!subStoreFrontendPort) {
|
||||||
subStoreFrontendPort = await findAvailablePort(4000)
|
subStoreFrontendPort = await findAvailablePort(14122)
|
||||||
const app = express()
|
const app = express()
|
||||||
app.use(express.static(path.join(resourcesFilesDir(), 'sub-store-frontend')))
|
app.use(express.static(path.join(resourcesFilesDir(), 'sub-store-frontend')))
|
||||||
app.listen(subStoreFrontendPort)
|
app.listen(subStoreFrontendPort)
|
||||||
}
|
}
|
||||||
if (!useCustomSubStore && !subStorePort) {
|
if (!useCustomSubStore && !subStorePort) {
|
||||||
subStorePort = await findAvailablePort(3000)
|
subStorePort = await findAvailablePort(38324)
|
||||||
const icon = nativeImage.createFromPath(subStoreIcon)
|
const icon = nativeImage.createFromPath(subStoreIcon)
|
||||||
icon.toDataURL()
|
icon.toDataURL()
|
||||||
new Worker(path.join(resourcesFilesDir(), 'sub-store.bundle.js'), {
|
new Worker(path.join(resourcesFilesDir(), 'sub-store.bundle.js'), {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user