Testing AppX execution alias without yao-pkg#2599
Testing AppX execution alias without yao-pkg#2599fredrikekelund wants to merge 3 commits intotrunkfrom
Conversation
📊 Performance Test ResultsComparing b06a80f vs trunk site-editor
site-startup
Results are median values from multiple test runs. Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change (<50ms diff) |
gcsecsey
left a comment
There was a problem hiding this comment.
The approach looked good to me on the surface, but when I tried to test it, I couldn't access the studio command from any shell (Command Prompt or PowerShell).
After digging a bit into how Windows execution aliases work, I think this approach won't work because of a limitation of the alias mechanism. Based on this article, the AppExecutionAlias doesn't seem to support receiving parameters. I think the uap10:Parameters attribute is not being applied to the execution alias.
It'd be great to be able to pass a parameter to avoid packaging a standalone exe, but I don't have any better ideas at the moment for how to do that.
|
Thanks for digging, @gcsecsey 🙏 I did some more testing with this last week, too, but also couldn't get it to work. I'm actually not even sure this approach had a very big effect on filesize… I'll just close this. |
Related issues
Proposed Changes
I'm not familiar with AppX, but looking at #2547, I wondered whether we've tried an approach like this. In this PR, the
Executableparameter points to the node runtime we already bundle, and auap10:Parameterscontains command line parameters passed to Node (in this case, simply the path tocli/main.js).Testing Instructions
We need to build an AppX installer for the app to test this.
Pre-merge Checklist