Skip to content

Commit

Permalink
Modified windows installation instructions for dockerized version
Browse files Browse the repository at this point in the history
  • Loading branch information
harelba committed Apr 8, 2017
1 parent f8bbcea commit b47417a
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 48 deletions.
56 changes: 56 additions & 0 deletions create-windows-setup-instructions
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@

# 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




41 changes: 0 additions & 41 deletions dist/create-windows-setup-instructions

This file was deleted.

7 changes: 0 additions & 7 deletions dist/pre-requisites

This file was deleted.

0 comments on commit b47417a

Please sign in to comment.