This may, or may not, become a part of the official Sigil distribution at some point (depending on interest/response).
I had no intentions of creating a Portable build, but I became intrigued by the challenge after inspecting the PortableApps version of Sigil and discovering that it wasn't actually completely portable! Oh, the main program is portable enough, but the plugin framework is not.
The bundled python interpreter in the PortableApps version can't use its own included python library. It looks to the location of the Official Sigil installation's python for its modules. If that's not installed, it looks for a system installed python. If it can't find that ... the plugin interpreter crashes. So in essence, if Sigil (a recent version) or Python isn't already installed on a machine, the PortableApps Sigil ain't running any plugins.
So anyway, here's my attempt at a fully-portable, self-contained version of Sigil for Windows. All it is, is a completely stock 32-bit version of Sigil v0.9.4 launched with a wrapper (source attached to post--many thanks to Kovid/calibre for inspiration) that:
I've created an "installer" because I figured it would be easier to upgrade that way: just "install" the new version over top of the old.
It looks like this on disk:
Double-click Sigil-Portable.exe to run.
Download link (Google Drive):
Sigil-0.9.4-Windows-Portable-Setup
(Vista minimum)
P.S. This thing's never going to be a multi-simultaneous-user application, so don't slap it on a network drive and try to use it like that. Put it on your hard-drive/thumb-drive and use it that way. ;)
I had no intentions of creating a Portable build, but I became intrigued by the challenge after inspecting the PortableApps version of Sigil and discovering that it wasn't actually completely portable! Oh, the main program is portable enough, but the plugin framework is not.
The bundled python interpreter in the PortableApps version can't use its own included python library. It looks to the location of the Official Sigil installation's python for its modules. If that's not installed, it looks for a system installed python. If it can't find that ... the plugin interpreter crashes. So in essence, if Sigil (a recent version) or Python isn't already installed on a machine, the PortableApps Sigil ain't running any plugins.
So anyway, here's my attempt at a fully-portable, self-contained version of Sigil for Windows. All it is, is a completely stock 32-bit version of Sigil v0.9.4 launched with a wrapper (source attached to post--many thanks to Kovid/calibre for inspiration) that:
A) sets the environment variable that relocates where Sigil stores its settings
B) modifies the pyvenv.cfg file (in the Sigil\python3 folder) that tells the bundled python interpreter where to find it's modules.
C) Finds "itself" and runs! (hopefully)
I've created an "installer" because I figured it would be easier to upgrade that way: just "install" the new version over top of the old.
It looks like this on disk:
Code:
Sigil-Portable\
+++Sigil\
+++SigilData\ (created after first run)
+++Sigil-Portable.exe
Download link (Google Drive):
Sigil-0.9.4-Windows-Portable-Setup
(Vista minimum)
P.S. This thing's never going to be a multi-simultaneous-user application, so don't slap it on a network drive and try to use it like that. Put it on your hard-drive/thumb-drive and use it that way. ;)