Skip to content

Commit

Permalink
py2exe
Browse files Browse the repository at this point in the history
  • Loading branch information
yuantailing committed Jul 29, 2017
1 parent 18fe01f commit bb88b40
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,10 @@ Run in command line:
```
$ python src/tools/recovery.py [input.xlsx] [output.xlsx]
```

Distribute as `.exe` (only for Windows):

```
$ # install [py2exe](http://www.py2exe.org/)
$ python src/setup.py py2exe
```
21 changes: 21 additions & 0 deletions src/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env python
# -*- coding: UTF-8 -*-

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

from distutils.core import setup

import py2exe


setup(name='excel-password-recovery',
windows=[{'script': 'src/gui-main.py'}],
options={
'py2exe': {
'includes': ['Tkinter', 'tkFileDialog',
'tkMessageBox', 'tools']
}
},
)

0 comments on commit bb88b40

Please sign in to comment.