diff --git a/.github/workflows/build-win.yml b/.github/workflows/build-win.yml index a0fd13b9..b1eee0dd 100644 --- a/.github/workflows/build-win.yml +++ b/.github/workflows/build-win.yml @@ -30,7 +30,7 @@ jobs: run: | python -m pip install --upgrade pip pip install pyinstaller==5.13.0 - pip install -r requirements.txt + pip install -r backend/requirements.txt - name: Install JS dependencies ⬇️ working-directory: ./frontend @@ -43,10 +43,10 @@ jobs: run: pnpm run build - name: Build Python Backend 🛠️ - run: pyinstaller --noconfirm --onefile --name "PluginLoader" --add-data "./backend/src/static;/backend/src/static" --add-data "./backend/src/locales;/backend/src/locales" --add-data "./backend/src/legacy;/backend/src/legacy" --add-data "./plugin;/plugin" --hidden-import=sqlite3 ./backend/main.py + run: pyinstaller --noconfirm --onefile --name "PluginLoader" --add-data "./backend/src/static;/backend/src/static" --add-data "./backend/locales;/backend/locales" --add-data "./backend/src/legacy;/backend/src/legacy" --add-data "./plugin;/plugin" --hidden-import=sqlite3 ./backend/main.py - name: Build Python Backend (noconsole) 🛠️ - run: pyinstaller --noconfirm --noconsole --onefile --name "PluginLoader_noconsole" --add-data "./backend/src/static;/backend/src/static" --add-data "./backend/src/locales;/backend/src/locales" --add-data "./backend/src/legacy;/backend/src/legacy" --add-data "./plugin;/plugin" --hidden-import=sqlite3 ./backend/main.py + run: pyinstaller --noconfirm --noconsole --onefile --name "PluginLoader_noconsole" --add-data "./backend/src/static;/backend/src/static" --add-data "./backend/locales;/backend/locales" --add-data "./backend/src/legacy;/backend/src/legacy" --add-data "./plugin;/plugin" --hidden-import=sqlite3 ./backend/main.py - name: Upload package artifact ⬆️ uses: actions/upload-artifact@v3 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 70b68f96..31d01bef 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -73,7 +73,7 @@ jobs: run: | python -m pip install --upgrade pip pip install pyinstaller==5.13.0 - [ -f requirements.txt ] && pip install -r requirements.txt + [ -f backend/requirements.txt ] && pip install -r backend/requirements.txt - name: Install JS dependencies ⬇️ working-directory: ./frontend @@ -86,7 +86,7 @@ jobs: run: pnpm run build - name: Build Python Backend 🛠️ - run: pyinstaller --noconfirm --onefile --name "PluginLoader" --add-data ./backend/src/static:/backend/src/static --add-data ./backend/src/locales:/backend/src/locales --add-data ./backend/src/legacy:/backend/src/legacy --add-data ./plugin:/plugin --hidden-import=sqlite3 ./backend/main.py + run: pyinstaller --noconfirm --onefile --name "PluginLoader" --add-data ./backend/src/static:/backend/src/static --add-data ./backend/locales:/backend/locales --add-data ./backend/src/legacy:/backend/src/legacy --add-data ./plugin:/plugin --hidden-import=sqlite3 ./backend/main.py - name: Upload package artifact ⬆️ if: ${{ !env.ACT }} diff --git a/backend/src/locales/bg-BG.json b/backend/locales/bg-BG.json similarity index 100% rename from backend/src/locales/bg-BG.json rename to backend/locales/bg-BG.json diff --git a/backend/src/locales/cs-CZ.json b/backend/locales/cs-CZ.json similarity index 100% rename from backend/src/locales/cs-CZ.json rename to backend/locales/cs-CZ.json diff --git a/backend/src/locales/de-DE.json b/backend/locales/de-DE.json similarity index 100% rename from backend/src/locales/de-DE.json rename to backend/locales/de-DE.json diff --git a/backend/src/locales/el-GR.json b/backend/locales/el-GR.json similarity index 100% rename from backend/src/locales/el-GR.json rename to backend/locales/el-GR.json diff --git a/backend/src/locales/en-US.json b/backend/locales/en-US.json similarity index 100% rename from backend/src/locales/en-US.json rename to backend/locales/en-US.json diff --git a/backend/src/locales/es-ES.json b/backend/locales/es-ES.json similarity index 100% rename from backend/src/locales/es-ES.json rename to backend/locales/es-ES.json diff --git a/backend/src/locales/fi-FI.json b/backend/locales/fi-FI.json similarity index 100% rename from backend/src/locales/fi-FI.json rename to backend/locales/fi-FI.json diff --git a/backend/src/locales/fr-FR.json b/backend/locales/fr-FR.json similarity index 100% rename from backend/src/locales/fr-FR.json rename to backend/locales/fr-FR.json diff --git a/backend/src/locales/it-IT.json b/backend/locales/it-IT.json similarity index 100% rename from backend/src/locales/it-IT.json rename to backend/locales/it-IT.json diff --git a/backend/src/locales/ko-KR.json b/backend/locales/ko-KR.json similarity index 100% rename from backend/src/locales/ko-KR.json rename to backend/locales/ko-KR.json diff --git a/backend/src/locales/nl-NL.json b/backend/locales/nl-NL.json similarity index 100% rename from backend/src/locales/nl-NL.json rename to backend/locales/nl-NL.json diff --git a/backend/src/locales/pl-PL.json b/backend/locales/pl-PL.json similarity index 100% rename from backend/src/locales/pl-PL.json rename to backend/locales/pl-PL.json diff --git a/backend/src/locales/pt-BR.json b/backend/locales/pt-BR.json similarity index 100% rename from backend/src/locales/pt-BR.json rename to backend/locales/pt-BR.json diff --git a/backend/src/locales/pt-PT.json b/backend/locales/pt-PT.json similarity index 100% rename from backend/src/locales/pt-PT.json rename to backend/locales/pt-PT.json diff --git a/backend/src/locales/ru-RU.json b/backend/locales/ru-RU.json similarity index 100% rename from backend/src/locales/ru-RU.json rename to backend/locales/ru-RU.json diff --git a/backend/src/locales/sq-AL.json b/backend/locales/sq-AL.json similarity index 100% rename from backend/src/locales/sq-AL.json rename to backend/locales/sq-AL.json diff --git a/backend/src/locales/uk-UA.json b/backend/locales/uk-UA.json similarity index 100% rename from backend/src/locales/uk-UA.json rename to backend/locales/uk-UA.json diff --git a/backend/src/locales/zh-CN.json b/backend/locales/zh-CN.json similarity index 100% rename from backend/src/locales/zh-CN.json rename to backend/locales/zh-CN.json diff --git a/backend/src/locales/zh-TW.json b/backend/locales/zh-TW.json similarity index 100% rename from backend/src/locales/zh-TW.json rename to backend/locales/zh-TW.json diff --git a/requirements.txt b/backend/requirements.txt similarity index 100% rename from requirements.txt rename to backend/requirements.txt