Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with pyinstaller packaging #1402

Open
2622594863 opened this issue Jun 5, 2024 · 3 comments
Open

Problems with pyinstaller packaging #1402

2622594863 opened this issue Jun 5, 2024 · 3 comments

Comments

@2622594863
Copy link

Specification

  • pywebview version:5.1
  • operating system:windows 10
  • web renderer:

Description

window = webview.create_window('FastAPI', url='./page.html', js_api=Api()) webview.start(custom_logic, window)

I like this project very much, and I can make python use the front end to write a very beautiful interface, but now I have a problem, I use the debugging state when everything is normal, but I want to use the pyinstaller package this program into an exe to send to my friends to use, open the exe will prompt 404 can not find the page, I have packed my html file and static folder into it, but I can't. Is there any solution
a1
2

Practicalities

  • YES/NO I am willing to work on this issue myself.

  • YES/NO I am prepared to support this issue financially.

@2622594863
Copy link
Author

Or is there an official recommended packaging solution where I have multiple html files and a static folder

@2622594863
Copy link
Author

I have solved this problem, but there is something wrong with the way I pack. May I ask how to make the window rounded

@MominIqbal-1234
Copy link

MominIqbal-1234 commented Jun 14, 2024

you can use the http server i think better way to solve this problem
https://pywebview.flowrl.com/guide/usage.html#communication-between-javascript-and-python

second
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants