Skip to content

Commit 1e6ac4c

Browse files
committed
Updated setup_cx.py, works now! Minor fix in imports
1 parent b37e656 commit 1e6ac4c

File tree

4 files changed

+5
-14
lines changed

4 files changed

+5
-14
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,9 @@ Or run directly with:
2727

2828
$ python3 par2deep
2929

30-
Alternatively, if you have installed the `cx_Freeze` package, you can generate an msi package for Windows. Adapt `setup_cx.py` to suit your needs (include the `par2` executable and, most importantly, the icon of your choice) and then build the `.msi` file in `/dist`:
30+
Alternatively, if you have installed the `cx_Freeze` package, you can generate an msi package for Windows. Adapt `setup_cx.py` to suit your needs (most importantly, the icon of your choice) and then build the `.msi` file in `/dist`:
3131

3232
$ python3 setup_cx.py bdist_msi
33-
34-
Note this has not been tested since v1.0.5!
3533

3634
## Usage
3735

par2deep.ico

66.1 KB
Binary file not shown.

par2deep/par2deep.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import sys,struct,ctypes,os,subprocess,re,glob,shutil
22
from configargparse import ArgParser
3-
from send2trash import send2trash
3+
from Send2Trash import send2trash
44

55
'''
66
first, init disk state.

setup_cx.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,15 @@
11
from cx_Freeze import setup, Executable
22
import sys,os.path,glob
33

4-
VERSION = '1.9.0'
4+
VERSION = '1.9.4'
55
NAME = 'par2deep'
66
DESCRIPTION = "Produce, verify and repair par2 files recursively."
77

8-
PYTHON_INSTALL_DIR = os.path.dirname(os.path.dirname(os.__file__))
9-
#os.environ['TCL_LIBRARY'] = os.path.join(PYTHON_INSTALL_DIR, 'tcl', 'tcl8.6')
10-
#os.environ['TK_LIBRARY'] = os.path.join(PYTHON_INSTALL_DIR, 'tcl', 'tk8.6')
11-
128
exe_options = {
139
'include_files':[
14-
#os.path.join(PYTHON_INSTALL_DIR, 'DLLs', 'tk86t.dll'),
15-
#os.path.join(PYTHON_INSTALL_DIR, 'DLLs', 'tcl86t.dll'),
16-
'phpar2.exe',
1710
NAME+'.ico',
18-
] + glob.glob("par2deep/*.py"),
19-
'packages': ["configargparse","PyQt5.QtCore","PyQt5.QtGui", "PyQt5.QtWidgets", "Send2Trash", "tqdm"], #adding tqdm causes every installed pip package to be included...
11+
] + glob.glob("par2deep/*.py") + glob.glob("par2deep/libpar2.*"),
12+
'packages': ["configargparse","pyqt5", "Send2Trash", "tqdm"], #adding tqdm causes every installed pip package to be included...
2013
}
2114

2215
shortcut_table = [

0 commit comments

Comments
 (0)