Move scripts to Scripts folder and update paths

This commit is contained in:
Alphaeus Mote
2025-04-28 19:59:27 -04:00
parent c2397d3f05
commit 1ffbaa4fa9
3 changed files with 24 additions and 14 deletions
-32
View File
@@ -1,32 +0,0 @@
# Install-PSProxmox.ps1
# This script installs the PSProxmox module to the user's PowerShell modules directory
# Define the module name
$moduleName = "PSProxmox"
# Define the destination path
$modulePath = "$env:USERPROFILE\Documents\WindowsPowerShell\Modules\$moduleName"
if ($PSVersionTable.PSEdition -eq "Core") {
$modulePath = "$env:USERPROFILE\Documents\PowerShell\Modules\$moduleName"
}
# Create the module directory if it doesn't exist
if (-not (Test-Path -Path $modulePath)) {
New-Item -Path $modulePath -ItemType Directory -Force | Out-Null
Write-Host "Created module directory: $modulePath"
}
# Create the bin directory if it doesn't exist
if (-not (Test-Path -Path "$modulePath\bin")) {
New-Item -Path "$modulePath\bin" -ItemType Directory -Force | Out-Null
Write-Host "Created bin directory: $modulePath\bin"
}
# Copy the module files
Copy-Item -Path "$PSScriptRoot\PSProxmox.psd1" -Destination $modulePath -Force
Copy-Item -Path "$PSScriptRoot\bin\PSProxmox.dll" -Destination "$modulePath\bin" -Force
Copy-Item -Path "$PSScriptRoot\LICENSE" -Destination $modulePath -Force
Copy-Item -Path "$PSScriptRoot\README.md" -Destination $modulePath -Force
Write-Host "PSProxmox module has been installed to $modulePath"
Write-Host "You can now import the module using: Import-Module $moduleName"
+3 -1
View File
@@ -1,6 +1,6 @@
@{
RootModule = 'PSProxmox.dll'
ModuleVersion = '2025.04.28.1937'
ModuleVersion = '2025.04.28.1958'
GUID = 'd24f0894-3d0c-4ef1-a41e-b273c3db86ad'
Author = 'PSProxmox Team'
CompanyName = 'PSProxmox'
@@ -89,3 +89,5 @@
}