PSBuild CI/CD automation

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
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.
This topic is 11 months and 4 days old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
ruvag-ws
Posts: 2
Last visit: Thu Jan 11, 2024 10:51 am

PSBuild CI/CD automation

Post by ruvag-ws »

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?
by brittneyr » Mon Apr 24, 2023 9:02 am
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 post
User avatar
brittneyr
Site Admin
Posts: 1655
Last visit: Thu Mar 28, 2024 1:00 pm
Answers: 39
Been upvoted: 30 times

Re: PSBuild CI/CD automation

Post by brittneyr »

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.
Brittney
SAPIEN Technologies, Inc.
ruvag-ws
Posts: 2
Last visit: Thu Jan 11, 2024 10:51 am

Re: PSBuild CI/CD automation

Post by ruvag-ws »

Amazing job, that is exactly I was looking for - Thanks
This topic is 11 months and 4 days old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.