mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2025-02-18 08:12:16 +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,
|
nodeIntegration: true,
|
||||||
contextIsolation: false
|
contextIsolation: false
|
||||||
},
|
},
|
||||||
icon: path.join(__dirname, 'public', 'images', 'icon.png'),
|
icon: path.join(__dirname, 'public', 'images', 'icon64.png'),
|
||||||
// autoHideMenuBar: true,
|
// autoHideMenuBar: true,
|
||||||
// resizable: false
|
// resizable: false
|
||||||
});
|
});
|
||||||
|
|
72
package.json
72
package.json
|
@ -2,23 +2,77 @@
|
||||||
"name": "electron-blank-app",
|
"name": "electron-blank-app",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "Electron Blank Application",
|
"description": "Electron Blank Application",
|
||||||
"keywords": [],
|
"keywords": [
|
||||||
"author": "author",
|
"some",
|
||||||
|
"keywords"
|
||||||
|
],
|
||||||
|
"author": {
|
||||||
|
"name" : "your_name",
|
||||||
|
"email" : "your_email",
|
||||||
|
"url" : "your_site"
|
||||||
|
},
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"main": "entry.js",
|
"main": "entry.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "tsc && sass src/sass:public/css -s compressed --no-source-map",
|
"dev": "tsc && sass src/sass:public/css -s compressed --no-source-map",
|
||||||
"start": "npm run dev && electron .",
|
"start": "npm run dev && electron .",
|
||||||
"build:all": "npm run dev && electron-packager . --out=dist --asar --overwrite --all --ignore=\"(dist|src)\"",
|
"build:win": "npm run dev && electron-builder --win",
|
||||||
"build:darwin": "npm run dev && electron-packager . --out=dist --asar --overwrite --platform=darwin --arch=x64 --ignore=\"(dist|src)\"",
|
"build:linux": "npm run dev && electron-builder --linux"
|
||||||
"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)\"",
|
"build": {
|
||||||
"pack:flatpak": "electron-installer-flatpak --src=dist/electron-blank-app-linux-x64 --dest=dist/installers --arch=x64"
|
"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": {
|
"devDependencies": {
|
||||||
"electron": "^14.0.0",
|
"electron": "^14.0.0",
|
||||||
"electron-installer-flatpak": "^0.8.0",
|
"electron-builder": "^22.13.1",
|
||||||
"electron-packager": "^15.4.0",
|
|
||||||
"sass": "^1.41.0",
|
"sass": "^1.41.0",
|
||||||
"typescript": "^4.4.3"
|
"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…
Add table
Reference in a new issue