mirror of
https://github.com/arsenetar/dupeguru.git
synced 2024-11-14 11:39:03 +00:00
Andrew Senetar
29fbc7553d
- Update package.py to integrate NSIS for windows - Update makefile to deal with a few additional windows issues - Add Windows.md to contain specific windows instructions, if we want this can be merged with README.md - Minor formatting update to setup.nsi Ref #393
1.3 KiB
1.3 KiB
How to build dupeGuru for Windows
Prerequisites
- [Python 3.4+][python]
- nsis (for installer creation)
With build.py (preferred)
$ cd <dupeGuru directory>
$ git submodule init
$ git submodule update
$ py -3.5 -m venv .\env
$ .\env\Scripts\activate
$ pip install -r requirements.txt -r requirements-windows.txt
$ python build.py
$ python run.py
With makefile
It is possible to build dupeGuru with the makefile on windows using msys2. There are a few additional considerations:
- Install PyQt5 globally
- pass the correct value for PYTHON to the makefile if not on the path as python3
- Install PyQt5 & cx-Freeze with requirements-windows.txt into the venv
Then the following should work
$ make PYTHON='py -3.5'
$ make run
Generate Windows Installer Packages
You need to use the respective x86 or x64 version of python to build the 32 bit and 64 bit versions. The build scripts will automatically detect the python architecture for you. When using build.py make sure the resulting python works before continuing to package.py.
$ python package.py
$ python package.py --installer_windows
Running tests
The complete test suite can be run with tox just like on linux.