Skip to content

Commit 4374c77

Browse files
committed
Adding cross-platform binary compilation support, as well as Travis CI tests.
- Added initial .travis.yml for all three platforms - Applied a simple fix to ProperTree.command for pyinstaller failing to load/bundle all dependencies
1 parent 39ba64c commit 4374c77

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.travis.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# https://docs.travis-ci.com/user/languages/python/
2+
language: python
3+
matrix:
4+
include:
5+
- name: "Python 3.7 on Linux"
6+
python: 3.7
7+
dist: xenial
8+
- name: "Python 3.7 on macOS"
9+
os: osx
10+
osx_image: xcode10.2
11+
language: shell
12+
- name: "Python 3.7 on Windows"
13+
os: windows
14+
language: shell
15+
before_install: choco install python
16+
env: PATH=/c/Python37:/c/Python37/Scripts:$PATH
17+
install:
18+
- pip3 install pyinstaller
19+
script:
20+
- pyinstaller \
21+
--clean \
22+
--windowed \
23+
--onedir \
24+
--onefile \
25+
--add-data Scripts:Scripts \
26+
ProperTree.command

ProperTree.command

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python
22
import sys, os, binascii, base64
3+
import queue, json, ctypes # Fix for pyinstaller failing to bundle dependencies
34
try:
45
import Tkinter as tk
56
import ttk

0 commit comments

Comments
 (0)