View Single Post
Old 03-16-2016, 04:23 PM   #1
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,664
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Sigil Windows Portable Beta

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:

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
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.
Attached Files
File Type: txt Sigil-Portable-CHECKSUM.sha256.txt (105 Bytes, 163 views)
File Type: zip sigil-portable-launcher-src.zip (1.8 KB, 233 views)
DiapDealer is offline   Reply With Quote