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

feat(developer): remove Delphi package installer compiler 🎺 #9616

Merged

Conversation

mcdurdin
Copy link
Member

@mcdurdin mcdurdin commented Sep 25, 2023

Fixes #8340.

This removes the legacy package installer compiler code, and strips out references to it from Keyman Developer. At the same time, this required a refactor of the code in the Keyman for Windows installer build, which used the CompilePackageInstaller code to build the redistributable installer. As the steps required were actually quite simple, I've gone ahead and reimplemented them directly in the Makefile.

Removing the UI for compiling package installers may be worth discussion. I opted not to reimplement the UI using the kmc wrapper, because the package installer is an advanced use case which typically should not be the default distribution method for any developers. It is still possible to build the installer using the command line with kmc, and that's the recommended way forward for those who still have a need to build redist installers.

Given that the majority of tech support responses to issues arising with use of this feature has been to point the keyboard developer away from the feature, I am personally comfortable with this. I do plan to make a KB article on how to transition from the UI to the command-line, based on the example in developer/src/kmc/README.md:

kmc can now build package installers for Windows. Example usage (Bash on
Windows, using 'node .' instead of 'kmc' to run the local build):
```
node . build windows-package-installer \
$KEYMAN_ROOT/developer/src/kmc-package/test/fixtures/khmer_angkor/source/khmer_angkor.kps \
--msi /c/Program\ Files\ \(x86\)/Common\ Files/Keyman/Cached\ Installer\ Files/keymandesktop.msi \
--exe $KEYMAN_ROOT/windows/bin/desktop/setup-redist.exe \
--license $KEYMAN_ROOT/LICENSE.md \
--out-file ./khmer.exe
```

@keymanapp-test-bot skip

@keymanapp-test-bot keymanapp-test-bot bot added has-user-test user-test-missing User tests have not yet been defined for the PR labels Sep 25, 2023
@keymanapp-test-bot
Copy link

keymanapp-test-bot bot commented Sep 25, 2023

User Test Results

Test specification and instructions

User tests are not required

@keymanapp-test-bot keymanapp-test-bot bot changed the title feat(developer): remove Delphi package installer compiler feat(developer): remove Delphi package installer compiler 🎺 Sep 25, 2023
@keymanapp-test-bot keymanapp-test-bot bot added this to the A17S22 milestone Sep 25, 2023
@mcdurdin mcdurdin marked this pull request as ready for review September 29, 2023 07:39
@keymanapp-test-bot keymanapp-test-bot bot removed the user-test-missing User tests have not yet been defined for the PR label Sep 29, 2023
@mcdurdin mcdurdin removed this from the A17S22 milestone Sep 30, 2023
@mcdurdin mcdurdin added this to the A17S23 milestone Sep 30, 2023
Base automatically changed from feat/developer/kmc-package-windows-installer to epic/package-metadata October 3, 2023 13:35
@mcdurdin mcdurdin merged commit 3d786f8 into epic/package-metadata Oct 3, 2023
3 checks passed
@mcdurdin mcdurdin deleted the feat/windows/create-installer-without-buildpkg branch October 3, 2023 13:38
mcdurdin added a commit that referenced this pull request Nov 14, 2023
This is a regression coming out of #9616. The new setup.inf generation
process is done in a Makefile and inadvertently added significant
whitespace, which was not being trimmed by setup.
rc-swag pushed a commit that referenced this pull request Nov 14, 2023
This is a regression coming out of #9616. The new setup.inf generation
process is done in a Makefile and inadvertently added significant
whitespace, which was not being trimmed by setup.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants