mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 12:59:56 -07:00
Update NSIS scripts to use unicode version of installer.
This commit is contained in:
parent
9ff7eab83b
commit
0b15515f59
7 changed files with 10 additions and 7 deletions
|
@ -8,18 +8,20 @@ TRANSLATORS:
|
||||||
english message to help you with the translation.
|
english message to help you with the translation.
|
||||||
4. Edit only the part inside the quotation marks(""). Unless you know
|
4. Edit only the part inside the quotation marks(""). Unless you know
|
||||||
what you are doing.
|
what you are doing.
|
||||||
5. Submit your changes: 1) as a pull request to the official git repo or
|
5. Save the files with utf8 encoding and BOM.
|
||||||
|
6. Submit your changes: 1) as a pull request to the official git repo or
|
||||||
2) open an issue to the bugtracker and attach them or 3) via email or
|
2) open an issue to the bugtracker and attach them or 3) via email or
|
||||||
4)the same way you provide the tranlations for qbt itself
|
4)the same way you provide the tranlations for qbt itself
|
||||||
|
|
||||||
PACKAGERS:
|
PACKAGERS:
|
||||||
|
|
||||||
You will need NSIS and upx to make the installer.
|
You will need NSIS and upx to make the installer. You need a unicode version of NSIS.
|
||||||
|
I tested with NSIS 3.0a0.
|
||||||
|
|
||||||
1. Open the options.nsi file in an editor and change line that contains
|
1. Open the options.nsi file in an editor and change line that contains
|
||||||
"!define PROG_VERSION "3.0.3"" to the version of qbittorrent you just built.
|
"!define PROG_VERSION "3.0.3"" to the version of qbittorrent you just built.
|
||||||
2. Extract the plugins found in the folder "nsis plugins" into the your
|
2. Extract the plugins found in the folder "nsis plugins" into your
|
||||||
NSIS's Plugin directory(usually C:\Program Files\NSIS\Plugins).
|
NSIS's unicode Plugin directory(usually C:\Program Files\NSIS\Plugins\x86-unicode).
|
||||||
Only the *.dll files are needed.
|
Only the *.dll files are needed.
|
||||||
3. The script you need to compile is "qbittorrent.nsi". It includes all other necessary scripts.
|
3. The script you need to compile is "qbittorrent.nsi". It includes all other necessary scripts.
|
||||||
4. The script expects the following file tree:
|
4. The script expects the following file tree:
|
||||||
|
|
|
@ -120,7 +120,7 @@ SectionEnd
|
||||||
Section $(inst_firewall)
|
Section $(inst_firewall)
|
||||||
|
|
||||||
DetailPrint $(inst_firewallinfo)
|
DetailPrint $(inst_firewallinfo)
|
||||||
nsisFirewall::AddAuthorizedApplication "$INSTDIR\qbittorrent.exe" "qBittorrent"
|
nsisFirewallW::AddAuthorizedApplication "$INSTDIR\qbittorrent.exe" "qBittorrent"
|
||||||
|
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
|
|
BIN
src/windows/nsis plugins/FindProc Unicode-source.zip
Normal file
BIN
src/windows/nsis plugins/FindProc Unicode-source.zip
Normal file
Binary file not shown.
Binary file not shown.
BIN
src/windows/nsis plugins/FindProcDLL Unicode bin.zip
Normal file
BIN
src/windows/nsis plugins/FindProcDLL Unicode bin.zip
Normal file
Binary file not shown.
|
@ -1,3 +1,4 @@
|
||||||
|
Unicode true
|
||||||
;Compress the header too
|
;Compress the header too
|
||||||
!packhdr "$%TEMP%\exehead.tmp" 'upx.exe -9 --best --ultra-brute "$%TEMP%\exehead.tmp"'
|
!packhdr "$%TEMP%\exehead.tmp" 'upx.exe -9 --best --ultra-brute "$%TEMP%\exehead.tmp"'
|
||||||
|
|
||||||
|
@ -79,4 +80,4 @@ RequestExecutionLevel admin
|
||||||
!insertmacro MUI_UNPAGE_INSTFILES
|
!insertmacro MUI_UNPAGE_INSTFILES
|
||||||
|
|
||||||
!insertmacro MUI_RESERVEFILE_LANGDLL
|
!insertmacro MUI_RESERVEFILE_LANGDLL
|
||||||
ReserveFile "${NSISDIR}\Plugins\FindProcDLL.dll"
|
ReserveFile "${NSISDIR}\Plugins\x86-unicode\FindProcDLL.dll"
|
||||||
|
|
|
@ -81,7 +81,7 @@ SectionEnd
|
||||||
Section "un.$(remove_firewall)" ;
|
Section "un.$(remove_firewall)" ;
|
||||||
|
|
||||||
DetailPrint $(remove_firewallinfo)
|
DetailPrint $(remove_firewallinfo)
|
||||||
nsisFirewall::RemoveAuthorizedApplication "$INSTDIR\qbittorrent.exe"
|
nsisFirewallW::RemoveAuthorizedApplication "$INSTDIR\qbittorrent.exe"
|
||||||
|
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue