aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/build-bbfreeze.py
blob: 8dd9d82144216ba64918dc2d5dbe0852c68bd85b (plain)
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
#!/usr/bin/env python

build_version = "1.3.1"
python_path = "C:\\Python27\\"

import os
import glob
import shutil

from bbfreeze import Freezer

shutil.copy(python_path + "Scripts\livestreamer-script.py", python_path + "Scripts\livestreamer.py")

includes = ("pbs", "requests", "re", "xml", "xml.dom.minidom",
            "zlib", "ctypes", "argparse", "hmac", "tempfile",
            "os", "sys", "subprocess", "getpass", "msvcrt",
            "urllib", "urlparse", "pkgutil", "imp")

dst = "..\\build-win32\\livestreamer-bbfreeze-" + build_version + "\\"

f = Freezer(dst, includes=includes)
f.include_py = False
f.addScript(python_path + "Scripts\livestreamer.py", gui_only=False)

f()