-
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.
Remove legacy make-icns script and add new macOS icon generation scri…
…pt with installer configuration
- Loading branch information
Showing
3 changed files
with
97 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "Build NSIS Script", | ||
"type": "shell", | ||
"command": "makensis", | ||
"args": [ | ||
"/V3", | ||
"${file}" | ||
], | ||
"group": "build" | ||
}, | ||
{ | ||
"label": "Build NSIS Script (strict)", | ||
"type": "shell", | ||
"command": "makensis", | ||
"args": [ | ||
"/V3", | ||
"/WX", | ||
"${file}" | ||
], | ||
"group": "build" | ||
} | ||
] | ||
} |
0
scripts/make-icns.sh → scripts/make-icns-macos.sh
100755 → 100644
File renamed without changes.
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,71 @@ | ||
# Define version variable | ||
!define VERSION "1.0.0" | ||
|
||
# Define program name variable | ||
!define PROGRAM_NAME "visParaflow" | ||
|
||
# Define publisher name variable | ||
!define PUBLISHER_NAME "visParaflow" | ||
|
||
# Name of the installer | ||
Outfile "${PROGRAM_NAME}-${VERSION}-setup.exe" | ||
|
||
# Set the installer icon | ||
Icon "..\res\workflow.ico" | ||
|
||
# Default installation directory | ||
InstallDir $PROGRAMFILES64\${PROGRAM_NAME}\${VERSION} | ||
|
||
# Use registry key to remember the installation directory | ||
InstallDirRegKey HKCU "Software\${PROGRAM_NAME}\${VERSION}" "Install_Dir" | ||
|
||
# Page settings | ||
Page directory | ||
Page instfiles | ||
Page uninstConfirm | ||
|
||
# Section for the installation | ||
Section "Install" | ||
# Set output path to the installation directory | ||
SetOutPath $INSTDIR | ||
|
||
# Include files to be installed | ||
File /r /x "*.pdb" "..\build\release\bin\*.*" | ||
|
||
# Write the installation path to the registry | ||
WriteRegStr HKCU "Software\${PROGRAM_NAME}\${VERSION}" "Install_Dir" "$INSTDIR" | ||
|
||
# Create a shortcut in the Start Programs menu | ||
CreateDirectory "$SMPROGRAMS\${PROGRAM_NAME}" | ||
CreateShortCut "$SMPROGRAMS\${PROGRAM_NAME}\${PROGRAM_NAME}.lnk" "$INSTDIR\${PROGRAM_NAME}.exe" | ||
|
||
# Write uninstall information to the registry | ||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PROGRAM_NAME}" "DisplayName" "${PROGRAM_NAME} ${VERSION}" | ||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PROGRAM_NAME}" "UninstallString" "$INSTDIR\uninstall.exe" | ||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PROGRAM_NAME}" "InstallLocation" "$INSTDIR" | ||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PROGRAM_NAME}" "DisplayVersion" "${VERSION}" | ||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PROGRAM_NAME}" "Publisher" "${PUBLISHER_NAME}" | ||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PROGRAM_NAME}" "DisplayIcon" "$INSTDIR\workflow.ico" | ||
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PROGRAM_NAME}" "NoModify" 1 | ||
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PROGRAM_NAME}" "NoRepair" 1 | ||
|
||
# Write the uninstaller | ||
WriteUninstaller "$INSTDIR\uninstall.exe" | ||
SectionEnd | ||
|
||
# Section for uninstallation | ||
Section "Uninstall" | ||
# Remove the installed files | ||
Delete "$INSTDIR\*.*" | ||
|
||
# Remove the shortcut from the Start Programs menu | ||
Delete "$SMPROGRAMS\${PROGRAM_NAME}\${PROGRAM_NAME}.lnk" | ||
RMDir "$SMPROGRAMS\${PROGRAM_NAME}" | ||
|
||
# Remove the registry entries | ||
DeleteRegKey HKCU "Software\${PROGRAM_NAME}\${VERSION}" | ||
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PROGRAM_NAME}" | ||
|
||
# Remove the installation directory | ||
RMDir "$INSTDIR" | ||
SectionEnd |