auto-git:
[add] dist/assets/index-CEauQ61c.js [change] dist/index.html [change] scripts/run-electron-dev.cjs [unlink] dist/assets/index-D7G_OK5S.js
This commit is contained in:
File diff suppressed because one or more lines are too long
2
dist/index.html
vendored
2
dist/index.html
vendored
@@ -5,7 +5,7 @@
|
|||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>LLM Desktop</title>
|
<title>LLM Desktop</title>
|
||||||
<script type="module" crossorigin src="/assets/index-D7G_OK5S.js"></script>
|
<script type="module" crossorigin src="/assets/index-CEauQ61c.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="/assets/index-D21amC2P.css">
|
<link rel="stylesheet" crossorigin href="/assets/index-D21amC2P.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -5,10 +5,11 @@ const waitOn = require('wait-on')
|
|||||||
const projectRoot = path.resolve(__dirname, '..')
|
const projectRoot = path.resolve(__dirname, '..')
|
||||||
const electronBinary = require('electron')
|
const electronBinary = require('electron')
|
||||||
const relaunchExitCode = 75
|
const relaunchExitCode = 75
|
||||||
const startupResources = ['http://localhost:5173', 'tcp:8000']
|
const devServerUrl = process.env.VITE_DEV_SERVER_URL || 'http://127.0.0.1:5173'
|
||||||
|
const startupResources = [devServerUrl, 'http://127.0.0.1:8000/health']
|
||||||
const env = {
|
const env = {
|
||||||
...process.env,
|
...process.env,
|
||||||
VITE_DEV_SERVER_URL: process.env.VITE_DEV_SERVER_URL || 'http://localhost:5173',
|
VITE_DEV_SERVER_URL: devServerUrl,
|
||||||
HEIMGEIST_DEV_WRAPPER: '1',
|
HEIMGEIST_DEV_WRAPPER: '1',
|
||||||
HEIMGEIST_DEV_RELAUNCH_CODE: String(relaunchExitCode),
|
HEIMGEIST_DEV_RELAUNCH_CODE: String(relaunchExitCode),
|
||||||
}
|
}
|
||||||
@@ -42,6 +43,7 @@ function runElectronOnce() {
|
|||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
await waitForDependencies()
|
await waitForDependencies()
|
||||||
|
console.log(`Electron dev wrapper: dependencies ready, launching ${env.VITE_DEV_SERVER_URL}`)
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
const { code, signal } = await runElectronOnce()
|
const { code, signal } = await runElectronOnce()
|
||||||
|
|||||||
Reference in New Issue
Block a user