javadr / negar-gui

Graphical User Interface for Negar -- Persian Text Editor
GNU General Public License v3.0
13 stars 2 forks source link

Compiled version for Windows? #2

Closed rayman3003 closed 1 year ago

rayman3003 commented 1 year ago

Can we have a compiled version of negar-gui in release section for Windows?

javadr commented 1 year ago

In which platform?

rayman3003 commented 1 year ago

Windows

javadr commented 1 year ago

There are two points: 1- The standalone binary file would be around 80MB since it needs Qt GUI. 2- I have no Windows!

If you can handle the first issue, I'll manage the second one.:smile:

rayman3003 commented 1 year ago

If you can handle the first issue, I'll manage the second one.😄

Yeap that's OK.. Thank u. 👍😅

ALiwoto commented 1 year ago

But how much time would it need to compile the whole binary each time? (asking since you mentioned Qt GUI, because Telegram Desktop also uses Qt libraries and it takes around 2 hours to compile)

Perhaps we can setup a GitHub action (Continuous Integration) on the repository and it builds binaries and uploads Artifacts to repository's release page on each git push.

javadr commented 1 year ago

Making a binary on my Linux (with SSD) takes more than 20 mins, see below:

________________________________________________________
Executed in  591.59 secs    fish           external
usr time   40.94 mins    0.00 micros   40.94 mins
sys time    0.89 mins  483.00 micros    0.89 mins

I think because of this, I've ignored making a binary version. BTW, your idea seems more feasible. Thanks

rayman3003 commented 1 year ago

negar-gui is a good unique app; & I'm sure windows users will love it. Since a good-working right-to-left language supporting unicode text editor, is hard to find in windows platform.

ALiwoto commented 1 year ago

@javadr I can help on adding the GitHub action and release process; would you please tell me which commands did you use to build the binary?

javadr commented 1 year ago

@ALiwoto Thank you. I've tested two approaches: 1. nuitka, and 2. pyinstaller. I think it would be better to talk about that in person. See you next week.

javadr commented 1 year ago

@ALiwoto Is there any new update?