forked from kliment/Printrun
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildinstructions.txt
54 lines (48 loc) · 1.43 KB
/
buildinstructions.txt
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
48
49
50
51
52
53
setup on osx:
(install python 3.6)
(install python extension compile environment, this is automagically done if you have xcode)
(install git)
git clone http://github.com/kliment/Printrun.git
cd Printrun
git pull
python3 -m venv v3
. ./v3/bin/activate
pip install --upgrade pip
pip install --upgrade setuptools
pip install cffi
pip install -r requirements.txt
pip install cython
python setup.py build_ext --inplace
for running:
python pronterface.py
for packaging:
pip install pyinstaller
pyi-makespec -F --add-data images/\*:images --add-data \*.png:. --add-data \*.ico:. -w -i P-face.icns pronterface.py
rm -rf dist
pyinstaller --clean pronterface.spec -y
(edit .plist file to add:
<key>NSAppSleepDisabled</key>
<true/>
)
(optional) codesign -s identityname dist/pronterface.app --deep
setup on windows:
(install python 3.6)
(install python extension compile environment, see https://wiki.python.org/moin/WindowsCompilers )
(install git)
git clone http://github.com/kliment/Printrun.git
cd Printrun
git pull
\path\to\python3\python -m venv v3
v3\Scripts\activate
pip install --upgrade pip
pip install --upgrade setuptools
pip install cffi
pip install -r requirements.txt
pip install cython
python setup.py build_ext --inplace
for running:
python pronterface.py
for packaging:
pip install pyinstaller
pyi-makespec -F --add-data images/*;images --add-data *.png;. --add-data *.ico;. -w -i pronterface.ico pronterface.py
pyinstaller --clean pronterface.spec -y