Skip to content

Commit

Permalink
Add setup.py & icon.ico
Browse files Browse the repository at this point in the history
  • Loading branch information
ClumsyLee committed Sep 7, 2015
1 parent 873d3f1 commit 383f568
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
Binary file added src/icon.ico
Binary file not shown.
22 changes: 22 additions & 0 deletions src/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
from cx_Freeze import setup, Executable

# Dependencies are automatically detected, but it might need
# fine tuning.
buildOptions = dict(packages=['keyring'],
excludes=[],
include_files=['config.yml'],
icon='icon.ico',
compressed=True)

import sys
base = 'Win32GUI' if sys.platform=='win32' else None

executables = [
Executable('application.py', base=base, targetName='net_dot_tsinghua.exe')
]

setup(name='net.tsinghua',
version = '0.1',
description = 'A cross-platform auto-login utility for tsinghua students.',
options = dict(build_exe = buildOptions),
executables = executables)

0 comments on commit 383f568

Please sign in to comment.