From 0dc8ed12776c132cdd9d6f2c3a4a2ddfc82b751c Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Thu, 2 Jul 2026 15:42:18 +0800 Subject: fix(install): copy only run files instead of entire repo --- install.ps1 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 install.ps1 (limited to 'install.ps1') diff --git a/install.ps1 b/install.ps1 new file mode 100644 index 0000000..6de50d5 --- /dev/null +++ b/install.ps1 @@ -0,0 +1,20 @@ +$tempDir = "./run_script_temp" +$repoDir = "$tempDir/run" + +Write-Host "Creating temporary directory..." +$null = New-Item -ItemType Directory -Path $tempDir -Force + +Write-Host "Cloning https://github.com/catilgrass/run ..." +git clone "https://github.com/catilgrass/run" $repoDir + +Write-Host "Installing files..." +Copy-Item -Path "$repoDir/run.sh" -Destination (Get-Location) -Force +Copy-Item -Path "$repoDir/run.ps1" -Destination (Get-Location) -Force +Copy-Item -Path "$repoDir/.run" -Destination (Get-Location) -Recurse -Force + +Write-Host "Cleaning up..." +[System.GC]::Collect() +Start-Sleep -Milliseconds 200 +Remove-Item -Path $tempDir -Recurse -Force + +Write-Host "Done!" -- cgit