mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
more configuration tweaks
This commit is contained in:
1 parent
ec7b8661d9
commit
8f4db5bd53
7 files changed
+39
-38
No files matched your search
@@ -1,7 +1,8 @@
|
||||
import { isMac, isWindows } from "./vars";
|
||||
|
||||
if (isMac) {
|
||||
// require("mac-ca"); // fixme: crashes
|
||||
console.warn("//FIXME: MAC-CA IMPORT ERROR!");
|
||||
// require("mac-ca");
|
||||
}
|
||||
if (isWindows) {
|
||||
require("win-ca").inject("+") // see: https://github.com/ukoloff/win-ca#caveats
|
||||
|
||||
+5
-4
@@ -8,10 +8,11 @@ export const isDevelopment = !isProduction;
|
||||
export const buildVersion = process.env.BUILD_VERSION;
|
||||
|
||||
// Paths
|
||||
export const staticDir = path.resolve(__dirname, "../../static");
|
||||
export const outDir = path.resolve(__dirname, "../../dist");
|
||||
export const mainDir = path.resolve(__dirname, "../main");
|
||||
export const rendererDir = path.resolve(__dirname, "../renderer");
|
||||
export const contextDir = process.cwd();
|
||||
export const staticDir = path.join(contextDir, "static");
|
||||
export const outDir = path.join(contextDir, "dist");
|
||||
export const mainDir = path.join(contextDir, "src/main");
|
||||
export const rendererDir = path.join(contextDir, "src/renderer");
|
||||
|
||||
// Apis
|
||||
export const staticProto = "static://"
|
||||
|
||||
+9
-8
@@ -4,19 +4,20 @@ import "../common/system-ca"
|
||||
import { app, BrowserWindow } from "electron"
|
||||
|
||||
console.log('MAIN', process.resourcesPath)
|
||||
console.log('userData', app.getPath("userData"))
|
||||
|
||||
app.whenReady().then(function start() {
|
||||
console.log('APP READY')
|
||||
|
||||
var window = new BrowserWindow({
|
||||
width: 600,
|
||||
height: 500,
|
||||
app.whenReady().then(async function start() {
|
||||
var mainWindow = new BrowserWindow({
|
||||
width: 1024,
|
||||
height: 768,
|
||||
show: false,
|
||||
webPreferences: {
|
||||
devTools: true,
|
||||
nodeIntegration: true,
|
||||
}
|
||||
});
|
||||
|
||||
window.loadFile("index.html");
|
||||
window.show();
|
||||
await mainWindow.loadFile("dist/index.html");
|
||||
mainWindow.show();
|
||||
mainWindow.focus();
|
||||
});
|
||||
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Lens - The Kubernetes IDE</title>
|
||||
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline';" />
|
||||
<!--<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline';" />-->
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
Reference in new issue
Block a user