Build Module to Custom Path

Use this forum to ask questions after your subscription maintenance expires or before you buy. Need information on licensing or pricing? Questions about a trial version? This is the right place for you. No scripting questions, please.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE 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.
This topic is 3 years and 9 months 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.
som.s.peters
Posts: 1
Last visit: Mon Dec 18, 2023 8:40 am

Build Module to Custom Path

Post by som.s.peters »

How can I have Build Module or Export to File export my module to a custom folder location? I don't want to have move the project to a shared location every time I need to share it.

Old build process: Whole project was in a SharePoint OneDrive folder that was shared with the team and they could directly import the module. This caused some minor sync issues and slowness importing the modules. They also occasionally loaded PowerShell with a buggy version of a function as sync was automatic.

New build process: Moved the module out of the OneDrive folder and into its own. Started using Git for source control, yay! Now I want to build the module into the old synced folder to share with the team since GitHub is $$$ for private corporate repo users. This will also give only 2 files instead of the 50+ I had before. How can I change where the module is built to on a per project basis as I have modules for a few different teams.

Edit: This is not the form I posted my question it, This is for PowerShell Studio 2020 5.7.178
User avatar
brittneyr
Site Admin
Posts: 1670
Last visit: Tue Apr 16, 2024 7:13 am
Answers: 39
Been upvoted: 31 times

Re: Build Module to Custom Path

Post by brittneyr »

The build path is not something that can be specified when building a module. It always builds to the PowerShell folder in your Documents. However, you can deploy your module to the specific location using the SAPIEN Script Packager:
SPS_Deploy.png
SPS_Deploy.png (31.49 KiB) Viewed 6073 times
Brittney
SAPIEN Technologies, Inc.
This topic is 3 years and 9 months 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.