Skip to content

Commit

Permalink
rm scoop
Browse files Browse the repository at this point in the history
  • Loading branch information
GTXFerrari committed Sep 3, 2024
1 parent 13eab78 commit 89c97c9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Windows/Scripts/apps.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,3 @@ choco install madvr -y
choco install bind-toolsonly -y
choco install mingw # C compiler for windows (required for nvim-treesitter)

# Download applications using scoop
scoop bucket add main
scoop bucket add nonportable
scoop bucket add games
scoop install main/btop-lhm
scoop install games/battlenet
scoop install nonportable/peace-np
19 changes: 19 additions & 0 deletions Windows/Scripts/test.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
wget -O $env:USERPROFILE\Downloads\btop4winLHM.zip "https://github.com/aristocratos/btop4win/releases/download/v1.0.4/btop4win-LHM-x64.zip"
Expand-Archive -Path $env:USERPROFILE\Downloads\btop4winLHM.zip -DestinationPath $env:USERPROFILE\Downloads\btop4win
Move-Item -Path $env:USERPROFILE\Downloads\btop4win\btop4win\btop4win.exe -Destination $env:USERPROFILE\Downloads\btop4win\btop4win\btop.exe
Move-Item -Path $env:USERPROFILE\Downloads\btop4win\btop4win -Destination $env:PROGRAMFILES
# Add btop to PATH
$btop_path = "C:\Program Files\btop4win"
$currentPath = [System.Environment]::GetEnvironmentVariable("Path", [System.EnvironmentVariableTarget]::User)
if ($currentPath -notlike "*$btop_path*")
{
[System.Environment]::SetEnvironmentVariable("Path", "$currentPath;$btop_path", [System.EnvironmentVariableTarget]::User)
Write-Host "btop added to user PATH."
} else
{
Write-Host "Path already exists in the user PATH."
}
# Refresh env
$env:Path = [System.Environment]::GetEnvironmentVariable("Path", [System.EnvironmentVariableTarget]::Process) + ";"
$env:Path += [System.Environment]::GetEnvironmentVariable("Path", [System.EnvironmentVariableTarget]::User) + ";"
$env:Path += [System.Environment]::GetEnvironmentVariable("Path", [System.EnvironmentVariableTarget]::Machine)

0 comments on commit 89c97c9

Please sign in to comment.