Skip to content

Commit a2bf589

Browse files
committed
Fix load path for production build
1 parent 4abc862 commit a2bf589

File tree

8 files changed

+3
-14
lines changed

8 files changed

+3
-14
lines changed

docs/index.bbf9d7fc.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

docs/index.bbf9d7fc.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/index.e4de972c.css

Lines changed: 0 additions & 2 deletions
This file was deleted.

docs/index.e4de972c.css.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/lady.3b4033a8.png

-193 KB
Binary file not shown.

docs/landscape.01ccf7de.png

-518 KB
Binary file not shown.

public/electron/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const writeFile = util.promisify(require("fs").writeFile);
66
const path = require("path");
77
const isDev = require("electron-is-dev");
88

9-
const LINK_BASE_URL = "https://github.com/matthijsgroen/gepetto";
9+
const LINK_BASE_URL = "https://github.com/matthijsgroen/geppetto";
1010

1111
/**
1212
* type EditorWindow = {
@@ -117,7 +117,7 @@ const template = [
117117
browserWindow.webContents.send("show-fps", status.showFPS);
118118
},
119119
},
120-
...(isDev
120+
...(isDev || true
121121
? [
122122
{ type: "separator" },
123123
{ role: "reload" },
@@ -202,7 +202,7 @@ function createWindow() {
202202
win.loadURL(
203203
isDev
204204
? "http://localhost:3000"
205-
: `file://${path.join(__dirname, "../build/index.html")}`
205+
: `file://${path.join(__dirname, "../../build/index.html")}`
206206
);
207207

208208
const status = {

public/index.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,7 @@
1010
content="Web site created using create-react-app"
1111
/>
1212
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
13-
<% if ('%NODE_ENV%' !== 'production') { %>
1413
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'">
15-
<% } %>
16-
<% if ('%NODE_ENV%' === 'production') { %>
17-
<meta http-equiv="Content-Security-Policy" content="script-src 'self'">
18-
<% } %>
1914
<!--
2015
manifest.json provides metadata used when your web app is installed on a
2116
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/

0 commit comments

Comments
 (0)