Skip to content

Commit 103b837

Browse files
committed
[chore] rename packaged executable to CrossDesk.exe in NSIS and portable artifacts
1 parent f7f1724 commit 103b837

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ jobs:
294294
run: |
295295
$portableDir = "${{ github.workspace }}\portable"
296296
New-Item -ItemType Directory -Force -Path $portableDir
297-
Copy-Item "${{ github.workspace }}\build\windows\x64\release\crossdesk.exe" $portableDir
297+
Copy-Item "${{ github.workspace }}\build\windows\x64\release\crossdesk.exe" "$portableDir\CrossDesk.exe"
298298
Compress-Archive -Path "$portableDir\*" -DestinationPath "${{ github.workspace }}\crossdesk-win-x64-portable-${{ env.VERSION_NUM }}.zip"
299299
300300
- name: Upload artifact

scripts/windows/nsis_script.nsi

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ ShowInstDetails show
4646

4747
Section "MainSection"
4848
; Check if CrossDesk is running
49-
StrCpy $1 "crossdesk.exe"
49+
StrCpy $1 "CrossDesk.exe"
5050

5151
nsProcess::_FindProcess "$1"
5252
Pop $R0
@@ -72,7 +72,7 @@ installApp:
7272
SetOverwrite ifnewer
7373

7474
; Main application executable path
75-
File /oname=crossdesk.exe "..\..\build\windows\x64\release\crossdesk.exe"
75+
File /oname=CrossDesk.exe "..\..\build\windows\x64\release\crossdesk.exe"
7676

7777
; Write uninstall information
7878
WriteUninstaller "$INSTDIR\uninstall.exe"
@@ -82,23 +82,23 @@ installApp:
8282
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${UNINSTALL_REG_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
8383
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${UNINSTALL_REG_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
8484
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${UNINSTALL_REG_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
85-
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${UNINSTALL_REG_KEY}" "DisplayIcon" "$INSTDIR\crossdesk.exe"
85+
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${UNINSTALL_REG_KEY}" "DisplayIcon" "$INSTDIR\CrossDesk.exe"
8686
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${UNINSTALL_REG_KEY}" "NoModify" 1
8787
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${UNINSTALL_REG_KEY}" "NoRepair" 1
8888
WriteRegStr HKCU "Software\${PRODUCT_NAME}" "InstallDir" "$INSTDIR"
8989
SectionEnd
9090

9191
Section -AdditionalIcons
9292
; Desktop shortcut
93-
CreateShortCut "$DESKTOP\${PRODUCT_NAME}.lnk" "$INSTDIR\crossdesk.exe" "" "$INSTDIR\crossdesk.exe"
93+
CreateShortCut "$DESKTOP\${PRODUCT_NAME}.lnk" "$INSTDIR\CrossDesk.exe" "" "$INSTDIR\CrossDesk.exe"
9494

9595
; Start menu shortcut
96-
CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}.lnk" "$INSTDIR\crossdesk.exe" "" "$INSTDIR\crossdesk.exe"
96+
CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}.lnk" "$INSTDIR\CrossDesk.exe" "" "$INSTDIR\CrossDesk.exe"
9797
SectionEnd
9898

9999
Section "Uninstall"
100100
; Check if CrossDesk is running
101-
StrCpy $1 "crossdesk.exe"
101+
StrCpy $1 "CrossDesk.exe"
102102

103103
nsProcess::_FindProcess "$1"
104104
Pop $R0
@@ -121,7 +121,7 @@ cancelUninstall:
121121

122122
uninstallApp:
123123
; Delete main executable and uninstaller
124-
Delete "$INSTDIR\crossdesk.exe"
124+
Delete "$INSTDIR\CrossDesk.exe"
125125
Delete "$INSTDIR\uninstall.exe"
126126

127127
; Recursively delete installation directory
@@ -144,5 +144,5 @@ SectionEnd
144144

145145
; ------ Functions ------
146146
Function LaunchApp
147-
Exec "$INSTDIR\crossdesk.exe"
147+
Exec "$INSTDIR\CrossDesk.exe"
148148
FunctionEnd

0 commit comments

Comments
 (0)