Skip to content

This repo walks you through step by step guide to publish your flutter project (Desktop) with self signed certificates as msix package installer for distribution.

Notifications You must be signed in to change notification settings

himmat12/msix_package_distribution

Repository files navigation

Setting up MSIX package installer for windows distribution

This repo walks you through how to distribute windows application by packaging it as msix package installer.

Complete step by step documentation will be updated in future!

Steps

  • first add msix package as your dev dependency
  • then add msix configs in pubspec.yaml
# msix configuration
msix_config:
  display_name: Counter App
  publisher_display_name: Himmat Rai
  identity_name: company.suite.counterapp
  msix_version: 1.0.0.0
  capabilities: internetClient, location, microphone, webcam
  certificate_path: c:\Users\himmat\Desktop\counter_app_intaller\TestCert_2024-01-14_himmat.pfx
  certificate_password: 1234
  app_installer:
    publish_folder_path: c:\Users\himmat\Desktop\counter_app_intaller
    hours_between_update_checks: 0
    automatic_background_task: true
    update_blocks_activation: true
    show_prompt: true
    force_update_from_any_version: false
  • Now we need a certificate to verify our application as trusted in windows, so we need to create new self signed certificate and install it in our local machine.
  • Once we create our certificate and signed our package, we can view our self signed certificate in Microsoft Management Console by selecting certificates section (local computer).
  • Now we need to create the package and publish it by running msix package cli tool commnds dart run msix:create to create package and dart run msix:publish to push our application updates.
  • Once these steps are completed we can run the <example_app>.appinstaller file to install our published application to our device and when ever we make changes to our code and publish it dart run msix:publish, our installed application in windows will update automatically.

About

This repo walks you through step by step guide to publish your flutter project (Desktop) with self signed certificates as msix package installer for distribution.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published