kitao / pyxel

A retro game engine for Python
MIT License
15.31k stars 847 forks source link

APP_FILE_EXTENSION constant reference error #536

Closed EurynomeKeros closed 6 months ago

EurynomeKeros commented 6 months ago

When app2exe are executed, startup_script_file is generated and the running pyxapp file name is written.The constant APP_FILE_EXTENSION is called here as the file extension (.pyxapp), but there is an extra dot symbol, which will result in a file name like xxx..pyxapp, causing the exe file fails to be run,because the corresponding filename file could not be found. The same reference error when executing app2html, but running the html will generate the corresponding filename file through the _copyFileFromBase64 method in pyxel.js, although there will be no runtime error, it is better to modify together. Current versions greater than 2.0.10 have the above problem.

kitao commented 6 months ago

Thank you. It's my mistake. I'll release the next version immediately.