Skip to content

Commit

Permalink
Fixed some more paths
Browse files Browse the repository at this point in the history
  • Loading branch information
WerWolv authored Sep 26, 2023
1 parent 3837cdc commit 3c21128
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ jobs:
run: pnpm run build

- name: Build Python Backend 🛠️
run: pyinstaller --noconfirm --onefile --name "PluginLoader" --add-data "./backend/static;/backend/src/static" --add-data "./backend/locales;/backend/src/locales" --add-data "./backend/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/src/locales;/backend/src/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/static;/backend/src/static" --add-data "./backend/locales;/backend/src/locales" --add-data "./backend/legacy;/backend/src/legacy" --add-data "./plugin;/plugin" --hidden-import=sqlite3 ./main.py
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 ./main.py

- name: Upload package artifact ⬆️
uses: actions/upload-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
run: pnpm run build

- name: Build Python Backend 🛠️
run: pyinstaller --noconfirm --onefile --name "PluginLoader" --add-data ./backend/static:/backend/src/static --add-data ./backend/locales:/backend/src/locales --add-data ./backend/legacy:/backend/src/legacy --add-data ./plugin:/plugin --hidden-import=sqlite3 ./backemain.py
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

- name: Upload package artifact ⬆️
if: ${{ !env.ACT }}
Expand Down
2 changes: 1 addition & 1 deletion backend/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file is needed to make the relative imports in backend/ work properly.
if __name__ == "__main__":
from backend.main import main
from src.main import main
main()

0 comments on commit 3c21128

Please sign in to comment.