Skip to content

Commit df7eb3d

Browse files
repack archive
1 parent 53cca48 commit df7eb3d

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

Install.ps1

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,14 @@
33

44
$ErrorActionPreference = 'Stop'
55
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
6-
$ccsFolder = "$env:LocalAppData\CCS"
76

8-
if (Test-Path -Path $ccsFolder) {
9-
Remove-Item -Path $ccsFolder -Recurse -Force | Out-Null
7+
if (Test-Path -Path $env:LocalAppData\CCS) {
8+
Remove-Item -Path $env:LocalAppData\CCS -Recurse -Force | Out-Null
109
}
11-
New-Item -ItemType Directory -Path $ccsFolder | Out-Null
1210

1311
$uri = 'https://github.com/SunsetTechuila/Cursor-Colors-Synchronizer/releases/latest/download/Cursor-Colors-Synchronizer.zip'
14-
Invoke-WebRequest -Uri $uri -OutFile $ccsFolder\Cursor-Colors-Synchronizer.zip
15-
Expand-Archive -Path $ccsFolder\Cursor-Colors-Synchronizer.zip -DestinationPath $ccsFolder
16-
Remove-Item -Path $ccsFolder\Cursor-Colors-Synchronizer.zip -Force
12+
Invoke-WebRequest -Uri $uri -OutFile $env:LocalAppData\Cursor-Colors-Synchronizer.zip
13+
Expand-Archive -Path $env:LocalAppData\Cursor-Colors-Synchronizer.zip -DestinationPath $env:LocalAppData
14+
Remove-Item -Path $env:LocalAppData\Cursor-Colors-Synchronizer.zip -Force
1715

18-
Start-Process -FilePath powershell -ArgumentList "-ExecutionPolicy Bypass -NoExit -File $ccsFolder\CCS.ps1"
16+
Start-Process -FilePath powershell -ArgumentList "-ExecutionPolicy Bypass -NoExit -File $env:LocalAppData\CCS\CCS.ps1"

0 commit comments

Comments
 (0)