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

Distribute Electron app via Microsoft Store #329

Closed
Jaifroid opened this issue Dec 16, 2022 · 6 comments
Closed

Distribute Electron app via Microsoft Store #329

Jaifroid opened this issue Dec 16, 2022 · 6 comments
Assignees
Labels
build enhancement fixed Fixed, awaiting publication in new apps
Milestone

Comments

@Jaifroid
Copy link
Member

As the old UWP app falls behind technologically, due to its outdated Edge Legacy webview, it would be good to provide an upgrade path for those using the Microsoft Store to get this app.

Electron apps can be distributed via the MS Store. See https://www.electronjs.org/docs/latest/tutorial/windows-store-guide. Electron-Builder has msix/appx as a build target. The main difficulty is that it's a pain to publish to the MS Store due to lack of an automated API (supposedly in development) and need to upload packages manually. The WikiMed/Wikivoyage ones are quite heavy.

Advantage for end-users is automatic update of WikiMed and Wikivoyage apps, as these are currently too unwieldy to use Electron-Builder's update mechanism, which consumes too much user bandwidth in an uncontrolled manner (doesn't obey metered connection, etc.). Having the OS do the update following users' stipulations about metered connections would be more user-friendly.

Automatic updates (via the Electron-Builder mechanism) are currently only enabled for the base app, but not for WikiMed or Wikivoyage.

@Jaifroid Jaifroid self-assigned this Dec 16, 2022
@Jaifroid
Copy link
Member Author

Jaifroid commented Jun 4, 2023

As a step towards this issue, I am now building a nightly signed Electron appx version. This installs a containerized version of the Electron app in Windows 10 and 11, and can be installed simply by double-clicking the archive. It is slightly larger than the .exe version, but that is not much of a concern if distributed via the Store.

@Jaifroid
Copy link
Member Author

Jaifroid commented Jun 4, 2023

I've submitted a test version to the MS Store. Awaiting certification.

@Jaifroid
Copy link
Member Author

Jaifroid commented Jun 6, 2023

Now available in the MS Store for testing, only using this link:

Store apps can only be installed on Windows 10 and 11.

image

@Jaifroid Jaifroid added fixed Fixed, awaiting publication in new apps build labels Jun 6, 2023
@Jaifroid
Copy link
Member Author

Jaifroid commented Jun 7, 2023

There is now a test WikiMed appx version here: https://github.com/kiwix/kiwix-js-windows/releases/download/v2.5.0-WikiMed/WikiMed.by.Kiwix.2.5.1-E.appx. I haven't made a new MS Store entry for this yet, because I'm wondering if I can re-use the existing entry, and offer this as an upgrade. The idea is that users with appropriate hardware would get the Electron version, and users with less capable hardware would get the UWP version... But it may be the case that the entry is tied to a specific app type. I need to experiment.

@Jaifroid
Copy link
Member Author

Jaifroid commented Jul 22, 2023

Once it has passed Certiifcation, the Microsoft Store should be serving the Electron-based appx to users with x64 Windows as a seamless upgrade. Xbox, mixed reality and Windows Mobile users will continue to get an updated legacy appxbundle.

@Jaifroid Jaifroid added this to the Release 2.5.6 milestone Jul 22, 2023
@Jaifroid
Copy link
Member Author

This is now working well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build enhancement fixed Fixed, awaiting publication in new apps
Projects
None yet
Development

No branches or pull requests

1 participant