-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
chore(windows): move from Makefile to build.sh #11461
Conversation
User Test ResultsTest specification and instructions
Test Artifacts
|
8ece62c
to
3957148
Compare
781d154
to
8b2070c
Compare
3957148
to
c06dd48
Compare
Test Results
SUITE_BASELINE: Keyman for Windows Base Line Tests: Passed I followed the test scenario described above test suite. I executed as per the test case instructions and outputs were correctly displayed in "Text Editor". It works well. Thank you. |
The build agents use a fixed location for signtool.exe, but this is not the case for other devs, so we need to grab our VS environment in order to locate it.
windows/src/engine/inst/build.sh
Outdated
# after all other builds complete | ||
|
||
builder_describe_outputs \ | ||
publish /windows/src/desktop/inst/keymanengine.msm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should either be
$KEYMAN_ROOT/windows/release/${VERSION}/keymanengine.msm
of the local version before copy_installer
keymanengine.msm
Either case nothing is copying it to where this line suggests.
Also should see comment below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. Fixed.
windows/src/engine/inst/build.sh
Outdated
function copy-installer() { | ||
builder_heading copy-installer | ||
mkdir -p "$KEYMAN_ROOT/windows/release/${VERSION}" | ||
cp keymanengine.msm "$KEYMAN_ROOT/windows/release/${VERSION}/keymanengine.msm" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we no longer include version in the name `keymanengine-${VERSION}.msm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, another good catch. The Keyman Desktop .wxs has:
<Merge Id="keymanengine" Language='1033' SourceFile='..\..\engine\inst\keymanengine.msm' /> |
Which is why the build worked. Fixed this one too.
|
||
function do_publish() { | ||
wrap-signcode //d "Keyman Engine for Windows" "$WINDOWS_PROGRAM_ENGINE/keyman32.dll" | ||
wrap-symstore "$WINDOWS_PROGRAM_ENGINE/keyman32.dll" //t keyman-engine-windows |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just querying this change in behaviour
for my local publish this gets skipped as $KEYMAN_SYMSTOREPATH is not is set an so wrap-symstore exits early. Previously the Defines.mak file had this line.
# KEYMAN_SYMSTOREPATH defaults to sibling folder "symbols". If it is not present,
# then we won't attempt to write symbols to the store.
!IFNDEF KEYMAN_SYMSTOREPATH
KEYMAN_SYMSTOREPATH=$(KEYMAN_ROOT)\..\symbols
!ENDIF
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will add a check to wrap-symstore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's already there, see:
keyman/resources/build/win/environment.inc.sh
Lines 117 to 121 in 8b2070c
wrap-symstore() { | |
if [[ -z "${KEYMAN_SYMSTOREPATH+x}" ]]; then | |
builder_warn "\$KEYMAN_SYMSTOREPATH is not set. Skipping symstore for $@" | |
return 0 | |
fi |
I guess that is slightly different behaviour. It's probably better not to default to ../symbols!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Changes in this pull request will be available for download in Keyman version 18.0.42-alpha |
Relates to #11461. The FV build is now a part of the Windows publish build. At the same time, addresses a number of typos in the build script, which had not been tested because it was not linked to the Windows build.
Fixes #11316.
Now builds from a clean repo:
TODO:
User Testing