| Re: [casetta] Casetta 0.3 Feedback / Windows Installer |
[ Thread Index | Date Index | More lists.tuxfamily.org/casetta Archives ]
Florian Birée a écrit :I am not really sure casetta have a lot of users for now (You, Asher256, a certain theophile helleboid and me... all using Linux) :-D. But maybe this installer will help some Windows users (I hope so !). The casetta python module is currently 'compiled' like the PIL. This means before compiling casetta_cli or gasetta, the casetta module needs to be installed in your-python-root/lib/site-packages/. The PIL and casetta are handled exactly in the same way by py2exe!. This is a problem because theses modules are included twice (in the casetta_cli final directory where binaries are put and in gasetta final dir). To make this clearer , I have a small diagram : http://xion345.olympe-network.com/casetta-work/casetta_cli-gasetta-py2exe-build-process.jpg. An important point : Casetta_cli and gasetta are built separately by two different script (which are called by th "master" script generate-win32-installer.py). Yes, needed libraries are included with most windows software. Because of its lack of a decent dependences mechanism. That's the windows world... I said that to have a good conscience (what I did is bad but everybody does like that) Yes it is very pleasant and powerful !-> The second step was to make and installer, I choosed NSIS : Nullsoft Scriptable Install System (http://nsis.sourceforge.net/) because it is free (zlib/libpng licence), well-known, powerful yet simple, very well documented. Belive me, this was THE good choice ! ;-)I never used it, but I heard a lot of great things about it. Yes, you are right, my installer doesn't check for Glade support ! This is a big problem. I didn't notice. Sorry. I will try to fix this. Thank you very much for highlighting this point. Wow. This may be painful ! You may be interested in the VirtualBox (Virtual Machine, it don't know if you know !), which is now licensed under GPL, http://www.virtualbox.org/wiki/Downloads (There is a GPL, which you need to compile and not-gpl version). It should be faster than Qemu ! No No No ! :-) When I said NSIS was nearly perfect... It is possible to build Windows installer from Linux using NSIS ! 8-) There is a version of the NSIS script compiler for linux.To create a windows installer you need to (all needed files are on : http://xion345.olympe-network.com/casetta-work/windows-installer/ ): 1 - Copy setup-py2exe.py inside gasetta directory (You can have a look at it....) 2 - Copy setup-py2exe.py inside casetta_cli directory 3- Copy NSIS-data, all *.nsi scripts, generate-win32-installer.py in the parent dir 4- Run generate-win32-installer.py and answer the questions 5- Compile newly created NSIS scripts(casetta-setup-gtk.nsi, casetta-setup-nogtk.nsi) (Right click -> Compile NSIS script), you will need the NSIS compiler http://nsis.sourceforge.net/DownloadThe only drawback it's that need a windows (or windows compatible) system. Actually, I've a script that build the source archive and the windows (distutils) installer, all on my GNU/Linux system. Maybe it's possible to use Wine to use the NSIS compiler. If you are running Debian/Ubuntu, it is in the apt repository (package name : nsis). More specifically, if you are using Ubuntu Linux (I believe it is the case), the version in the feisty repository is out-dated (2.19), I recompiled a quite recent version from gusty for feisty (2.28) : http://xion345.olympe-network.com/debian-packages/nsis_2.28-1_i386.deb . You can use it, if you want ! If you prefer to build (I mean the nsis compiler) it by yourself have a look at : http://nsis.sourceforge.net/Docs/AppendixG.html#G.3 (en). However, you absolutely need Windows to compile the project with py2exe. If you don't mind, it would prefer to compile the official installer from a real windows... It may be better ! Hey, the casetta icon is not so bad (but like me you cheated, you used an existing icon as a base). In fact it is not very smarter. It is just easier and faster to use it is however, a bit heavy : full copy of GTK lib etc... Some libraries are duplicated... Yes, of course No, because of the libglade bug, they are not ready, it'll try to fix it as soon as possible. It is a good idea to add the source code in a branch (the organization of the SVN is now better and professional :-).If you think yours installers are ready, I can upload them on the download repository, and update the website. I'll also made an archive with the source of the installer, and upload them in the svn repository (in branches/win-installer or something like). If you want, I can get you a write access to the repository. When you add them on the website, could you put a link to the mailing list and write I am very interested in getting any feedback and ready to help for install and son. (Could you also put my e-mail, like this people don't have to subscribe to the mailing list f they just want help !) For the SVN RW access, yes, I think now I have enough experience developing casetta. So that's a good idea (especially if I work in branches (see my next mail), there is not risk for the trunk ). Do I need to create a tuxfamily.org account ? Do I need a special option ? What's your opinion about that? Thank you a lot for this great contribution! Cheers, --
Fabien ANDRE aka Xion345 Linux User #418689 -- fabien.andre.g@xxxxxxxxxx -- xion345@xxxxxxxxxxxxx |
| Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |