Skip to content

Commit

Permalink
Updated setup_cx.py, works now! Minor fix in imports
Browse files Browse the repository at this point in the history
  • Loading branch information
brenthuisman committed Apr 26, 2020
1 parent b37e656 commit 1e6ac4c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 14 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,9 @@ Or run directly with:

$ python3 par2deep

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`:
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`:

$ python3 setup_cx.py bdist_msi

Note this has not been tested since v1.0.5!

## Usage

Expand Down
Binary file added par2deep.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion par2deep/par2deep.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import sys,struct,ctypes,os,subprocess,re,glob,shutil
from configargparse import ArgParser
from send2trash import send2trash
from Send2Trash import send2trash

'''
first, init disk state.
Expand Down
13 changes: 3 additions & 10 deletions setup_cx.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,15 @@
from cx_Freeze import setup, Executable
import sys,os.path,glob

VERSION = '1.9.0'
VERSION = '1.9.4'
NAME = 'par2deep'
DESCRIPTION = "Produce, verify and repair par2 files recursively."

PYTHON_INSTALL_DIR = os.path.dirname(os.path.dirname(os.__file__))
#os.environ['TCL_LIBRARY'] = os.path.join(PYTHON_INSTALL_DIR, 'tcl', 'tcl8.6')
#os.environ['TK_LIBRARY'] = os.path.join(PYTHON_INSTALL_DIR, 'tcl', 'tk8.6')

exe_options = {
'include_files':[
#os.path.join(PYTHON_INSTALL_DIR, 'DLLs', 'tk86t.dll'),
#os.path.join(PYTHON_INSTALL_DIR, 'DLLs', 'tcl86t.dll'),
'phpar2.exe',
NAME+'.ico',
] + glob.glob("par2deep/*.py"),
'packages': ["configargparse","PyQt5.QtCore","PyQt5.QtGui", "PyQt5.QtWidgets", "Send2Trash", "tqdm"], #adding tqdm causes every installed pip package to be included...
] + glob.glob("par2deep/*.py") + glob.glob("par2deep/libpar2.*"),
'packages': ["configargparse","pyqt5", "Send2Trash", "tqdm"], #adding tqdm causes every installed pip package to be included...
}

shortcut_table = [
Expand Down

0 comments on commit 1e6ac4c

Please sign in to comment.