0a79634b8a
When a user attemps to launch, the configured Java executable will be validated. If it is invalid, we will look for a valid installation. If no valid installation is found, the user will be prompted with an option to install Java. An option to decline needs to be added. If they choose to install, it will download, extract, and update the executable in the config. The game will then be launched. Also added progress tracking for asset validations, as they can potentially take a bit longer. Showing progress assures the user that the program isn't stuck or broken.
83 lines
2.3 KiB
JSON
83 lines
2.3 KiB
JSON
{
|
|
"name": "westeroscraftlauncher",
|
|
"version": "0.0.1",
|
|
"description": "Custom modded launcher for Westeroscraft",
|
|
"productName": "WesterosCraft Launcher",
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"start": "electron index.js",
|
|
"dist": "SET ELECTRON_BUILDER_ALLOW_UNRESOLVED_DEPENDENCIES=true & electron-builder",
|
|
"dist:win": "npm run dist -- --win --x64",
|
|
"dist:mac": "npm run dist -- --mac",
|
|
"dist:linux": "npm run dist -- --linux --x64",
|
|
"dist:all": "npm run dist -- -wl --x64"
|
|
},
|
|
"engines": {
|
|
"node": "8.11.x"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://gitlab.com/westeroscraft/electronlauncher.git"
|
|
},
|
|
"author": "Daniel Scalzi",
|
|
"license": "AGPL-3.0",
|
|
"bugs": {
|
|
"url": "https://gitlab.com/westeroscraft/electronlauncher/issues"
|
|
},
|
|
"homepage": "http://www.westeroscraft.com/",
|
|
"dependencies": {
|
|
"adm-zip": "^0.4.7",
|
|
"async": "^2.6.0",
|
|
"discord-rpc": "^3.0.0-beta.10",
|
|
"ejs": "^2.5.7",
|
|
"ejs-electron": "^2.0.1",
|
|
"jquery": "^3.3.1",
|
|
"request-promise-native": "^1.0.5",
|
|
"tar-fs": "^1.16.0",
|
|
"uuid": "^3.2.1",
|
|
"winreg": "^1.2.4"
|
|
},
|
|
"devDependencies": {
|
|
"electron": "^1.8.4",
|
|
"electron-builder": "^20.8.1"
|
|
},
|
|
"build": {
|
|
"appId": "westeroscraftlauncher",
|
|
"productName": "WesterosCraft Launcher",
|
|
"artifactName": "${productName}.${ext}",
|
|
"copyright": "Copyright © 2018 WesterosCraft",
|
|
"directories": {
|
|
"buildResources": "build",
|
|
"output": "dist"
|
|
},
|
|
"win": {
|
|
"target": "portable",
|
|
"icon": "build/icon.ico"
|
|
},
|
|
"mac": {
|
|
"target": "dmg",
|
|
"category": "public.app-category.games",
|
|
"icon": "build/icon.icns",
|
|
"type": "distribution"
|
|
},
|
|
"linux": {
|
|
"target": "AppImage",
|
|
"maintainer": "Daniel Scalzi",
|
|
"vendor": "WesterosCraft",
|
|
"synopsis": "Custom modded launcher for WesterosCraft",
|
|
"description": "Custom launcher which allows users to join WesterosCraft. All mods, configurations, and updates are handled automatically.",
|
|
"category": "Game"
|
|
},
|
|
"deb": {
|
|
"compression": "xz",
|
|
"packageCategory": "Games",
|
|
"priority": "optional"
|
|
},
|
|
"compression": "maximum",
|
|
"files": [
|
|
"!{target,logs,.vscode,docs}"
|
|
],
|
|
"asar": true
|
|
}
|
|
}
|