Enhanced build script with publish functionality and removed duplicate JSON library

- Added -Publish parameter to build script for automated PSGallery publishing
- Removed duplicate Newtonsoft.Json.dll reference from lib directory
- Updated module manifests to load all dependencies from bin directory
- Implemented proper folder structure for PowerShell Gallery publishing
- Added comprehensive error handling and cleanup for publish process
- Successfully published PSProxmox v2025.07.03.1200 to PowerShell Gallery
This commit is contained in:
PSProxmox Team
2025-07-03 08:50:42 -04:00
parent 8d22693f77
commit 34b778c288
7 changed files with 492 additions and 3 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
DotNetFrameworkVersion = '4.7.2'
CompatiblePSEditions = @('Desktop', 'Core')
# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = @('bin\PSProxmox.dll', 'lib\Newtonsoft.Json.dll')
RequiredAssemblies = @('bin\PSProxmox.dll')
# Root module
RootModule = 'bin\PSProxmox.dll'
# Script files (.ps1) that are run in the caller's environment prior to importing this module