updated local solar setup
This commit is contained in:
@@ -107,6 +107,8 @@ switch ($options[$selectedIndex]) {
|
||||
|
||||
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
|
||||
Set-Location -Path $solarPath
|
||||
@@ -431,22 +433,6 @@ $oldPath = [Environment]::GetEnvironmentVariable("Path", "User")
|
||||
$newPath = "$oldPath;C:\solar"
|
||||
[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
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user