Skip to content

Commit

Permalink
Fix load path for production build
Browse files Browse the repository at this point in the history
  • Loading branch information
matthijsgroen committed Apr 10, 2021
1 parent 4abc862 commit a2bf589
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 14 deletions.
2 changes: 0 additions & 2 deletions docs/index.bbf9d7fc.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/index.bbf9d7fc.js.map

This file was deleted.

2 changes: 0 additions & 2 deletions docs/index.e4de972c.css

This file was deleted.

1 change: 0 additions & 1 deletion docs/index.e4de972c.css.map

This file was deleted.

Binary file removed docs/lady.3b4033a8.png
Binary file not shown.
Binary file removed docs/landscape.01ccf7de.png
Binary file not shown.
6 changes: 3 additions & 3 deletions public/electron/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const writeFile = util.promisify(require("fs").writeFile);
const path = require("path");
const isDev = require("electron-is-dev");

const LINK_BASE_URL = "https://github.com/matthijsgroen/gepetto";
const LINK_BASE_URL = "https://github.com/matthijsgroen/geppetto";

/**
* type EditorWindow = {
Expand Down Expand Up @@ -117,7 +117,7 @@ const template = [
browserWindow.webContents.send("show-fps", status.showFPS);
},
},
...(isDev
...(isDev || true
? [
{ type: "separator" },
{ role: "reload" },
Expand Down Expand Up @@ -202,7 +202,7 @@ function createWindow() {
win.loadURL(
isDev
? "http://localhost:3000"
: `file://${path.join(__dirname, "../build/index.html")}`
: `file://${path.join(__dirname, "../../build/index.html")}`
);

const status = {
Expand Down
5 changes: 0 additions & 5 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,7 @@
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<% if ('%NODE_ENV%' !== 'production') { %>
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'">
<% } %>
<% if ('%NODE_ENV%' === 'production') { %>
<meta http-equiv="Content-Security-Policy" content="script-src 'self'">
<% } %>
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
Expand Down

0 comments on commit a2bf589

Please sign in to comment.