diff --git a/.gitignore b/.gitignore index 40b878d..d7ff1b8 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ -node_modules/ \ No newline at end of file +node_modules/ + +bin/ +resources/js/neutralino.js \ No newline at end of file diff --git a/README.md b/README.md index 35c0bf6..4b786a2 100644 --- a/README.md +++ b/README.md @@ -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` diff --git a/dist/GrassClipper/GrassClipper-linux_x64 b/dist/GrassClipper/GrassClipper-linux_x64 new file mode 100644 index 0000000..fb5fd24 Binary files /dev/null and b/dist/GrassClipper/GrassClipper-linux_x64 differ diff --git a/dist/GrassClipper/GrassClipper-mac_x64 b/dist/GrassClipper/GrassClipper-mac_x64 new file mode 100644 index 0000000..1ca3c92 Binary files /dev/null and b/dist/GrassClipper/GrassClipper-mac_x64 differ diff --git a/dist/GrassClipper/GrassClipper-win_x64.exe b/dist/GrassClipper/GrassClipper-win_x64.exe new file mode 100644 index 0000000..f41d431 Binary files /dev/null and b/dist/GrassClipper/GrassClipper-win_x64.exe differ diff --git a/dist/GrassClipper/WebView2Loader.dll b/dist/GrassClipper/WebView2Loader.dll new file mode 100644 index 0000000..2805c27 Binary files /dev/null and b/dist/GrassClipper/WebView2Loader.dll differ diff --git a/dist/GrassClipper/neutralinojs.log b/dist/GrassClipper/neutralinojs.log new file mode 100644 index 0000000..e69de29 diff --git a/dist/GrassClipper/resources.neu b/dist/GrassClipper/resources.neu new file mode 100644 index 0000000..70d61b8 Binary files /dev/null and b/dist/GrassClipper/resources.neu differ diff --git a/neutralino.config.json b/neutralino.config.json new file mode 100644 index 0000000..582631d --- /dev/null +++ b/neutralino.config.json @@ -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" + } +} \ No newline at end of file diff --git a/package.json b/package.json index bd1debd..3d4c85f 100644 --- a/package.json +++ b/package.json @@ -3,5 +3,9 @@ "version": "1.0.0", "repository": "https://github.com/Grasscutters/GrassClipper.git", "author": "SpikeHD ", - "license": "Apache-2.0" + "license": "Apache-2.0", + "scripts": { + "dev": "", + "build": "" + } } diff --git a/resources/icons/appIcon.png b/resources/icons/appIcon.png new file mode 100644 index 0000000..d708bc3 Binary files /dev/null and b/resources/icons/appIcon.png differ diff --git a/resources/index.html b/resources/index.html new file mode 100644 index 0000000..75c33dd --- /dev/null +++ b/resources/index.html @@ -0,0 +1,6 @@ + + + + +

Hello from Neutralino!

+ \ No newline at end of file