Clearer instructions on how to build the Windows release. #9

This commit is contained in:
James Bowman 2019-03-09 17:11:44 -08:00
parent 651dec5ac2
commit d550946fc0
1 changed files with 12 additions and 4 deletions

View File

@ -19,8 +19,8 @@ there are drivers for
Full documentation is at
[i2cdriver.com](http://i2cdriver.com).
How to release
--------------
For developers: How to make a release
-------------------------------------
To release Python:
@ -35,12 +35,20 @@ On Linux cross-compile ``i2ccl``:
cd c
make -f win32/Makefile
On Windows build the GUI exeutable:
On Windows build the GUI executable using ``pyinstaller``:
cd python\samples
pyinstaller --onefile --windowed --icon=../../images/i2cdriver.ico i2cgui.py
This builds the executable in ``python\samples\dist\i2cgui.exe``.
The Windows installer is built with NSIS (Nullsoft Scriptable Install System). Download and install it.
Copy the two executables ``i2ccl.exe`` and ``i2cgui.exe`` into ``nsis/``.
Then build the installer with NSIS:
cd nsis
go.bat
"C:\Program Files\NSIS\makensis.exe" i2cdriver.nsi
The script ``go.bat`` in ``nsis`` has an example complete flow.