Builder update

Now repository uses electron-builder instead of electron-packager
This commit is contained in:
Observer KRypt0n_ 2021-10-13 17:14:40 +02:00
parent 8fb39800c6
commit 8aae9d7059
No known key found for this signature in database
GPG key ID: DC5D4EC1303465DA
5 changed files with 2016 additions and 10 deletions

View file

@ -13,7 +13,7 @@ function createWindow ()
nodeIntegration: true,
contextIsolation: false
},
icon: path.join(__dirname, 'public', 'images', 'icon.png'),
icon: path.join(__dirname, 'public', 'images', 'icon64.png'),
// autoHideMenuBar: true,
// resizable: false
});

View file

@ -2,23 +2,77 @@
"name": "electron-blank-app",
"version": "1.0.0",
"description": "Electron Blank Application",
"keywords": [],
"author": "author",
"keywords": [
"some",
"keywords"
],
"author": {
"name" : "your_name",
"email" : "your_email",
"url" : "your_site"
},
"license": "GPL-3.0",
"main": "entry.js",
"scripts": {
"dev": "tsc && sass src/sass:public/css -s compressed --no-source-map",
"start": "npm run dev && electron .",
"build:all": "npm run dev && electron-packager . --out=dist --asar --overwrite --all --ignore=\"(dist|src)\"",
"build:darwin": "npm run dev && electron-packager . --out=dist --asar --overwrite --platform=darwin --arch=x64 --ignore=\"(dist|src)\"",
"build:linux": "npm run dev && electron-packager . --out=dist --asar --overwrite --platform=linux --arch=x64 --ignore=\"(dist|src)\"",
"build:win": "npm run dev && electron-packager . --out=dist --asar --overwrite --platform=win32 --arch=x64 --ignore=\"(dist|src)\"",
"pack:flatpak": "electron-installer-flatpak --src=dist/electron-blank-app-linux-x64 --dest=dist/installers --arch=x64"
"build:win": "npm run dev && electron-builder --win",
"build:linux": "npm run dev && electron-builder --linux"
},
"build": {
"productName": "Electron Blank Application",
"artifactName": "${productName}-${os}-${arch}-${version}.${ext}",
"appId": "com.electron.blank-app",
"directories": {
"output": "dist"
},
"files": [
"public/**/*",
"entry.js"
],
"win": {
"icon": "public/images/icon512.png",
"target": [
{
"target": "nsis",
"arch": [
"x64",
"ia32"
]
},
{
"target": "portable",
"arch": [
"x64",
"ia32"
]
}
]
},
"linux": {
"icon": "public/images/icon512.png",
"category": "Utility",
"target": [
{
"target": "AppImage",
"arch": [
"x64",
"ia32"
]
}
]
},
"nsis": {
"oneClick": false,
"perMachine": true,
"artifactName": "${productName}-${os}-${version}-setup.${ext}",
"deleteAppDataOnUninstall": true,
"allowToChangeInstallationDirectory": true
}
},
"devDependencies": {
"electron": "^14.0.0",
"electron-installer-flatpak": "^0.8.0",
"electron-packager": "^15.4.0",
"electron-builder": "^22.13.1",
"sass": "^1.41.0",
"typescript": "^4.4.3"
}

BIN
public/images/icon512.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

View file

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

1952
yarn.lock Normal file

File diff suppressed because it is too large Load diff