You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I package an app using py2app and the source is an html file path instead of a url, the app does not load the HTML when in the Applications folder. It works normally everywhere else. I've traced this issue back to version 4.0, as it works fine before that. For what it's worth, I know that my paths are all correct (and - as I mentioned earlier - it works in versions before 4.0).
It could possibly be a permissions problem, but I'm not sure. It only seems to happen when I try to use the server, even with ssl=True set. If I stick with file:// to avoid using the Bottle server, there are no issues.
You can test out the issue as follows:
Change examples/py2app_setup.py to have the following line:
DATA_FILES = tree('stuff')
where stuff is a folder with your index.html.
Change examples/simple_browser.py to use the file instead of a URL:
When you run python py2app_setup.py py2app, the packaged app will work in your dist folder and other locations like Documents or Desktop, but the moment you drag the app to Applications, it will no longer load your HTML.
Practicalities
NO I am willing to work on this issue myself.
NO I am prepared to support this issue financially.
The text was updated successfully, but these errors were encountered:
However, that made me realize that pywebview lacked support for frozen py2app resources. As well as referencing ../Resources/ is rather awkward. I have added py2app support in the latest master commit, so it should work now just by pointing to the actual entrypoint same as in dev mode.
Specification
Description
When I package an app using py2app and the source is an html file path instead of a url, the app does not load the HTML when in the Applications folder. It works normally everywhere else. I've traced this issue back to version 4.0, as it works fine before that. For what it's worth, I know that my paths are all correct (and - as I mentioned earlier - it works in versions before 4.0).
It could possibly be a permissions problem, but I'm not sure. It only seems to happen when I try to use the server, even with
ssl=True
set. If I stick withfile://
to avoid using the Bottle server, there are no issues.You can test out the issue as follows:
Change
examples/py2app_setup.py
to have the following line:where
stuff
is a folder with yourindex.html
.Change
examples/simple_browser.py
to use the file instead of a URL:When you run
python py2app_setup.py py2app
, the packaged app will work in yourdist
folder and other locations likeDocuments
orDesktop
, but the moment you drag the app toApplications
, it will no longer load your HTML.Practicalities
NO I am willing to work on this issue myself.
NO I am prepared to support this issue financially.
The text was updated successfully, but these errors were encountered: