1
0

updated local solar setup

This commit is contained in:
matt
2026-03-13 21:46:34 +01:00
parent a6ca070492
commit 0efaf9b4f1

View File

@@ -107,6 +107,8 @@ switch ($options[$selectedIndex]) {
Remove-Item -Path "C:\solar\vosk-model-small-en-us-0.15.zip" -Recurse -Force Remove-Item -Path "C:\solar\vosk-model-small-en-us-0.15.zip" -Recurse -Force
Invoke-WebRequest -Uri "https://creative-crafter.de/solar/install-local.ps1" -OutFile "C:\solar\install-local.ps1"
# Change directory to solarPath # Change directory to solarPath
Set-Location -Path $solarPath Set-Location -Path $solarPath
@@ -431,22 +433,6 @@ $oldPath = [Environment]::GetEnvironmentVariable("Path", "User")
$newPath = "$oldPath;C:\solar" $newPath = "$oldPath;C:\solar"
[Environment]::SetEnvironmentVariable("Path", $newPath, "User") [Environment]::SetEnvironmentVariable("Path", $newPath, "User")
# Get the full path of this script
$scriptPath = $MyInvocation.MyCommand.Path
# Folder where the script currently is
$currentFolder = $PSScriptRoot
# Destination folder (change this to what you want)
$destinationFolder = "C:\solar"
# Create the destination folder if it doesn't exist
if (!(Test-Path $destinationFolder)) {
New-Item -ItemType Directory -Path $destinationFolder | Out-Null
}
# Copy this script into the destination folder
Copy-Item -Path $scriptPath -Destination (Join-Path $destinationFolder (Split-Path $scriptPath -Leaf)) -Force
} }