Thanks to the folks at InstallBuilder, I’ve started on an installer for Mac, Windows, and Linux. It will install Hugo v0.13 plus a small demo site.
I am writing a post-install script for the Linux and Mac installs that will open up a terminal window, change to the demo site directory, and start up Hugo. That demo site uses the Hyde theme and has a couple of posts cribbed from how-to’s and tutorials on the Hugo web site and forums.
The InstallBuilder program offers the option of updating the PATH. For Linux and Mac users, that’s an update to the user’s profile. For Windows, it looks like it is a registry update.
I don’t currently run either Windows or Linux, so I can’t test the installer on them.
I can help test on Windows. I’m sure others here can as well.
I don’t have a linux desktop right now, but could setup a VM easily. It
would be good to get lots of testing on it before we release it anyway. Who
else can help?
It’s trying to work around the race condition where the browser starts before Hugo begins serving content.
One solution is to start Hugo in the background and then wait a moment before starting the browser. The prob with that is if hugo launches in the background then the user can’t hit Control-C to stop it. They’d have to actually kill the process.
My workaround is to launch the browser in the background behind a sleep. It’s backwards but it gives Hugo almost two seconds to spin up and start serving content.
bin ls -ltr
total 5284
-rwxr-xr-x 1 bep bep 153 Apr 4 11:05 Uninstall Hugo.desktop
-rw------- 1 bep bep 2419 Apr 4 11:06 uninstall.dat
-rwx------ 1 bep bep 5399482 Apr 4 11:06 uninstall