Product: PowerShell Studio 2022 (64 Bit)
Build: v5.8.201
OS: Windows 10 Enterprise (64 Bit)
Build: v10.0.19045.0
Hey there, I found a forum aged 5 years ago that described the process to use PSbuild to create a package/deploy etc.
It stated that 5 years ago there wasn't an option to build a project of multiple files in a single ps1 file and create an exe from it, that feature what PSStudio's "Build" uses.
Is there for now an option to create an exe file by using a commandline utility like psbuild to get the whole process done?
If not, is it possible to get the decryptionkey of the XML-Files (psf-files) to build the *.package.ps1 and *.package.ps1.psbuild on our own? The creation of the combined ps1 file is quite easy, but unfortunately we can't read the "<form>....</form>" part as it is encrypted.
Or do you have another way to use it with a CI/CD like Jenkins to just upload the code to github and autodeploy all stuff to an executable?
PSBuild CI/CD automation
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
PSBuild CI/CD automation
There is a tool included in PowerShell Studio called SAPIENCommandLine for building from the command line.
It can be called using the following parameters:
SAPIENCommandLine.exe /BUILDSCRIPT <form or project file>
Build an executable for script, form or project file. Build settings (.psbuild file) must exist. (Exit Code: Success = 0)
SAPIENCommandLine.exe /BUILDEXE <file>
Build a MSI for script, form or project file. Build settings (.psbuild file) must exist. (Exit Code: Success = 0)
SAPIENCommandLine.exe /BUILDMSI <file>
It's important to note that this process needs to be able to detect that PowerShell Studio is installed.
Go to full postIt can be called using the following parameters:
SAPIENCommandLine.exe /BUILDSCRIPT <form or project file>
Build an executable for script, form or project file. Build settings (.psbuild file) must exist. (Exit Code: Success = 0)
SAPIENCommandLine.exe /BUILDEXE <file>
Build a MSI for script, form or project file. Build settings (.psbuild file) must exist. (Exit Code: Success = 0)
SAPIENCommandLine.exe /BUILDMSI <file>
It's important to note that this process needs to be able to detect that PowerShell Studio is installed.
Re: PSBuild CI/CD automation
There is a tool included in PowerShell Studio called SAPIENCommandLine for building from the command line.
It can be called using the following parameters:
SAPIENCommandLine.exe /BUILDSCRIPT <form or project file>
Build an executable for script, form or project file. Build settings (.psbuild file) must exist. (Exit Code: Success = 0)
SAPIENCommandLine.exe /BUILDEXE <file>
Build a MSI for script, form or project file. Build settings (.psbuild file) must exist. (Exit Code: Success = 0)
SAPIENCommandLine.exe /BUILDMSI <file>
It's important to note that this process needs to be able to detect that PowerShell Studio is installed.
It can be called using the following parameters:
SAPIENCommandLine.exe /BUILDSCRIPT <form or project file>
Build an executable for script, form or project file. Build settings (.psbuild file) must exist. (Exit Code: Success = 0)
SAPIENCommandLine.exe /BUILDEXE <file>
Build a MSI for script, form or project file. Build settings (.psbuild file) must exist. (Exit Code: Success = 0)
SAPIENCommandLine.exe /BUILDMSI <file>
It's important to note that this process needs to be able to detect that PowerShell Studio is installed.
Brittney
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.