neutralino init

This commit is contained in:
SpikeHD 2022-04-19 16:33:59 -07:00
parent b80b96d25c
commit c37c96e6a9
12 changed files with 77 additions and 3 deletions

5
.gitignore vendored
View File

@ -1 +1,4 @@
node_modules/
node_modules/
bin/
resources/js/neutralino.js

View File

@ -8,7 +8,7 @@ Grasscutter launcher for easily switching between Official and Private servers
0. Clone the repository
1. Ensure you have [NodeJS](https://nodejs.org/en/download/) installed.
2. Install the `neu` CLI tool: `npm install -g @neutralinojs/neu`
3. Install the dependancies: `npm install`
3. Install the dependencies: `npm install` AND `neu update`
4. Compile and run:
* For testing: `npm run dev`
* For production: `npm run build`

BIN
dist/GrassClipper/GrassClipper-linux_x64 vendored Normal file

Binary file not shown.

BIN
dist/GrassClipper/GrassClipper-mac_x64 vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
dist/GrassClipper/WebView2Loader.dll vendored Normal file

Binary file not shown.

0
dist/GrassClipper/neutralinojs.log vendored Normal file
View File

BIN
dist/GrassClipper/resources.neu vendored Normal file

Binary file not shown.

61
neutralino.config.json Normal file
View File

@ -0,0 +1,61 @@
{
"applicationId": "js.grassclipper.app",
"version": "1.0.0",
"defaultMode": "window",
"port": 0,
"documentRoot": "/resources/",
"url": "/",
"enableServer": true,
"enableNativeAPI": true,
"tokenSecurity": "one-time",
"logging": {
"enabled": true,
"writeToLogFile": true
},
"nativeAllowList": [
"app.*",
"os.*",
"filesystem.*",
"storage.*",
"window.*",
"debug.log"
],
"modes": {
"window": {
"title": "GrassClipper",
"width": 1000,
"height": 800,
"minWidth": 400,
"minHeight": 200,
"fullScreen": false,
"alwaysOnTop": false,
"icon": "/resources/icons/appIcon.png",
"enableInspector": false,
"borderless": false,
"maximize": false,
"hidden": false,
"resizable": true,
"exitProcessOnClose": true
},
"browser": {},
"cloud": {
"url": "/resources/#cloud",
"nativeAllowList": [
"app.*"
]
},
"chrome": {
"width": 1000,
"height": 800,
"args": "--user-agent=\"Neutralinojs chrome mode\""
}
},
"cli": {
"binaryName": "GrassClipper",
"resourcesPath": "/resources/",
"extensionsPath": "/extensions/",
"clientLibrary": "/resources/js/neutralino.js",
"binaryVersion": "4.4.0",
"clientVersion": "3.3.0"
}
}

View File

@ -3,5 +3,9 @@
"version": "1.0.0",
"repository": "https://github.com/Grasscutters/GrassClipper.git",
"author": "SpikeHD <spikegdofficial@gmail.com>",
"license": "Apache-2.0"
"license": "Apache-2.0",
"scripts": {
"dev": "",
"build": ""
}
}

BIN
resources/icons/appIcon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

6
resources/index.html Normal file
View File

@ -0,0 +1,6 @@
<html>
</html>
<body>
<h1>Hello from Neutralino!</h1>
</body>