Skip to content

Commit 6848739

Browse files
committed
Merge bitcoin/bitcoin#26334: Add Signet and testnet4 launch shortcuts for Windows
cfd03de Add Testnet4 launch shortcut for Windows (Sjors Provoost) 77b2923 Add Signet launch shortcut for Windows (Sjors Provoost) Pull request description: This makes it easier to launch Signet and testnet4 on Windows. Follows the same pattern as testnet. Before: <img width="766" alt="testnet" src="https://user-images.githubusercontent.com/10217/196468934-ee29d129-871b-4612-bde4-842f191403a7.png"> After: <img width="500" alt="signet1" src="https://user-images.githubusercontent.com/10217/220358057-d9efc532-272c-45e7-81fa-3a52f58a0f29.png"> <img width="527" alt="signet2" src="https://user-images.githubusercontent.com/10217/220358067-62b3b76f-604a-4163-9d35-c903fff29df0.png"> (the testnet4 icon is the same as testnet3, not in the above screenshot) ACKs for top commit: achow101: ACK cfd03de laanwj: ACK cfd03de TheCharlatan: ACK cfd03de Tree-SHA512: 9a43ab55b341cacbfc4e891bf192946ee808f776c622906a2e5628e2b59cb3dd87b089dc3a8d08717d01ff136063ed35f3049d516c7f477047f8f3f620fc8b2e
2 parents 9b0e259 + cfd03de commit 6848739

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

share/setup.nsi.in

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ Section -post SEC0001
9595
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
9696
CreateDirectory $SMPROGRAMS\$StartMenuGroup
9797
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\$(^Name).lnk" $INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@
98-
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\@PACKAGE_NAME@ (testnet, 64-bit).lnk" "$INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@" "-testnet" "$INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@" 1
98+
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\@PACKAGE_NAME@ (testnet).lnk" "$INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@" "-testnet" "$INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@" 1
99+
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\@PACKAGE_NAME@ (test signet).lnk" "$INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@" "-signet" "$INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@" 2
100+
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\@PACKAGE_NAME@ (testnet4).lnk" "$INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@" "-testnet4" "$INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@" 3
99101
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\Uninstall $(^Name).lnk" $INSTDIR\uninstall.exe
100102
!insertmacro MUI_STARTMENU_WRITE_END
101103
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayName "$(^Name)"
@@ -140,7 +142,9 @@ Section -un.post UNSEC0001
140142
DeleteRegKey HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)"
141143
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\Uninstall $(^Name).lnk"
142144
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\$(^Name).lnk"
143-
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\@PACKAGE_NAME@ (testnet, 64-bit).lnk"
145+
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\@PACKAGE_NAME@ (testnet).lnk"
146+
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\@PACKAGE_NAME@ (testnet4).lnk"
147+
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\@PACKAGE_NAME@ (test signet).lnk"
144148
Delete /REBOOTOK "$SMSTARTUP\Bitcoin.lnk"
145149
Delete /REBOOTOK $INSTDIR\uninstall.exe
146150
Delete /REBOOTOK $INSTDIR\debug.log

src/qt/res/bitcoin-qt-res.rc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
IDI_ICON1 ICON DISCARDABLE "icons/bitcoin.ico"
22
IDI_ICON2 ICON DISCARDABLE "icons/bitcoin_testnet.ico"
3+
IDI_ICON3 ICON DISCARDABLE "icons/bitcoin_signet.ico"
4+
IDI_ICON4 ICON DISCARDABLE "icons/bitcoin_testnet.ico" // testnet4
35

46
#include <windows.h> // needed for VERSIONINFO
57
#include "../../clientversion.h" // holds the needed client version information

src/qt/res/icons/bitcoin_signet.ico

43.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)