Downloaded the latest nightly zip a few moments ago, stopped the universal service, extracted zip into universal directory overwriting everything that was there. Started universal service again but my dashboard is complaining:
[07-23-20 10:23:51 AM] Startup: A parameter cannot be found that matches parameter name 'Scripts'.
If I import the module psm at the top of my script, it does load without error but my scripts aren’t accessible at /dashboardname/script.js
It’s probably because the nightly build doesn’t upgrade the UD Framework version. We only change that on release. You should stop PSU, delete the new framework in %ProgramData%\PowerShellUniversal and then start up PSU. It will redeploy the updated framework when it starts up since it isn’t there already.
You will need a published folder to host your script. It won’t discover the script.js automatically but if you put it in a published folder and then just include the relative path to the script in your -Scripts it will load it.
For example:
Published Folder
Path: C:\scripts
RequestPath: /scripts
Dashboard
-Scripts @(’/scripts/script.js’)
I’ve updated the docs to include some of this upgrade information.