summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--launch-electron.js6
-rw-r--r--package.json29
-rw-r--r--public/static/images/chuck.icobin0 -> 723006 bytes
-rw-r--r--public/static/images/chuck.pngbin0 -> 1050891 bytes
-rw-r--r--public/static/images/favicon.icobin329318 -> 0 bytes
-rw-r--r--public/static/images/sneed.icobin0 -> 915518 bytes
-rw-r--r--public/static/images/sneed.pngbin0 -> 1050891 bytes
-rw-r--r--views/partials/top/head.ejs2
8 files changed, 28 insertions, 9 deletions
diff --git a/launch-electron.js b/launch-electron.js
index 598ce1c..b8b939b 100644
--- a/launch-electron.js
+++ b/launch-electron.js
@@ -1,20 +1,22 @@
"use strict";
const { app, BrowserWindow } = require('electron');
-const server = require('./app');
+const path = require('path');
+const server = require(path.join(__dirname,'/app'));
if (require('electron-squirrel-startup')) return app.quit();
function createWindow()
{
const win = new BrowserWindow({
+ icon: path.join(__dirname, '/public/static/images/sneed.png'),
webPreferences: {
+ devTools: false,
nodeIntegration: true,
}
});
// Window preferences on startup
- win.maximize();
win.setMenu(null);
win.loadURL('http://localhost:' + server.PORT);
}
diff --git a/package.json b/package.json
index 3ccfac3..8584596 100644
--- a/package.json
+++ b/package.json
@@ -26,25 +26,42 @@
"express": "^4.18.2"
},
"devDependencies": {
- "electron": "^21.2.0",
"@electron-forge/cli": "^6.0.0-beta.67",
+ "@electron-forge/maker-deb": "^6.0.0-beta.67",
"@electron-forge/maker-squirrel": "^6.0.0-beta.67",
- "@electron-forge/maker-zip": "^6.0.0-beta.67"
+ "@electron-forge/maker-zip": "^6.0.0-beta.67",
+ "electron": "^21.2.0"
},
"config": {
"forge": {
"packagerConfig": {
"asar": true,
- "icon": "public/static/images/favicon.ico"
+ "icon": "public/static/images/sneed.ico"
},
- "makers": [{
+ "makers": [
+ {
"name": "@electron-forge/maker-squirrel",
"config": {
- "name": "sneedbay"
+ "name": "sneedbay",
+ "setupIcon": "public/static/images/chuck.ico"
}
},
{
- "name": "@electron-forge/maker-zip"
+ "name": "@electron-forge/maker-zip",
+ "platforms": [
+ "darwin",
+ "mas",
+ "win32",
+ "linux"
+ ]
+ },
+ {
+ "name": "@electron-forge/maker-deb",
+ "config": {
+ "options": {
+ "icon": "public/static/images/sneed.png"
+ }
+ }
}
]
}
diff --git a/public/static/images/chuck.ico b/public/static/images/chuck.ico
new file mode 100644
index 0000000..ec1c12f
--- /dev/null
+++ b/public/static/images/chuck.ico
Binary files differ
diff --git a/public/static/images/chuck.png b/public/static/images/chuck.png
new file mode 100644
index 0000000..ad5df9d
--- /dev/null
+++ b/public/static/images/chuck.png
Binary files differ
diff --git a/public/static/images/favicon.ico b/public/static/images/favicon.ico
deleted file mode 100644
index 7da2f4d..0000000
--- a/public/static/images/favicon.ico
+++ /dev/null
Binary files differ
diff --git a/public/static/images/sneed.ico b/public/static/images/sneed.ico
new file mode 100644
index 0000000..d62dc6d
--- /dev/null
+++ b/public/static/images/sneed.ico
Binary files differ
diff --git a/public/static/images/sneed.png b/public/static/images/sneed.png
new file mode 100644
index 0000000..79141b8
--- /dev/null
+++ b/public/static/images/sneed.png
Binary files differ
diff --git a/views/partials/top/head.ejs b/views/partials/top/head.ejs
index 1bba689..46017fb 100644
--- a/views/partials/top/head.ejs
+++ b/views/partials/top/head.ejs
@@ -2,7 +2,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="description" content="sneedBay, piratebay indexer">
-<link rel="shortcut icon" href="static/images/favicon.ico" type="image/x-icon">
+<link rel="shortcut icon" href="static/images/sneed.ico" type="image/x-icon">
<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="css/extra.css">
<script src="js/bootstrap.bundle.js"></script>