diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | create-windows-setup-instructions | 121 |
2 files changed, 66 insertions, 56 deletions
@@ -10,3 +10,4 @@ win_output win_build packages .idea/ +dist/windows/ diff --git a/create-windows-setup-instructions b/create-windows-setup-instructions index a906b3d..5abf6a7 100644 --- a/create-windows-setup-instructions +++ b/create-windows-setup-instructions @@ -1,56 +1,65 @@ -
-# Alpha version - process is working, instructions not fully tested for minor details yet.
-
-Instructions for creating a windows package for q:
-
-The installation is based on a wine docker container.
-
-fetch all files from https://github.com/harelba/packages-for-q/tree/master/artifactory-for-packaging into dist/windows folder.
-
-extract pyinstaller2.1 zip file inside the folder.
-
-d=`pwd`
-cid1=`docker run -d -v ${d}:/q -e VNC_PASSWORD=newPW -p 5900:5900 suchja/x11server`
-cid2=`docker run -d --rm -i --link ${cid1}:xserver --volumes-from ${cid1} suchja/wine:latest /bin/bash`
-
-sleep 1
-
-function kill_container {
- tmp=`docker kill ${cid1} ${cid2}`
-}
-trap kill_container EXIT
-
-docker exec -it ${cid2} /bin/bash
-
-
-inside the docker container prompt:
-
- export DISPLAY=xserver:0
-
- wine wineboot --init
-
- cd ~/.wine/dosdevices/
-
- ln -s /q "q:"
-
- wine msiexec /i q:\\dist\\windows\\python-2.7.13.msi
-
- wine q:\\dist\\windows\\pywin32-219.win32-py2.7.exe
-
- mkdir ~/.wine/drive_c/q-build-environment
-
- cp -r /q/dist/windows/PyInstaller2.1 ~/.wine/drive_c/q-build-environment/
-
- wine q:\\dist\\windows\\nsis-2.46-setup.exe - install to c:\\q-build-environment\\nsis
-
- wine c:\\python27\\python.exe c:\\q-build-environment\\PyInstaller-2.1\\pyinstaller.py -F --distpath=win_output --workpath=win_build q:\\bin\\q
-
- wine c:\\q-build-environment\\nsis\\makensis.exe -DVERSION=1.6.2.0 q:\\dist\\q-TextAsData-with-path.nsi
-
-run the installation file and check that the install works properly:
-
- wine setup.exe
-
-
-
-
+ +# Alpha version - process is working, instructions not fully tested for minor details yet. + +Instructions for creating a windows package for q: + +The installation is based on a wine docker container. + +fetch all files from https://github.com/harelba/packages-for-q/tree/master/artifactory-for-packaging into dist/windows folder. + +extract pyinstaller2.1 zip file inside the folder. + +d=`pwd` +cid1=`docker run -d -v ${d}:/q -e VNC_PASSWORD=newPW -p 5900:5900 suchja/x11server` +cid2=`docker run -d --rm -i --link ${cid1}:xserver --volumes-from ${cid1} suchja/wine:latest /bin/bash` + +sleep 1 + +function kill_container { + tmp=`docker kill ${cid1} ${cid2}` +} +trap kill_container EXIT + +docker exec -it ${cid2} /bin/bash + + +inside the docker container prompt: + + export DISPLAY=xserver:0 + + wine wineboot --init + + cd ~/.wine/dosdevices/ + + ln -s /q "q:" + + wine msiexec /i q:\\dist\\windows\\python-2.7.13.msi + + wine q:\\dist\\windows\\pywin32-219.win32-py2.7.exe + + mkdir ~/.wine/drive_c/q-build-environment + + cp -r /q/dist/windows/PyInstaller-2.1 ~/.wine/drive_c/q-build-environment/ + + cd /q/dist + + wine q:\\dist\\windows\\nsis-2.46-setup.exe - install to c:\\q-build-environment\\nsis + + wine c:\\python27\\python.exe c:\\q-build-environment\\PyInstaller-2.1\\pyinstaller.py -F --distpath=win_output --workpath=win_build q:\\bin\\q + + ### Don't forget to change the version in the command below: + + wine c:\\q-build-environment\\nsis\\makensis.exe -DVERSION=1.6.2.0 q:\\dist\\q-TextAsData-with-path.nsi + +run the installation file and check that the install works properly: + + wine setup.exe + +move the installation to the packages folder: + + mv /q/dist/setup.exe /q/packages/setup-q-<version>.exe + +exit from the docker container + + + |