Skip to content

Commit

Permalink
pynsist: use an older Python for Windows 10
Browse files Browse the repository at this point in the history
Newer versions of Python + PyQt5 don't work on Windows 10.

Related-to: takluyver/pynsist#176
Resolves: git-cola#1227
  • Loading branch information
davvid committed May 24, 2022
1 parent 2144791 commit 74c803f
Showing 1 changed file with 25 additions and 23 deletions.
48 changes: 25 additions & 23 deletions pynsist.cfg
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
# https://pynsist.readthedocs.io/en/latest/cfgfile.html

[Application]
name = git-cola
version = 3.12.0
entry_point = cola.main:shortcut_launch
icon = cola/icons/git-cola.ico
extra_preamble = contrib/win32/pynsist-preamble.py
name=git-cola
version=3.12.0
entry_point=cola.main:shortcut_launch
icon=cola/icons/git-cola.ico
extra_preamble=contrib/win32/pynsist-preamble.py

# We might want to pursue shell integration, which would at minimum require a
# custom template. https://pynsist.readthedocs.io/en/latest/design.html
# [Build]
# nsi_template = contrib/win32/pynsist-template.nsi
# nsi_template=contrib/win32/pynsist-template.nsi

[Python]
version = 3.9.13
bitness = 64
format = bundled
version=3.7.9
bitness=64
include_msvcrt=true

[Shortcut git-dag]
entry_point = cola.dag:shortcut_launch
icon = cola/icons/git-cola.ico
extra_preamble = contrib/win32/pynsist-preamble.py
entry_point=cola.dag:shortcut_launch
icon=cola/icons/git-cola.ico
extra_preamble=contrib/win32/pynsist-preamble.py

[Command git-cola]
entry_point = cola.main:winmain
extra_preamble = contrib/win32/pynsist-preamble.py
entry_point=cola.main:winmain
extra_preamble=contrib/win32/pynsist-preamble.py

[Command git-cola-sequence-editor]
entry_point = cola.sequenceeditor:winmain
extra_preamble = contrib/win32/pynsist-preamble.py
entry_point=cola.sequenceeditor:winmain
extra_preamble=contrib/win32/pynsist-preamble.py

[Command git-dag]
entry_point = cola.dag:winmain
extra_preamble = contrib/win32/pynsist-preamble.py
entry_point=cola.dag:winmain
extra_preamble=contrib/win32/pynsist-preamble.py

# To identify unused DLL files to exclude, we can use Process Explorer.
# https://docs.microsoft.com/en-us/sysinternals/downloads/process-explorer
Expand All @@ -44,13 +44,15 @@ extra_preamble = contrib/win32/pynsist-preamble.py
# This gives a list of necessary DLLs and the rest can be excluded.

[Include]
packages = cola
pypi_wheels = PyQt5==5.15.6
pywin32==227
packages=cola
pypi_wheels= packaging==21.3
PyQt5==5.14.2
PyQt5-sip==12.7.2
pywin32==304
QtPy==2.0.1
send2trash==1.8.0
files = share/
exclude = pkgs/PyQt5/Qt/bin/Qt5Bluetooth.dll
files=share/
exclude= pkgs/PyQt5/Qt/bin/Qt5Bluetooth.dll
pkgs/PyQt5/Qt/bin/Qt5DBus.dll
pkgs/PyQt5/Qt/bin/Qt5Designer.dll
pkgs/PyQt5/Qt/bin/Qt5Help.dll
Expand Down

0 comments on commit 74c803f

Please sign in to comment.