Skip to content

Commit

Permalink
fix action
Browse files Browse the repository at this point in the history
  • Loading branch information
djkcyl committed Dec 24, 2022
1 parent 74b13e3 commit a927ee8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ jobs:
- name: Build Nuitka Binary
run: |
pip uninstall -y pyinstaller
pip install nuitka zstandard orderedset imageio
python -m nuitka --onefile --standalone --show-progress --assume-yes-for-downloads --output-dir=nuitka --windows-icon-from-ico=tv.png --user-package-configuration-file=nuitka.yml main.py
pip install nuitka zstandard ordered-set
python -m nuitka --onefile --standalone --show-progress --assume-yes-for-downloads --output-dir=nuitka --windows-icon-from-ico=tv.ico --user-package-configuration-file=nuitka.yml main.py
- name: Get commit hash
id: commit
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ jobs:
- name: Build Nuitka Binary
run: |
pip uninstall -y pyinstaller
pip install nuitka zstandard orderedset imageio
python -m nuitka --onefile --standalone --show-progress --assume-yes-for-downloads --output-dir=nuitka --windows-icon-from-ico=tv.png --user-package-configuration-file=nuitka.yml main.py
pip install nuitka zstandard ordered-set
python -m nuitka --onefile --standalone --show-progress --assume-yes-for-downloads --output-dir=nuitka --windows-icon-from-ico=tv.ico --user-package-configuration-file=nuitka.yml main.py
- name: Get commit hash
id: commit
Expand Down
10 changes: 8 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,15 @@ async def stop_uvicorn():

@app.get("/")
async def index():
return FileResponse(Path("website", "static", "init", "index.html"))
return FileResponse(
Path(__file__).parent.joinpath("website", "static", "init", "index.html")
)

app.mount("/", StaticFiles(directory=Path("website", "static", "init")), name="Init Page")
app.mount(
"/",
StaticFiles(directory=Path(__file__).parent.joinpath("website", "static", "init")),
name="Init Page",
)

if isinstance(err, dict):
valueerror_output(err)
Expand Down
Binary file added tv.ico
Binary file not shown.

0 comments on commit a927ee8

Please sign in to comment.