UDForge

UDForge is a utility for building desktop applications with Universal Dashboard. You can install UDForge from the PowerShell Gallery.

Install-Module UniversalDashboard.Forge

Building a desktop application

UDForge accepts either a ps1 file or path to include in the desktop app. You can specify the version of PowerShell to run, icons to use, name of the application and output path.

Requirements

Dashboard

Your dashboard file needs to be called dashboard.ps1, listen on the specified port and use the -Wait parameter of Start-UDDashboard.

Usage

Package a single ps1 file as a desktop application.

Import-Module UniversalDashboard.Forge
New-UDDesktopApp -Path .\dashboard.ps1 -OutputPath .\out -Name MyApp
.\out\MyApp\out\myapp-win32-x64\MyApp.exe

Package a folder as a desktop application. UDForge will verify that the folder contains a dashboard.ps1 file. This file should call Start-UDDashboard.

Import-Module UniversalDashboard.Forge
New-UDDesktopApp -Path .\dashboard -OutputPath .\out -Name MyApp
.\out\MyApp\out\myapp-win32-x64\MyApp.exe

Installer

An installer is also created in the output directory. This contains all the files necessary for electron, the app and Universal Dashboard.

.\MyApp\out\make\squirrel.windows\x64\myapp-1.0.0 Setup.exe

Last updated