Skip to content

Commit

Permalink
add wsltty quiet installer (microsoft/winget-pkgs#40573)
Browse files Browse the repository at this point in the history
  • Loading branch information
mintty committed Jan 18, 2022
1 parent 76fad75 commit d1fa499
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -277,14 +277,25 @@ cop: copcab
mkdir -p rel
cp -fl $(CAB)/* rel/

installer: cop
installer: cop cab normal-installer silent-installer

cab:
# build cab archive
lcab -r $(CAB) rel/$(CAB).cab

normal-installer:
# prepare build of installer
rm -f rel/$(CAB)-install.exe
sed -e "s,%version%,$(ver)," -e "s,%arch%,$(arch)," makewinx.cfg > rel/wsltty.SED
# build installer
cd rel; iexpress /n wsltty.SED
# build cab archive
lcab -r $(CAB) rel/$(CAB).cab

silent-installer:
# prepare build of installer
rm -f rel/$(CAB)-install-quiet.exe
cd rel; sed -e "/ShowInstallProgramWindow/ s/0/1/" -e "/HideExtractAnimation/ s/0/1/" -e "/InstallPrompt/ s/=.*/=/" -e "/FinishMessage/ s/=.*/=/" -e "/TargetName/ s/install.exe/install-quiet.exe/" wsltty.SED > wsltty-quiet.SED
# build installer
cd rel; iexpress /n wsltty-quiet.SED

install: cop installbat

Expand Down

0 comments on commit d1fa499

Please sign in to comment.