mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2024-11-26 06:47:07 +03:00
Builder update
Now repository uses electron-builder instead of electron-packager
This commit is contained in:
parent
8fb39800c6
commit
8aae9d7059
5 changed files with 2016 additions and 10 deletions
2
entry.js
2
entry.js
|
@ -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
|
||||
});
|
||||
|
|
72
package.json
72
package.json
|
@ -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
BIN
public/images/icon512.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Loading…
Reference in a new issue