-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows installer... again. #297
Conversation
…wininstaller Conflicts: bauble/utils/web.py scripts/build-multiuser.nsi
Now that we have a completely new NSIS script there is no need for the original version. This version was written prior to the introduction of User Account Control and other modern MS Windows paradigms. It therefore does not work well with them.
Largely experimental at this point. More to come.
…into ghini-1.0-wininstaller
- Cleaning up the NSIS plugins stored in data\nsis to include the full zipped versions used for the build script plus the files used by the script in place. - Tidy up and complete setup.py custom nsis command.
For win frozen state after py2exe build.
…into ghini-1.0-wininstaller
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docs don't mention activating the virtual environment. and if I do activate the correct virtual environment, build_win
says none was active and insists in creating a new one anyway.
I'm afraid that your script doesn't recognize the path if it contains spaces, like mine does (\Users\Mario Frasca\
)
I didn't test any further, I just stopped after the first two errors. I also consider and suggest the following:
I rather leave this completely to you. thanks. |
there surely is a reason why you prefer creating a new virtual environment (and hard code the name). |
please consider this (untested):
I did not read the rest yet. |
a note to myself, I'm sure you @RoDuth are already familiar with the page. |
I think this is still incomplete. there are issues with installing |
@mfrasca Sorry, life got in the way for a little while... and I still don't really have time right now but if you do still want me to (I keep getting the feeling that for some reason you don't want a windows installer at all?) I can finish this, I just need some time and to understand what it is that you want. It really is very simple, you just need to do these steps:
The
|
Also, other approaches I've seen to the eggs issue are to either unzip the packages in situ, which seems like an ugly hack to me, or to add
to |
I don't need a Windows installer, that's quite correct. But I can accept one I can update myself with the least effort. I'm a very forgetful person, so I'm used to writing everything down. this practice is the base for our documentation. I need all steps written down, I need to be able to follow them and to be sure that future developers can follow them too. if you can write your instructions considering the developer ALREADY has everything in place for running ghini. This will reduce the length of your writing, and the chance that the reader will think "oh, that I already did", missing one step you're hiding among well known steps. as said: I don't want a new virtual environment if not strictly necessary. so: whenever you have the time, please review the documentation. I will try it again when you're done. if I can follow the steps you describe, I'll be happy to include your contribution to software and documentation. |
Is this any better for you? Its fairly self explanatory.
I've tried to make it as simple and repeatable as possible. All the versions of the NSIS plugins I used when writing the script are now in situ so you no longer have to install them. If you do a full install of NSIS v3 (or even a minimal + plugins and user interfaces) all other dependencies will be satisfied.
I used VirtualBox and the Windows VM images to test all of this. Its handy to be able to take a snapshot while the machine is running so you don't need to reboot it and can just power the VM off when your done. You can then return to the same place to pull the latest changes and rerun
scripts\build_win
to create a new release. I've used it on a Win7-10 but would recommend Win7 as being a little faster to work with in a VM with the same outcome.I've included
doc/build_win.rst
which should explain everything in a little more detail. I'm not sure if this documentation does fit inbuild.rst
but am happy to plug it on the end if it is where you think it belongs (I see you have a place holder there). The note "about the installer" would probably reside better on the releases page.python setup.py nsis
does allow specifying a different script or install location for makensis if you ever needed it but the defaults will work fine with the current script and any default install of NSIS 3.Another approach I tried but haven't included in the documentation is to set your ghini repo (or a copy of it) on the host machine as a shared folder so you can do all the git actions on the host and have no need to install it on the VM. Then download the pyGTK, Python and NSIS installers on the host and place them in a shared folder also. When you fire up the VM install the dependencies from this shared folder, open a command prompt and using something like
E:
cd ghini.desktop
change to the repo then runscripts\build.bat
from there (taking a snapshot at that point). This way you don't need to enable a network adaptor, producing further installers becomes quite trivial (fire up the VM with the command prompt in place, run the script and power off) and the installer anddist
folder are available to the host machine without any need to manually copy anything.