Open haesleinhuepf opened 2 years ago
I've made a post_install script to make shortcuts. It's windows only and probably a bit hacky. But here it is in case it's useful:
https://github.com/NicoKiaru/ABBA-Python/blob/dev/constructor/post_install_win.bat
ping @romainGuiet
Amazing, thanks @NicoKiaru !
Maybe, we can ask @psobolewskiPhD or @thawn for thelp for making this work on Mac too. 🙃
Sorry, I'm not really familiar with this stuff, but it's used in making the napari bundle, see: https://github.com/napari/packaging https://napari.org/stable/developers/packaging.html
@zoccoler that's the PR @thawn and me were just talking about. Would be cool if you had a look how to make the start menu entry work for Windows. Big thanks!
Hi Robert @haesleinhuepf ,
I found the blog I used before to make a Windows installer using this "Inno Setup" program.
It has a step-by-step procedure there, here is the link (skip the pyinstaller part and go to the "What About Installers?" sub-section): https://www.blog.pythonlibrary.org/2019/03/19/distributing-a-wxpython-application/
I had a quick look around and it seems we just need to do mamba install napari-menu
. This package provides a json config file that tells constructor to create a windows menu shortcut.
I will play around with the windows installer and napari-menu a bit and report my findings here.
Note that napari-menu
causes constructor to create start menu entries that will start napari
not naparia
. If we wanted to have menu entries for naparia, I guess we would need to create the conda package naparia-menu
.
Napari-menu is somehow created from napari-feedstock, but I don't quite understand how that repo works.
Generating an installer is shockingly easy.
We need to figure out though how we can add a link to the [windows] start menu, e.g. to
... to start napari with the assistant.
closes #30