-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace pyinstaller with cx-freeze (#7)
* create setup.py * update readme * modify setup.py * use latest version * include missing files * fix incorrect order * update README * add jpeg to allowed extensions * fix console
- Loading branch information
1 parent
26cb192
commit 7353465
Showing
6 changed files
with
110 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,14 +9,20 @@ Simple Python tool for merging PDF files on a local machine. | |
```bash | ||
git clone [email protected]:lukaszKielar/merge-pdfs.git | ||
cd merge-pdfs | ||
|
||
python -m venv ./.venv | ||
|
||
# adding --pre due to black version https://github.com/microsoft/vscode-python/issues/5171 | ||
pipenv install --pre | ||
pipenv install --dev | ||
``` | ||
|
||
## Building process | ||
|
||
### Create installer | ||
|
||
```bash | ||
python setup.py bdist_msi | ||
``` | ||
|
||
### Create executable | ||
|
||
```bash | ||
pyinstaller --noconsole --onefile --windowed --name MergePDFs .\merge_pdfs\gui\app.py | ||
python setup.py build | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import os | ||
import sys | ||
|
||
import PyQt5 | ||
from cx_Freeze import Executable, setup | ||
|
||
base = "Win32GUI" if sys.platform == "win32" else None | ||
include_files = [ | ||
os.path.join(os.path.dirname(PyQt5.__file__), "Qt5", "plugins"), | ||
"c:\windows\syswow64\MSVCR100.dll", | ||
"c:\windows\syswow64\MSVCP100.dll", | ||
] | ||
|
||
setup( | ||
name="merge_pdfs", | ||
version="0.0.1", | ||
author="Lukasz Kielar", | ||
description="Tool for merging PDF files without sending them over the Network", | ||
executables=[Executable("merge_pdfs/gui/app.py", base=base)], | ||
options={ | ||
"build_exe": { | ||
"packages": ["PyQt5.QtCore", "PyQt5.QtGui", "PyQt5.QtWidgets"], | ||
"include_files": include_files, | ||
} | ||
}, | ||
) |