Re: [Unofficial] Deluge 2.0.x installer.
Posted: Mon Mar 23, 2020 9:46 am
Thanks mate
I just checked my computer now, and I genererated a list of files needing to be copied from gvsbuild\release\bin folder of my installer and into the corresponding folder of a newly built gvsbuild. I haven't built gvsbuild mind you, but just tested with Cas's gvsbuild compared to my gvsbuild.
If you ever compare my gvsbuild to yours or Cas's, then you'll also see there is missing alot of files in mine, as I deleted alot of files in general, to save several 100MB footprint, as deluge didn't reference those anyways(done by trial and error).
When simply just replacing my gvsbuild with another, e.g. the one from Cas, then I got exact same error about something failing and only thinclient mode available and then couldn't start daemon from the UI afterwards anyway.
Ohh, the UI will look strange, because in my gvsbuild there is added a settings.ini file under gvsbuild\release\etc\gtk-3.0\settings.ini:
(I added some other themes also, which you can get by copying over from my gvsbuild to yours the folders gvsbuild\release\share and gvsbuild\release\etc, the last folder not needed if making above settings.ini file yourself, but if copying share folder mentioned before, then change win32 to win32x in that settings.ini to get an additional bugfix)
Btw, also why I didn't looked into building gvsbuild myself more, after getting errors, was that atleast at the time, then gvsbuild by default used gtk 3.22 and Cas forked gvsbuild and made several changes so it used instead 3.24, so we should use Cas's forked gvsbuild when building, but then this would give us the exact same anyway as Cas's already build and provided pre-made gvsbuild as compressed archieve i'm thinking/guessing, unless changing build-files again to build newer version, if newer released(haven't checked myself) and that is sometime not that easy, so i'm not sure if we gain anything by just running Cas's fork, or the official project, in terms of updated gtk3+, though maybe i'm misunderstanding something.
If continue have problems with gvsbuild and if I cannot help more, though feel free to ask of-course, then i'd suggest pinging doadin which I think knows about how to build and use gvsbuild, since he has made batchfiles available for that, so seemingly done it himself. I don't think he uses this installer, but his own manual build, but that should be the same regarding that(gvsbuild), except needing in that case add yourself the path of the bin folder of gvsbuild to your PATH env-var and install msvc runtimes additionally(though if using deluge from my installer and replacing its gvsbuild with your own built version, then you don't need these things and just need copy over the files listed below, from old to new gvsbuild's bin folder).
Good luck!
(I originally just included all the runtime files as the ones I guessed possibly wasen't needed where so small anyway(~20kb) and hence I didn't bother spend time on finding which was needed specifically, but I now tested it and found only two of all the runtime files needed there specifically, and rest unreferenced so deleted them from my installer now, though only makes a miniscoule space saving but regardless, so if seeing extra runtime files in my gvsbuild's bin folder in an earlier installer than the ones I just now am rebuilding, then it's because of that. Lastly, in my gvsbuild's bin folder I also now saw that I had two python dll's in there which wasent needed, though doesn't hurt neither, but I also now removed them and will not be there from now on either. I had to rebuild anyway to catch up with latest commits of libtorrent 1.2.x, though nothing important added there but regardless, I like being on top of things. Those python files where from long ago when I experimented back and fourth in different ways for trying to get deluge to run without needing touching your real PATH env-var permanently(which could have issues in rare cases I found, when done from scripting, so didn't like doing it, although I did back it up first, but regardless) and instead only touch it temporarilly for the running session only, by utilizing the addition of a PTH file in correct place including some added few lines of python code, though that is located elsewhere and not in gvsbuild, so don't worry about that as already in place when using my installer.)

I just checked my computer now, and I genererated a list of files needing to be copied from gvsbuild\release\bin folder of my installer and into the corresponding folder of a newly built gvsbuild. I haven't built gvsbuild mind you, but just tested with Cas's gvsbuild compared to my gvsbuild.
If you ever compare my gvsbuild to yours or Cas's, then you'll also see there is missing alot of files in mine, as I deleted alot of files in general, to save several 100MB footprint, as deluge didn't reference those anyways(done by trial and error).
When simply just replacing my gvsbuild with another, e.g. the one from Cas, then I got exact same error about something failing and only thinclient mode available and then couldn't start daemon from the UI afterwards anyway.
Ohh, the UI will look strange, because in my gvsbuild there is added a settings.ini file under gvsbuild\release\etc\gtk-3.0\settings.ini:
Code: Select all
[Settings]
gtk-theme-name=win32
Btw, also why I didn't looked into building gvsbuild myself more, after getting errors, was that atleast at the time, then gvsbuild by default used gtk 3.22 and Cas forked gvsbuild and made several changes so it used instead 3.24, so we should use Cas's forked gvsbuild when building, but then this would give us the exact same anyway as Cas's already build and provided pre-made gvsbuild as compressed archieve i'm thinking/guessing, unless changing build-files again to build newer version, if newer released(haven't checked myself) and that is sometime not that easy, so i'm not sure if we gain anything by just running Cas's fork, or the official project, in terms of updated gtk3+, though maybe i'm misunderstanding something.
If continue have problems with gvsbuild and if I cannot help more, though feel free to ask of-course, then i'd suggest pinging doadin which I think knows about how to build and use gvsbuild, since he has made batchfiles available for that, so seemingly done it himself. I don't think he uses this installer, but his own manual build, but that should be the same regarding that(gvsbuild), except needing in that case add yourself the path of the bin folder of gvsbuild to your PATH env-var and install msvc runtimes additionally(though if using deluge from my installer and replacing its gvsbuild with your own built version, then you don't need these things and just need copy over the files listed below, from old to new gvsbuild's bin folder).
Good luck!

Code: Select all
msvcp140.dll
vcruntime140_1.dll