Updated repo to use submodules

This commit is contained in:
RemixDev 2020-05-25 12:58:41 +02:00
parent c588fe20ef
commit a51310cd75
5 changed files with 38 additions and 1 deletions

29
.gitignore vendored Normal file
View file

@ -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

3
.gitmodules vendored Normal file
View file

@ -0,0 +1,3 @@
[submodule "webui"]
path = webui
url = https://notabug.org/RemixDev/deemix-webui.git

4
requirements.txt Normal file
View file

@ -0,0 +1,4 @@
deemix
flask
flask-socketio
pywebview

View file

@ -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')

1
webui Submodule

@ -0,0 +1 @@
Subproject commit 49391b902db04f77de4818694cf806982e69a2d5