Skip to content

Commit

Permalink
Merge pull request #11524 from keymanapp/fix/windows/oem-build-sh
Browse files Browse the repository at this point in the history
fix(windows): add FirstVoices Keyboards build to Windows release build
  • Loading branch information
mcdurdin authored May 24, 2024
2 parents b558c2b + 3d43959 commit 1df620b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
17 changes: 14 additions & 3 deletions oem/firstvoices/windows/src/inst/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
## START STANDARD BUILD SCRIPT INCLUDE
# adjust relative paths as necessary
THIS_SCRIPT="$(readlink -f "${BASH_SOURCE[0]}")"
. "${THIS_SCRIPT%/*}/../../..../../resources/build/builder.inc.sh"
. "${THIS_SCRIPT%/*}/../../../../../resources/build/builder.inc.sh"
## END STANDARD BUILD SCRIPT INCLUDE

source "$KEYMAN_ROOT/resources/shellHelperFunctions.sh"
source "$KEYMAN_ROOT/resources/build/build-download-resources.sh"

builder_describe "Installation files for FirstVoices Keyboards" \
@/common/windows/data \
Expand Down Expand Up @@ -63,7 +64,17 @@ function do_publish() {
-dVERSION=$VERSION_WIN -dRELEASE=$VERSION_RELEASE \
-dPRODUCTID=$GUID1 -dDESKTOPUISOURCE=../xml \
firstvoices.wxs desktopui.wxs
"$WIXLIGHT" -dWixUILicenseRtf=License.rtf -out firstvoices.msi -ext WixUIExtension firstvoices.wixobj desktopui.wixobj

# ICE82: we suppress because it reports spurious errors with merge module
# keymanengine to do with duplicate sequence numbers. Safely ignored.
# ICE80: we suppress because it reports x64 components without targeting x64.
# Safely ignored.

"$WIXLIGHT" \
-sice:ICE82 -sice:ICE80 \
-dWixUILicenseRtf=License.rtf \
-out firstvoices.msi \
-ext WixUIExtension firstvoices.wixobj desktopui.wixobj

#
# Sign the installation archive
Expand Down Expand Up @@ -107,7 +118,7 @@ function create-setup-inf() {
builder_heading create-setup-inf

echo "[Setup]" > setup.inf
echo "Version=$VersionWin" >> setup.inf
echo "Version=$VERSION_WIN" >> setup.inf
echo "MSIFileName=firstvoices.msi" >> setup.inf
echo "MSIOptions=" >> setup.inf
echo "AppName=FirstVoices Keyboards" >> setup.inf
Expand Down
3 changes: 3 additions & 0 deletions windows/src/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,6 @@ global/delphi/cust/MessageIdentifierConsts.pas
# Coverity intermediate folder and files
cov-int/
keyman-windows-coverity.tgz

# This file is still generated by devtools. TODO: eliminate in future
PathDefines.mak
3 changes: 2 additions & 1 deletion windows/src/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ builder_describe \
":engine Keyman Engine for Windows" \
":desktop Keyman for Windows" \
":components=global/delphi Delphi components" \
":test=test/unit-tests Shared unit tests"
":test=test/unit-tests Shared unit tests" \
":fv=../../oem/firstvoices/windows/src/inst OEM FirstVoices for Windows app"

builder_parse "$@"

Expand Down

0 comments on commit 1df620b

Please sign in to comment.