Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nsis: Bundle chewing-cli.exe #162

Merged
merged 1 commit into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
x86\ChewingTextService\Release\*.dll
x86\libchewing\Release\*.dll
x86\ChewingPreferences\Release\*.exe
x86\libchewing\chewing-cli.exe
name: x86
retention-days: 1
x64:
Expand Down Expand Up @@ -58,6 +59,7 @@ jobs:
x64\ChewingTextService\Release\*.dll
x64\libchewing\Release\*.dll
x64\ChewingPreferences\Release\*.exe
x64\libchewing\chewing-cli.exe
name: x64
retention-days: 1
package:
Expand All @@ -79,6 +81,7 @@ jobs:
copy x86\ChewingTextService\Release\*.dll nsis\x86\
copy x86\libchewing\Release\*.dll nsis\x86\
copy x86\ChewingPreferences\Release\*.exe nsis\
copy x86\libchewing\chewing-cli.exe nsis\
mkdir nsis\x64
copy x64\ChewingTextService\Release\*.dll nsis\x64\
copy x64\libchewing\Release\*.dll nsis\x64\
Expand Down
4 changes: 3 additions & 1 deletion installer/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@ To build an installer:

4. Put `32-bit` ChewingPreferences.exe in this dir.

5. Compile installer.nsi with NSIS.
5. Put `32-bit` chewing-cli.exe in this dir.

6. Compile installer.nsi with NSIS.

2 changes: 2 additions & 0 deletions installer/installer.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ Section "新酷音輸入法" SecMain
File /r "x86" ; put 32-bit ChewingTextService.dll in x86 folder
File /r Dictionary ; Install dictionary files
File ChewingPreferences.exe ; Configuration Tool
File chewing-cli.exe ; Command-line Tool

; Register COM objects (NSIS RegDLL command is broken and cannot be used)
ExecWait '"$SYSDIR\regsvr32.exe" /s "$INSTDIR\x86\ChewingTextService.dll"'
Expand Down Expand Up @@ -185,6 +186,7 @@ Section "Uninstall"
RMDir /r "$INSTDIR\Dictionary"
Delete "$INSTDIR\SetupChewing.bat"
Delete "$INSTDIR\ChewingPreferences.exe"
Delete "$INSTDIR\chewing-cli.exe"

DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ChewingTextService"
DeleteRegValue HKLM "Software\Microsoft\Windows\CurrentVersion\Run" "SetupChewing"
Expand Down