Skip to content

Commit 10b2fa4

Browse files
committed
feat(windows): create FV installer without buildpkg
1 parent 9571be6 commit 10b2fa4

File tree

2 files changed

+23
-4
lines changed

2 files changed

+23
-4
lines changed

oem/firstvoices/windows/src/inst/Makefile

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99
DESKTOP_FILES=firstvoices.wixobj desktopui.wixobj
1010
MSI=firstvoices.msi
11+
EXE_ZIP=firstvoices.zip
1112
EXE=firstvoices.exe
1213
KMP=fv_all.kmp
13-
INTEXE=firstvoices-fv_all.exe
1414
APPTITLE="Keyman for FirstVoices"
1515
TITLEIMAGE=setuptitle.png
1616

@@ -48,12 +48,19 @@ prereq:
4848
cd $(FVROOT)\src\inst
4949

5050
desktop: prereq
51+
rem compile .msi
5152
$(MAKE) -fdownload.mak candle-desktop
5253
$(WIXLIGHT) -dWixUILicenseRtf=License.rtf -out $(MSI) -ext WixUIExtension $(DESKTOP_FILES)
5354
$(SIGNCODE) /d $(APPTITLE) $(MSI)
54-
$(ROOT)\bin\buildtools\buildpkg -m $(MSI) -s $(ROOT)\bin\desktop -l license.html -a $(APPTITLE) -i $(TITLEIMAGE) -n "FirstVoices Keyboards" -startDisabled -startWithConfiguration $(KMP)
55-
if exist $(EXE) del $(EXE)
56-
ren $(INTEXE) $(EXE)
55+
56+
rem build self-extracting archive
57+
$(MAKE) -fdownload.mak setup-inf
58+
$(WZZIP) $(EXE_ZIP) $(MSI) license.html setup.inf $(TITLEIMAGE) $(KMP)
59+
-del setup.inf
60+
$(COPY) /b $(ROOT)\bin\desktop\setup-redist.exe + $(EXE_ZIP) $(EXE)
61+
-del $(EXE_ZIP)
62+
63+
rem sign and copy files
5764
$(SIGNCODE) /d $(APPTITLE) $(EXE)
5865
$(MAKE) -fdownload.mak copyredist-desktop
5966

oem/firstvoices/windows/src/inst/download.in

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,15 @@ candle-desktop:
2222
$(WIXHEAT) dir ..\xml -o desktopui.wxs -ag -cg DesktopUI -dr INSTALLDIR -suid -var var.DESKTOPUISOURCE -wx -nologo
2323
$(WIXCANDLE) -dOEMNAME="$(OEMNAME)" -dPRODUCTNAME="$(PRODUCTNAME)" -dROOT="$(ROOT)" -dVERSION=$VersionWin -dRELEASE=$VersionRelease -dPRODUCTID=$GUID1 -dDESKTOPUISOURCE=..\xml firstvoices.wxs desktopui.wxs
2424

25+
setup-inf:
26+
echo [Setup] > setup.inf
27+
echo Version=$VersionWin >> setup.inf
28+
echo MSIFileName=firstvoices.msi >> setup.inf
29+
echo MSIOptions= >> setup.inf
30+
echo AppName=Keyman for FirstVoices >> setup.inf
31+
echo License=license.html >> setup.inf
32+
echo TitleImage=setuptitle.png >> setup.inf
33+
echo StartDisabled=True >> setup.inf
34+
echo StartWithConfiguration=True >> setup.inf
35+
echo [Packages] >> setup.inf
36+
echo fv_all.kmp=FirstVoices Keyboards >> setup.inf

0 commit comments

Comments
 (0)