From 0efaf9b4f1e1eabb1ef5a7399af747176d0f6346 Mon Sep 17 00:00:00 2001 From: matt Date: Fri, 13 Mar 2026 21:46:34 +0100 Subject: [PATCH] updated local solar setup --- solar/install-local.ps1 | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/solar/install-local.ps1 b/solar/install-local.ps1 index 6db8972..893e692 100644 --- a/solar/install-local.ps1 +++ b/solar/install-local.ps1 @@ -106,6 +106,8 @@ switch ($options[$selectedIndex]) { Remove-Item -Path "C:\solar\vosk-model-small-en-us-0.15_for_deleting" -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 @@ -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 }