On 07/07/2018 04:21 AM, Pavel Sanda wrote: > Richard Kimberly Heck wrote: >> The problem with spellcheck was because some dictionaries were supposed >> to be installed by default, but there was no actual provision for >> including them in the package, from what I can tell. Special sauce, I >> guess. There were also some major problems downloading dictionaries >> during the installation. The URLs were simply wrong. I fixed that and >> simplified some of the code. > My understanding was that all the dictionaries were fixed part of the > installer and nothing was to be downloaded during the installation.
Certain dictionaries are supposed to be installed by default. English US and UK, German, French, something else. I can't remember. Anyway, it's because they weren't in my installer that people were getting errors. There's also an option during the install to install other languages. And *no* thesauri are installed by default. Those have to be chosen during the install. But the directory Resources/thes/ has to exist, or else the download fails. (Apparently, NSIS::inetc does not know how to create directories.) And, as I said, the URLs for the downloads (which point to Uwe's site on sourceforge) all were wrong. He had "project/" instead of "projects/", e.g., or the other way around, and it got worse after that. <BITCH_SESSION> It took forever to debug that: Add some debugging code; build the installer; install LyX, choosing some non-default dictionaries and thesauri; watch it fail; uninstall LyX; change the code; and start over. Why people put up with such a horrid OS I do not know. </BITCH_SESSION> Longer term, we maybe should just aim for a 'portable' install. I guess there are a lot of questions about longer term that we should discuss once this is sorted. We could use some help here.... > For that purpose all thesauri and dictionaries were stored at > https://www.lyx.org/trac/browser/lyxsvn/dictionaries > and irregularly updated. If Uwe still used them I do not know. No, he did not, as kind of mentioned above, but I intend to fix this at some point. At the very least, we could put the dictionaries on ftp.lyx.org. For the short term, I've put them into the default ones at least into the Win32 dependencies zip and updated the installer code to include them. > Do you have some script or completele notes how to build the current > installer? The necessary changes are all in this branch: https://git.lyx.org/?p=developers/rgheck/lyx.git;a=log;h=refs/heads/WinBuild-2.3.0-101 It's based off 2.3.0, so diff'ing against that gives you the changes. I will commit some version to 2.3.x and master after we get the release done. The changes to NSIS are easy, but I had to hack some of the cmake stuff pretty ugly. I'm using the mingw packages on Fedora (which basically means I'm not using the 3rdparty/ stuff at all), and they install to places different from what Kornel originally had on Ubuntu. I.e., "make package" has to look for the Qt dlls in different places. So that all needs some figuring out. To document a bit: At least for Fedora, there is a script at development/cmake/scripts/cmingw that one can use as follows: > ./autogen.sh > mkdir build && cd build > bash ../development/cmake/scripts/cmingw > make -j1024 ;-) > make package That will create a LyX-something.zip file containing what's needed for Windows. I've been creating the actual installer on Windows itself, basically following the directions in Uwe's Readme.txt file. You just need the right directory structure, then run the NSIS installer scripts, which you can do by right-clicking on them and choosing "Compile NSIS script". I will update the documentation in-tree when the time comes. Riki