mirror of
https://github.com/Grasscutters/GrassClipper.git
synced 2024-11-16 04:45:34 +00:00
neutralino init
This commit is contained in:
parent
b80b96d25c
commit
c37c96e6a9
5
.gitignore
vendored
5
.gitignore
vendored
@ -1 +1,4 @@
|
|||||||
node_modules/
|
node_modules/
|
||||||
|
|
||||||
|
bin/
|
||||||
|
resources/js/neutralino.js
|
@ -8,7 +8,7 @@ Grasscutter launcher for easily switching between Official and Private servers
|
|||||||
0. Clone the repository
|
0. Clone the repository
|
||||||
1. Ensure you have [NodeJS](https://nodejs.org/en/download/) installed.
|
1. Ensure you have [NodeJS](https://nodejs.org/en/download/) installed.
|
||||||
2. Install the `neu` CLI tool: `npm install -g @neutralinojs/neu`
|
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:
|
4. Compile and run:
|
||||||
* For testing: `npm run dev`
|
* For testing: `npm run dev`
|
||||||
* For production: `npm run build`
|
* For production: `npm run build`
|
||||||
|
BIN
dist/GrassClipper/GrassClipper-linux_x64
vendored
Normal file
BIN
dist/GrassClipper/GrassClipper-linux_x64
vendored
Normal file
Binary file not shown.
BIN
dist/GrassClipper/GrassClipper-mac_x64
vendored
Normal file
BIN
dist/GrassClipper/GrassClipper-mac_x64
vendored
Normal file
Binary file not shown.
BIN
dist/GrassClipper/GrassClipper-win_x64.exe
vendored
Normal file
BIN
dist/GrassClipper/GrassClipper-win_x64.exe
vendored
Normal file
Binary file not shown.
BIN
dist/GrassClipper/WebView2Loader.dll
vendored
Normal file
BIN
dist/GrassClipper/WebView2Loader.dll
vendored
Normal file
Binary file not shown.
0
dist/GrassClipper/neutralinojs.log
vendored
Normal file
0
dist/GrassClipper/neutralinojs.log
vendored
Normal file
BIN
dist/GrassClipper/resources.neu
vendored
Normal file
BIN
dist/GrassClipper/resources.neu
vendored
Normal file
Binary file not shown.
61
neutralino.config.json
Normal file
61
neutralino.config.json
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
@ -3,5 +3,9 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"repository": "https://github.com/Grasscutters/GrassClipper.git",
|
"repository": "https://github.com/Grasscutters/GrassClipper.git",
|
||||||
"author": "SpikeHD <spikegdofficial@gmail.com>",
|
"author": "SpikeHD <spikegdofficial@gmail.com>",
|
||||||
"license": "Apache-2.0"
|
"license": "Apache-2.0",
|
||||||
|
"scripts": {
|
||||||
|
"dev": "",
|
||||||
|
"build": ""
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
BIN
resources/icons/appIcon.png
Normal file
BIN
resources/icons/appIcon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
6
resources/index.html
Normal file
6
resources/index.html
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<html>
|
||||||
|
|
||||||
|
</html>
|
||||||
|
<body>
|
||||||
|
<h1>Hello from Neutralino!</h1>
|
||||||
|
</body>
|
Loading…
Reference in New Issue
Block a user