devbio-napari icon indicating copy to clipboard operation
devbio-napari copied to clipboard

Constuct installer

Open haesleinhuepf opened this issue 2 years ago • 6 comments

Generating an installer is shockingly easy.

image

We need to figure out though how we can add a link to the [windows] start menu, e.g. to

path/to/installed-devbio-napari/python -m naparia

... to start napari with the assistant.

closes #30

haesleinhuepf avatar Oct 25 '22 19:10 haesleinhuepf

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

NicoKiaru avatar Mar 29 '23 07:03 NicoKiaru

Amazing, thanks @NicoKiaru !

Maybe, we can ask @psobolewskiPhD or @thawn for thelp for making this work on Mac too. 🙃

haesleinhuepf avatar Mar 29 '23 09:03 haesleinhuepf

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

psobolewskiPhD avatar Mar 30 '23 19:03 psobolewskiPhD

@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!

haesleinhuepf avatar Aug 02 '23 08:08 haesleinhuepf

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/

zoccoler avatar Aug 02 '23 14:08 zoccoler

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.

thawn avatar Jan 15 '24 10:01 thawn