mirror of
https://github.com/pompurin404/mihomo-party.git
synced 2024-11-16 11:42:19 +08:00
change default substore port
This commit is contained in:
parent
954a8bb30a
commit
66a270d151
|
@ -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…
Reference in New Issue
Block a user