forked from makehumancommunity/makehuman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compilePyinstaller.sh
executable file
·47 lines (36 loc) · 1.12 KB
/
compilePyinstaller.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
##
# PyInstaller build script for MakeTarget standalone by Jonas Hauquier
# Part of Makehuman (www.makehuman.org)
#
# This script builds a linux one-file executable package (might also work for
# MacOS, not tested).
# You need to download and extract pyinstaller in the pyinstaller folder
# (tested with pyinstaller 1.5.1).
# Known to work with python 2.6
# Will compress the distributable with UPX if it is installed.
#
##
pushd pyinstaller
if [[ -e maketarget/dist ]]; then
rm -R -f maketarget/dist
fi
mkdir maketarget/dist
python Configure.py
python Makespec.py --onefile --upx --name=maketarget ../maketarget-gui.py
python Build.py maketarget/maketarget.spec
if [[ ! -e ../dist ]]; then
mkdir ../dist
fi
cp maketarget/dist/maketarget ../dist
cp ../maketarget.xrc ../dist
# Copy needed resource files from svn checkout to dist/ folder
if [[ ! -e ../dist/resources ]]; then
mkdir ../dist/resources
fi
cp ../resources/*png ../dist/resources
cp ../resources/makehuman.ico ../dist/resources
cp ../../makehuman/data/3dobjs/base.obj ../dist/resources
cp ../Readme.txt ../dist
cp ../../makehuman/license.txt ../dist
popd