HomePhabricator
Diffusion Comm 3d1c2d8c46af

[desktop] Embed windows runtime installer

Description

[desktop] Embed windows runtime installer

Summary:
ummary:
We need to run the Windows runtime installer in case the user doesn't have the correct windows api dependencies (in the "packaged" apps this is specified in the app manifest but we distribute just an .exe so we can't use that). This diff downloads an installer from microsoft and embeds it inside our app. Then during installation the squirrel framework run our app in case we need to do some initialization (only on windows). Currently we just setup some shortcuts but now we will also run the runtime installer.
I've included gaxios dependency to make the https requests easier, we already use it in some scripts.

Test Plan:

  • yarn make to create an installer
  • Run get-appxpackage *appruntime* to check that the dependiecies aren't already installed (this command was taken from this Microsoft tutorial)
  • Install the app and check that it works
  • Run get-appxpackage command again and check if the components were installed

Reviewers: tomek, kamil, ashoat

Reviewed By: ashoat

Subscribers: ashoat, atul

Differential Revision: https://phab.comm.dev/D7253

Details

Provenance
michalAuthored on Mar 30 2023, 6:29 AM
Michal Gniadek <michal.gniadek@swmansion.com>Committed on Apr 11 2023, 1:32 AM
Reviewer
ashoat
Differential Revision
D7253: [desktop] Embed windows runtime installer
Parents
rCOMM7aaed447a330: [desktop] Modify the generated native windows notifs module
Branches
Unknown
Tags
Unknown