Skip to content

Commit

Permalink
install x64 build for NativeARM64_WINDOWS11 and NativeAMD64_WINDOWS11
Browse files Browse the repository at this point in the history
  • Loading branch information
fxliang committed Mar 5, 2024
1 parent 36c35ea commit f4f0fa0
Showing 1 changed file with 34 additions and 11 deletions.
45 changes: 34 additions & 11 deletions output/install.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
!include LogicLib.nsh
!include MUI2.nsh
!include x64.nsh
!include winVer.nsh

Unicode true

Expand Down Expand Up @@ -207,17 +208,39 @@ program_files:
File /nonfatal "weaseltARM.ime"
File /nonfatal "weaseltARM64.ime"
${EndIf}
${If} ${IsNativeAMD64}
File "WeaselDeployer.exe"
File "WeaselServer.exe"
File "rime.dll"
File "WinSparkle.dll"
${Else}
File "Win32\WeaselDeployer.exe"
File "Win32\WeaselServer.exe"
File "Win32\rime.dll"
File "Win32\WinSparkle.dll"
${EndIf}
; install x64 build for NativeARM64_WINDOWS11 and NativeAMD64_WINDOWS11
${If} ${AtLeastWin11} ; Windows 11 and above
${If} ${IsNativeARM64}
File "WeaselDeployer.exe"
File "WeaselServer.exe"
File "rime.dll"
File "WinSparkle.dll"
${ElseIf} ${IsNativeAMD64}
File "WeaselDeployer.exe"
File "WeaselServer.exe"
File "rime.dll"
File "WinSparkle.dll"
${Else}
File "Win32\WeaselDeployer.exe"
File "Win32\WeaselServer.exe"
File "Win32\rime.dll"
File "Win32\WinSparkle.dll"
${Endif}
; install x64 build for NativeAMD64_BELLOW_WINDOWS11
${Else} ; Windows 10 or bellow
${If} ${IsNativeAMD64}
File "WeaselDeployer.exe"
File "WeaselServer.exe"
File "rime.dll"
File "WinSparkle.dll"
${Else}
File "Win32\WeaselDeployer.exe"
File "Win32\WeaselServer.exe"
File "Win32\rime.dll"
File "Win32\WinSparkle.dll"
${Endif}
${Endif}

File "WeaselSetup.exe"
; shared data files
SetOutPath $INSTDIR\data
Expand Down

0 comments on commit f4f0fa0

Please sign in to comment.