Skip to content

Commit 87c99d0

Browse files
committed
bring build system up to date and add icon
1 parent add9810 commit 87c99d0

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

build_all.sh

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
1-
#!/bin/zsh
1+
#!/bin/bash
2+
set -e
23
# This script builds Linux, Windows and MacOS Versions of iqtreeGUI using cdrx/pyinstallers Docker containers.
34

45

56
#Windows build: requires Docker
6-
docker run -t --rm -v "$(pwd):/src/" cdrx/pyinstaller-windows:python3 "apt-get update -y && apt-get install -y python3-tk && pyinstaller --clean -y --dist ./dist/windows --workpath /tmp *.spec"
7+
#docker run -t --rm -v "$(pwd):/src/" cdrx/pyinstaller-windows:python3 "apt-get update -y && apt-get install -y python3-tk && pyinstaller --clean -y --dist ./dist/windows --workpath /tmp *.spec"
78

89
#Linux Build: requires Docker with custom command
9-
docker run --rm -v "$(pwd):/src/" cdrx/pyinstaller-linux:python3 "apt-get update -y && apt-get install -y python3-tk && pyinstaller --clean -y --dist ./dist/linux --workpath /tmp *.spec"
10+
#docker run --rm -v "$(pwd):/src/" cdrx/pyinstaller-linux:python3 "apt-get update -y && apt-get install -y python3-tk && pyinstaller --clean -y --dist ./dist/linux --workpath /tmp *.spec"
11+
docker run --rm -v "$(pwd):/data" reslp/pyinstaller:5.1 pyinstaller --clean -y --dist ./dist/linux *.spec
12+
echo "Linux build done"
1013

1114
pyinstaller iqtreegui_mac.spec
12-
cp -r tcltk_lib/lib dist/iqtreeGUI.app/Contents/
15+
echo "MacOS build done"
16+
# not necessary anymore with pyinstaller 5.1:
17+
#cp -r tcltk_lib/lib dist/iqtreeGUI.app/Contents/

icon/iqtreegui.icns

49.4 KB
Binary file not shown.

iqtreegui_mac.spec

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import sys
44
block_cipher = None
55

66
a = Analysis(['iqtreegui.py'],
7-
pathex=['/Users/sinnafoch/Dropbox/Philipp/iqtreegui3'],
7+
pathex=['/Users/sinnafoch/Dropbox/Philipp/iqtreeGUI'],
88
binaries=[],
99
datas=[("./config.txt","."), ("./icon/iqtreegui.gif","./icon/")],
1010
hiddenimports=[],
@@ -37,4 +37,4 @@ if sys.platform == 'darwin':
3737
icon='./icon/iqtreegui.icns',
3838
bundle_identifier=None,
3939
info_plist={'NSHighResolutionCapable': 'True'},
40-
)
40+
)

0 commit comments

Comments
 (0)