diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..881e5a6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,29 @@ +__pycache__ +*/__pycache__ + +.DS_Store +node_modules +/dist + +# local env files +/env/ +/venv/ +.env.local +.env.*.local + +# Log files +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# Editor directories and files +.idea +.vscode +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? + +# Private configs +/config.py diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..7c404ce --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "webui"] + path = webui + url = https://notabug.org/RemixDev/deemix-webui.git diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..d6715e1 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,4 @@ +deemix +flask +flask-socketio +pywebview diff --git a/server.py b/server.py index dcba984..c9a750c 100644 --- a/server.py +++ b/server.py @@ -44,7 +44,7 @@ def resource_path(relative_path): return path.join(base_path, relative_path) -gui_dir = resource_path('public') +gui_dir = resource_path(path.join('webui', 'public')) server = CustomFlask(__name__, static_folder=gui_dir, template_folder=gui_dir) server.config['SEND_FILE_MAX_AGE_DEFAULT'] = 1 # disable caching socketio = SocketIO(server, async_mode='threading') diff --git a/webui b/webui new file mode 160000 index 0000000..49391b9 --- /dev/null +++ b/webui @@ -0,0 +1 @@ +Subproject commit 49391b902db04f77de4818694cf806982e69a2d5