mirror of
https://github.com/arsenetar/dupeguru.git
synced 2026-01-22 14:41:39 +00:00
Update Windows Build
Fix the issues with cx_Freeze builds on newer versions of python and with newer version of PyQt5 - Update .gitignore to ignore .spec files - Update package.py to use pyInstaller instead of cx_Freeze - Update requirements-windows to have pyInstaller instead of cx_Freeze - Update setup.nsi to work with build and packaging changes - Add win_version_info.temp to build a version information file for pyInstaller as part of the package.py script
This commit is contained in:
21
setup.nsi
21
setup.nsi
@@ -34,7 +34,7 @@ SetCompressor /SOLID lzma
|
||||
!endif
|
||||
!ifndef SOURCEPATH
|
||||
!echo "SOURCEPATH is NOT defined"
|
||||
!define SOURCEPATH "build"
|
||||
!define SOURCEPATH "dist"
|
||||
!endif
|
||||
!ifndef VERSIONMAJOR | VERSIONMINOR | VERSIONPATCH | BITS | SOURCEPATH
|
||||
!error "Command line Defines missing use /DDEFINE=VALUE to define before script"
|
||||
@@ -161,12 +161,12 @@ Section "!Application" AppSec
|
||||
SetOutPath "$INSTDIR" ; set from result of installer pages
|
||||
|
||||
; Files to install
|
||||
File /r "${SOURCEPATH}\${APPNAME}-win${BITS}bit\*"
|
||||
File /r "${SOURCEPATH}\${APPNAME}-win${BITS}\*"
|
||||
|
||||
; Create Start Menu Items
|
||||
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
|
||||
CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
|
||||
CreateShortcut "$SMPROGRAMS\$StartMenuFolder\${APPNAME}.lnk" "$INSTDIR\${APPNAME}.exe"
|
||||
CreateShortcut "$SMPROGRAMS\$StartMenuFolder\${APPNAME}.lnk" "$INSTDIR\${APPNAME}-win${BITS}.exe"
|
||||
CreateShortcut "$SMPROGRAMS\$StartMenuFolder\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
|
||||
!insertmacro MUI_STARTMENU_WRITE_END
|
||||
|
||||
@@ -223,15 +223,16 @@ Section "Uninstall"
|
||||
RMDir /r "$SMPROGRAMS\$StartMenuFolder"
|
||||
|
||||
; Remove Files & Folders in Install Folder
|
||||
RMDir /r "$INSTDIR\core"
|
||||
RMDir /r "$INSTDIR\help"
|
||||
RMDir /r "$INSTDIR\imageformats"
|
||||
RMDir /r "$INSTDIR\lib"
|
||||
RMDir /r "$INSTDIR\PyQt5"
|
||||
RMDir /r "$INSTDIR\qt"
|
||||
RMDir /r "$INSTDIR\locale"
|
||||
RMDir /r "$INSTDIR\platforms"
|
||||
Delete "$INSTDIR\dupeguru.exe"
|
||||
Delete "$INSTDIR\python36.dll"
|
||||
Delete "$INSTDIR\sqlite3.dll"
|
||||
Delete "$INSTDIR\Uninstall.exe"
|
||||
Delete "$INSTDIR\*.exe"
|
||||
Delete "$INSTDIR\*.dll"
|
||||
Delete "$INSTDIR\*.pyd"
|
||||
Delete "$INSTDIR\*.zip"
|
||||
Delete "$INSTDIR\*.manifest"
|
||||
|
||||
; Remove Install Folder if empty
|
||||
RMDir "$INSTDIR"
|
||||
|
||||
Reference in New Issue
Block a user