PhonologicalCorpusTools / SLPAA

5 stars 0 forks source link

68 create executable for both mac and windows #207

Closed stannam closed 1 year ago

stannam commented 1 year ago

I made a few changes to the spec file and the code. I removed fbs-dependent runtime hook on the spec file. The changes to the code are for getting the absolute paths to the resources.

It should now be possible to create an executable on Windows and Mac (respectively).

@kvesik Kaili, I am working on a Win10 machine, so it would be great if you could test it on Win11. The following link is for the .exe file. If it does not work, simple 'pyinstaller slpaa.spec' on the root path should create an executable. https://www.dropbox.com/scl/fi/xhe9ryo0pq8u0dqgzxc7l/SLPAA.exe?rlkey=77ch0vapbbmbyco2d7hd5suzh&dl=0

@kchall Kathleen, could you download the dmg file and make sure it works on newer Macs? Github seems to block uploading executable files here, so please use the link below. https://www.dropbox.com/scl/fi/tfujvyr3n50v5lxr026de/SLPAA.dmg?rlkey=3x43y9cynldptiek9ix8t8gg2&dl=0

kchall commented 1 year ago

🤩🥳🎉

You're amazing! Yes, this .dmg file worked for me. I had the usual initial warning about not being able to open it because of not being able to verify the security, but it worked if I used the right-click 'open' option. Also, the icon shows up, temporarily disappears, and then reappears to actually open -- but it does open, and it does work!

stannam commented 1 year ago

Thanks, @kchall. Great to hear that the .dmg file works!

kvesik commented 1 year ago

Hi Stanley! Sorry for the delay. This is so exciting! It works on my Windows 11 machine (with, as Kathleen reported, the expected security warning).

stannam commented 1 year ago

Thanks, Kaili! I'm thrilled that we've figured out how to distribute SLPAA when we decide to do so. 😄

I couldn't create a working executable on my Linux system (Ubuntu), but I believe it's just a minor issue for now.