diff --git a/client/.gitignore b/client/.gitignore index a547bf3..5e0df7a 100644 --- a/client/.gitignore +++ b/client/.gitignore @@ -10,7 +10,10 @@ lerna-debug.log* node_modules dist dist-ssr +dist-vite +bin *.local +undefined # Editor directories and files .vscode/* diff --git a/client/neutralino.config.json b/client/neutralino.config.json new file mode 100644 index 0000000..7fa4264 --- /dev/null +++ b/client/neutralino.config.json @@ -0,0 +1,69 @@ +{ + "applicationId": "groupomania", + "version": "1.0.0", + "defaultMode": "window", + "port": 0, + "documentRoot": "/dist-vite/", + "url": "/", + "enableServer": true, + "enableNativeAPI": true, + "tokenSecurity": "one-time", + "logging": { + "enabled": true, + "writeToLogFile": true + }, + "nativeAllowList": [ + "app.*", + "os.*", + "debug.log" + ], + "globalVariables": { + }, + "modes": { + "window": { + "title": "Groupomania", + "width": 800, + "height": 500, + "minWidth": 400, + "minHeight": 200, + "fullScreen": false, + "alwaysOnTop": false, + "icon": "/dist-vite/icons/logo-only.png", + "enableInspector": true, + "borderless": false, + "maximize": true, + "hidden": false, + "resizable": true, + "exitProcessOnClose": true + }, + "browser": { + "globalVariables": { + }, + "nativeBlockList": [ + "filesystem.*" + ] + }, + "cloud": { + "url": "/resources/#cloud", + "nativeAllowList": [ + "app.*" + ] + }, + "chrome": { + "width": 800, + "height": 500, + "args": "--user-agent=\"Neutralinojs chrome mode\"", + "nativeBlockList": [ + "filesystem.*", + "os.*" + ] + } + }, + "cli": { + "binaryName": "groupomania", + "resourcesPath": "/dist-vite/", + "extensionsPath": "/extensions/", + "binaryVersion": "4.7.0", + "clientVersion": "3.6.0" + } +} \ No newline at end of file diff --git a/client/package.json b/client/package.json index be5597d..975bca8 100644 --- a/client/package.json +++ b/client/package.json @@ -6,7 +6,8 @@ "scripts": { "dev": "vite", "build": "tsc && vite build", - "preview": "vite preview" + "preview": "vite preview", + "build:neu": "tsc && vite build && mv dist dist-vite && neu update && neu build --release" }, "dependencies": { "@tanstack/react-query": "^4.2.3", diff --git a/client/public/icons/logo-only.png b/client/public/icons/logo-only.png new file mode 100644 index 0000000..1f08fcf Binary files /dev/null and b/client/public/icons/logo-only.png differ