UDForge is a utility for building desktop applications with Universal Dashboard. You can install UDForge from the PowerShell Gallery.
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.
Your dashboard file needs to be called
dashboard.ps1, listen on the specified port and use the
-Wait parameter of
Package a single ps1 file as a desktop application.
Import-Module UniversalDashboard.ForgeNew-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
Import-Module UniversalDashboard.ForgeNew-UDDesktopApp -Path .\dashboard -OutputPath .\out -Name MyApp.\out\MyApp\out\myapp-win32-x64\MyApp.exe
An installer is also created in the output directory. This contains all the files necessary for electron, the app and Universal Dashboard.