ThiaudioTT / hoi4-presence

Hearts of Iron IV presence for Discord!
MIT License
13 stars 10 forks source link

Adds bundle script with .spec #26

Closed ThiaudioTT closed 1 year ago

ThiaudioTT commented 1 year ago

I'm creating a bundle script using .spec files of pyinstaller.

ThiaudioTT commented 1 year ago

There's still a problem: image

Aparently, version.json is compiled when compiling in one file, this will broke the scripts:

https://pyinstaller.org/en/stable/runtime-information.html#run-time-information

We need them as a separate files. I think I will move using built-in python and zip them.

ThiaudioTT commented 1 year ago

There's something wrong:

It is giving this error when executing it:

Error loading Python DLL 'C:\Dev\hoi4-presence\dist\python311.dll'.
LoadLibrary: The specified module could not be found.
ThiaudioTT commented 1 year ago

It is giving this error when executing it:

It is only setup.exe and checkupdate

ThiaudioTT commented 1 year ago

It is due to the MERGE line

https://pyinstaller.org/en/v3.3.1/spec-files.html#example-merge-spec-file

ThiaudioTT commented 1 year ago

image All good