feat: add server deployment, desktop builds, and CI/CD pipeline
- Add Dockerfile with adapter-node for server deployment - Add Kubernetes deployment and ingress manifests - Add GitHub Actions workflow (server build, desktop builds, K8s deploy) - Electron now loads hosted URL (https://optima.osdci.net) in production - Add macOS DMG maker and make:macos script - Switch to static imports in lib/index.ts - Add .dockerignore
This commit is contained in:
+5
-10
@@ -7,29 +7,24 @@ if (started) {
|
||||
app.quit();
|
||||
}
|
||||
|
||||
const PRODUCTION_URL = "https://optima.osdci.net";
|
||||
|
||||
const createWindow = () => {
|
||||
// Create the browser window.
|
||||
const mainWindow = new BrowserWindow({
|
||||
width: 800,
|
||||
height: 600,
|
||||
width: 1200,
|
||||
height: 800,
|
||||
webPreferences: {
|
||||
preload: path.join(import.meta.dirname, "preload.js"),
|
||||
},
|
||||
});
|
||||
|
||||
// and load the index.html of the app.
|
||||
if (MAIN_WINDOW_VITE_DEV_SERVER_URL) {
|
||||
mainWindow.loadURL(`${MAIN_WINDOW_VITE_DEV_SERVER_URL}/login`);
|
||||
mainWindow.webContents.on("did-frame-finish-load", () => {
|
||||
mainWindow.webContents.openDevTools({ mode: "detach" });
|
||||
});
|
||||
} else {
|
||||
mainWindow.loadFile(
|
||||
path.join(
|
||||
import.meta.dirname,
|
||||
`../renderer/${MAIN_WINDOW_VITE_NAME}/index.html`,
|
||||
),
|
||||
);
|
||||
mainWindow.loadURL(PRODUCTION_URL);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user