Add envsetup.sh build-window-binary.sh for building windows 32 binary
This commit is contained in:
parent
c111544e12
commit
7ff5f77484
1
build-tools/.gitignore
vendored
1
build-tools/.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
*.spec
|
||||
build
|
||||
dist
|
||||
pyinstaller
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
#!/bin/bash
|
||||
pyinstaller --hidden-import=xml \
|
||||
|
||||
python pyinstaller/pyinstaller.py --hidden-import=xml \
|
||||
--hidden-import=xml.etree \
|
||||
--hidden-import=xml.etree.ElementTree \
|
||||
--hidden-import=lxml.etree \
|
||||
--hidden-import=json \
|
||||
--hidden-import=numpy \
|
||||
--hidden-import=numpy \
|
||||
-D -F -n labelImg -c "../labelImg.py" -p ../libs
|
||||
|
||||
28
build-tools/build-windows-binary.sh
Executable file
28
build-tools/build-windows-binary.sh
Executable file
@ -0,0 +1,28 @@
|
||||
#!/bin/sh
|
||||
|
||||
#OS Ubuntu 14.04
|
||||
#Pacakges
|
||||
#> pyinstaller (2.1)
|
||||
#> wine (1.6.2)
|
||||
#> virtual-wine (0.1)
|
||||
#> python-2.7.8.msi
|
||||
#> pywin32-218.win32-py2.7.exe
|
||||
|
||||
## tool to install on Ubuntu
|
||||
#$ sudo apt-get install pyinstaller
|
||||
#$ sudo apt-get install wine
|
||||
|
||||
wget "https://www.python.org/ftp/python/2.7.8/python-2.7.8.msi"
|
||||
wget "http://downloads.sourceforge.net/project/pywin32/pywin32/Build%20218/pywin32-218.win32-py2.7.exe?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fpywin32%2Ffiles%2Fpywin32%2FBuild%2520218%2F&ts=1359740579&use_mirror=netcologne"
|
||||
|
||||
### Clone a repo to create virtual wine env
|
||||
git clone https://github.com/htgoebel/virtual-wine.git
|
||||
apt-get install scons
|
||||
./virtual-wine/vwine-setup venv_wine
|
||||
|
||||
#### Active virutal env
|
||||
. venv_wine/bin/activate
|
||||
|
||||
### Use wine to install packages to virtual env
|
||||
wine start python-2.7.8.msi
|
||||
wine pywin32-218.win32-py2.7.exe
|
||||
5
build-tools/envsetup.sh
Executable file
5
build-tools/envsetup.sh
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ ! -e "pyinstaller" ]; then
|
||||
git clone https://github.com/pyinstaller/pyinstaller
|
||||
fi
|
||||
Loading…
x
Reference in New Issue
Block a user