-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup_freeze.py
executable file
·45 lines (38 loc) · 1.34 KB
/
setup_freeze.py
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
# $Id$
# $HeadURL$
# Docs:
# http://cx-freeze.sourceforge.net/cx_Freeze.html
# http://wiki.wxpython.org/cx_freeze
# http://wiki.wxpython.org/CreatingStandaloneExecutables
from cx_Freeze import setup, Executable
import os
release_version = "VERSION_PLACEHOLDER"
if release_version[0:3] == "dev":
exe_version = '0.0.' + str(release_version[9:])
else:
exe_version = release_version
Exe_Target = Executable (
# what to build
script = "synclosure.py",
initScript = None,
targetName = "synclosure.exe",
compress = True,
copyDependentFiles = True,
appendScriptToExe = False,
appendScriptToLibrary = False,
icon = 'installer' + os.sep + 'synclosure.ico',
#copyright = 'Original code and name (C) by raphael balimann, 2004. Modifications (C) 2007 WhyAskWhy.org',
)
setup(
name = "Synclosure",
version = exe_version,
author='WhyAskWhy.org',
url='http://projects.whyaskwhy.org/projects/synclosure/',
description = "Synclosure is a RSS aggregator to flexibly download " \
"files in enclosures. It supports filter keywords, custom actions " \
"and a caching mechanism.",
options = {'build_exe':{"silent": True}},
executables = [Exe_Target]
)
# To compile, do the following:
# python setup_freeze.py build