diff options
author | Rafael Marçalo <raroma09@gmail.com> | 2022-10-23 23:46:34 +0100 |
---|---|---|
committer | Rafael Marçalo <raroma09@gmail.com> | 2022-10-23 23:46:34 +0100 |
commit | 7d1580aa2fa94d2dd8a08424babbca96854e7816 (patch) | |
tree | 6be4ae424bd60436b4d0a4420a6e88a08f6f71ab | |
parent | f5f41bf680fe13c355a3b99c80ff404f2379abb6 (diff) |
Updated app structure and finished electron-forge configuration
-rw-r--r-- | launch-electron.js | 6 | ||||
-rw-r--r-- | package.json | 29 | ||||
-rw-r--r-- | public/static/images/chuck.ico | bin | 0 -> 723006 bytes | |||
-rw-r--r-- | public/static/images/chuck.png | bin | 0 -> 1050891 bytes | |||
-rw-r--r-- | public/static/images/favicon.ico | bin | 329318 -> 0 bytes | |||
-rw-r--r-- | public/static/images/sneed.ico | bin | 0 -> 915518 bytes | |||
-rw-r--r-- | public/static/images/sneed.png | bin | 0 -> 1050891 bytes | |||
-rw-r--r-- | views/partials/top/head.ejs | 2 |
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 Binary files differnew file mode 100644 index 0000000..ec1c12f --- /dev/null +++ b/public/static/images/chuck.ico diff --git a/public/static/images/chuck.png b/public/static/images/chuck.png Binary files differnew file mode 100644 index 0000000..ad5df9d --- /dev/null +++ b/public/static/images/chuck.png diff --git a/public/static/images/favicon.ico b/public/static/images/favicon.ico Binary files differdeleted file mode 100644 index 7da2f4d..0000000 --- a/public/static/images/favicon.ico +++ /dev/null diff --git a/public/static/images/sneed.ico b/public/static/images/sneed.ico Binary files differnew file mode 100644 index 0000000..d62dc6d --- /dev/null +++ b/public/static/images/sneed.ico diff --git a/public/static/images/sneed.png b/public/static/images/sneed.png Binary files differnew file mode 100644 index 0000000..79141b8 --- /dev/null +++ b/public/static/images/sneed.png 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> |