mirror of
https://github.com/Baipyrus/ProxySwitcher.git
synced 2024-12-27 05:01:45 +00:00
Merge pull request #8 from Baipyrus/proxyswitcher-cli
Add ProxySwitcher As CLI Via PATH
This commit is contained in:
commit
1ad29b5ec6
@ -57,6 +57,11 @@ $assetPath = "$programPath\assets\ICON_Enabled.ico"
|
|||||||
DownloadFile -url https://raw.githubusercontent.com/Baipyrus/ProxySwitcher/main/assets/ICON_Disabled.ico
|
DownloadFile -url https://raw.githubusercontent.com/Baipyrus/ProxySwitcher/main/assets/ICON_Disabled.ico
|
||||||
DownloadFile -url https://raw.githubusercontent.com/Baipyrus/ProxySwitcher/main/assets/ICON_Enabled.ico
|
DownloadFile -url https://raw.githubusercontent.com/Baipyrus/ProxySwitcher/main/assets/ICON_Enabled.ico
|
||||||
|
|
||||||
|
# Add program to PATH for cli application
|
||||||
|
$userpath = [System.Environment]::GetEnvironmentVariable("PATH", "User")
|
||||||
|
$userpath = $userpath + ";$programDir"
|
||||||
|
[System.Environment]::SetEnvironmentVariable("PATH", $userpath, "User")
|
||||||
|
|
||||||
# Create Startmenu Shortcut
|
# Create Startmenu Shortcut
|
||||||
Write-Host "Creating shortcuts for easy access..." -ForegroundColor Cyan
|
Write-Host "Creating shortcuts for easy access..." -ForegroundColor Cyan
|
||||||
$assetsDir = "assets"
|
$assetsDir = "assets"
|
||||||
|
Loading…
Reference in New Issue
Block a user