mirror of
https://github.com/moku-project/Moku.git
synced 2026-06-13 09:19:56 -05:00
Chore: Fix Nix Build (Improper)
This commit is contained in:
+12
-2
@@ -25,11 +25,11 @@ async function resolveServerAdapter() {
|
||||
async function boot() {
|
||||
try {
|
||||
const platformAdapter = detectAdapter()
|
||||
initPlatformService(platformAdapter)
|
||||
|
||||
await platformAdapter.init()
|
||||
|
||||
const serverAdapter = await resolveServerAdapter()
|
||||
|
||||
initPlatformService(platformAdapter)
|
||||
initRequestManager(serverAdapter)
|
||||
|
||||
appState.platform = platformAdapter.platform
|
||||
@@ -53,6 +53,8 @@ async function boot() {
|
||||
|
||||
appState.serverUrl = savedUrl
|
||||
appState.authMode = savedAuth.mode
|
||||
appState.authUser = savedAuth.user ?? ''
|
||||
appState.authPass = savedAuth.pass ?? ''
|
||||
|
||||
configureAuth(savedUrl, savedAuth.mode, savedAuth.user, savedAuth.pass)
|
||||
|
||||
@@ -64,6 +66,14 @@ async function boot() {
|
||||
: undefined,
|
||||
})
|
||||
|
||||
const isTauri = platformAdapter.platform === 'tauri'
|
||||
const autoStartServer = settingsData.settings.autoStartServer ?? false
|
||||
|
||||
if (isTauri && autoStartServer) {
|
||||
appState.status = 'booting'
|
||||
return
|
||||
}
|
||||
|
||||
const probe = await probeServer()
|
||||
|
||||
if (probe === 'auth_required') { appState.status = 'auth'; return }
|
||||
|
||||
Reference in New Issue
Block a user