-
-
Notifications
You must be signed in to change notification settings - Fork 421
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modified windows installation instructions for dockerized version
- Loading branch information
Showing
3 changed files
with
56 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|
||
|
||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.