microsoftgraph / msgraph-cli-archived

The Microsoft Graph CLI repository has moved. This repository is now an archive.
https://github.com/microsoftgraph/msgraph-cli
Other
44 stars 9 forks source link

Task/update build scripts windows #148

Closed samwelkanda closed 3 years ago

samwelkanda commented 3 years ago

Overview

Updates the script that builds the Windows MSI for Microsoft Graph CLI

Demo

image

Notes

Prerequisites to Building the MSI

  1. Turn on the '.NET Framework 3.5' Windows Feature (required for WIX Toolset).

  2. Install 'WIX Toolset build tools' if not already installed. (e.g. WiX v3.10.3) http://wixtoolset.org/releases/

  3. Get Git for Windows (it has several tools used for the build).

  4. Install 'Microsoft Build Tools 2015'. https://www.microsoft.com/download/details.aspx?id=48159

  5. Clone the repository.

Testing Instructions

Building the MSI

  1. Set the CLI_VERSION environment variable.

  2. Run build_scripts\windows\scripts\build.cmd.

  3. The unsigned MSI will be in the .\out folder.

Install the generated MSI and run mg -h.

Microsoft Reviewers: Open in CodeFlow