Add app icon
This commit is contained in:
+6
-9
@@ -4,24 +4,21 @@ const { FuseV1Options, FuseVersion } = require('@electron/fuses');
|
||||
module.exports = {
|
||||
packagerConfig: {
|
||||
asar: true,
|
||||
icon: 'images/icon-1024.icns'
|
||||
},
|
||||
rebuildConfig: {},
|
||||
makers: [
|
||||
{
|
||||
name: '@electron-forge/maker-squirrel',
|
||||
config: {},
|
||||
},
|
||||
{
|
||||
name: '@electron-forge/maker-zip',
|
||||
platforms: ['darwin'],
|
||||
platforms: ['darwin', 'linux'],
|
||||
},
|
||||
{
|
||||
name: '@electron-forge/maker-deb',
|
||||
config: {},
|
||||
config: {
|
||||
options: {
|
||||
icon: 'images/icon-512.png'
|
||||
}
|
||||
},
|
||||
{
|
||||
name: '@electron-forge/maker-rpm',
|
||||
config: {},
|
||||
},
|
||||
],
|
||||
plugins: [
|
||||
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -26,7 +26,7 @@ function loadConfig() {
|
||||
config = JSON.parse(data);
|
||||
} catch (err) {
|
||||
if (err.code == 'ENOENT') {
|
||||
console.warn('No config file found.');
|
||||
console.warn('No config file found at ' + path.join(__dirname, "config.json"));
|
||||
} else {
|
||||
console.error(err);
|
||||
}
|
||||
@@ -41,6 +41,7 @@ async function createWindow() {
|
||||
width: 1920,
|
||||
height: 1080,
|
||||
backgroundColor: '#000000',
|
||||
icon: 'images/icon-512.png',
|
||||
webPreferences: {
|
||||
preload: path.join(__dirname, 'preload.js'),
|
||||
nodeIntegration: true,
|
||||
@@ -54,7 +55,7 @@ async function createWindow() {
|
||||
win = null;
|
||||
});
|
||||
|
||||
win.webContents.addListener("will-navigate", validateDomain);
|
||||
win.webContents.addListener("willnavigate-", validateDomain);
|
||||
|
||||
win.once("ready-to-show", () => {
|
||||
win.setKiosk(true);
|
||||
|
||||
Generated
+18
-1
@@ -11,7 +11,8 @@
|
||||
"dependencies": {
|
||||
"electron-icon-builder": "^2.0.1",
|
||||
"electron-log": "^5.1.5",
|
||||
"electron-squirrel-startup": "^1.0.1"
|
||||
"electron-squirrel-startup": "^1.0.1",
|
||||
"link-exists": "^1.2.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@electron-forge/cli": "^7.4.0",
|
||||
@@ -5742,6 +5743,11 @@
|
||||
"resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz",
|
||||
"integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw=="
|
||||
},
|
||||
"node_modules/http": {
|
||||
"version": "0.0.1-security",
|
||||
"resolved": "https://registry.npmjs.org/http/-/http-0.0.1-security.tgz",
|
||||
"integrity": "sha512-RnDvP10Ty9FxqOtPZuxtebw1j4L/WiqNMDtuc1YMH1XQm5TgDRaR1G9u8upL6KD1bXHSp9eSXo/ED+8Q7FAr+g=="
|
||||
},
|
||||
"node_modules/http-cache-semantics": {
|
||||
"version": "4.1.1",
|
||||
"resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz",
|
||||
@@ -6275,6 +6281,17 @@
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/link-exists": {
|
||||
"version": "1.2.2",
|
||||
"resolved": "https://registry.npmjs.org/link-exists/-/link-exists-1.2.2.tgz",
|
||||
"integrity": "sha512-+XCx5L6sdebuhskxodjKpwAmX2L8esd4CNUQtw4Dn7Ztx4L30EPFhf9uH0Aw7JhYcRE8cNnZQkMcvKplhkkr+A==",
|
||||
"dependencies": {
|
||||
"http": "^0.0.1-security"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 16.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/listr2": {
|
||||
"version": "7.0.2",
|
||||
"resolved": "https://registry.npmjs.org/listr2/-/listr2-7.0.2.tgz",
|
||||
|
||||
+3
-2
@@ -2,9 +2,10 @@
|
||||
"dependencies": {
|
||||
"electron-icon-builder": "^2.0.1",
|
||||
"electron-log": "^5.1.5",
|
||||
"electron-squirrel-startup": "^1.0.1"
|
||||
"electron-squirrel-startup": "^1.0.1",
|
||||
"link-exists": "^1.2.2"
|
||||
},
|
||||
"name": "tooloop-kiosk-browser",
|
||||
"name": "Tooloop Kiosk Browser",
|
||||
"version": "1.0.0",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user