From 843e95377e9ca3646ac571d2c9e9728f568f5c45 Mon Sep 17 00:00:00 2001 From: Jonas8272 Date: Sat, 21 Nov 2026 16:06:16 +0000 Subject: [PATCH] Upload files to "installations" --- installations/install-bewidgets.ps1 | 92 +++++++++++++++++++++ installations/install-fxsound.ps1 | 86 +++++++++++++++++++ installations/install-mornye.ps1 | 82 ++++++++++++++++++ installations/install-socialstreamninja.ps1 | 82 ++++++++++++++++++ installations/install-wintoys.ps1 | 92 +++++++++++++++++++++ 5 files changed, 434 insertions(+) create mode 100644 installations/install-bewidgets.ps1 create mode 100644 installations/install-fxsound.ps1 create mode 100644 installations/install-mornye.ps1 create mode 100644 installations/install-socialstreamninja.ps1 create mode 100644 installations/install-wintoys.ps1 diff --git a/installations/install-bewidgets.ps1 b/installations/install-bewidgets.ps1 new file mode 100644 index 0000000..a07bb1c --- /dev/null +++ b/installations/install-bewidgets.ps1 @@ -0,0 +1,92 @@ +<# +.SYNOPSIS + Installs BeWidgets from the Jonas8272 bucket. Sets up Scoop, git and the + bucket first if they are missing. + +.DESCRIPTION + BeWidgets is installed from the Microsoft Store through winget, so winget + must be available (it ships with current Windows 10 and 11 as App Installer). + The Store updates it, not "scoop update". + +.EXAMPLE + irm https://codefloe.com/Jonas8272/scoop-bucket/raw/branch/master/installations/install-bewidgets.ps1 | iex + +.NOTES + Run in a normal (non-admin) PowerShell window if Scoop is not installed yet. +#> + +$ErrorActionPreference = 'Stop' + +$App = 'bewidgets' +$BucketName = 'Jonas8272' +$BucketUrl = 'https://codefloe.com/Jonas8272/scoop-bucket' + +function Test-Command($name) { + return [bool](Get-Command $name -ErrorAction SilentlyContinue) +} + +function Test-Admin { + $id = [Security.Principal.WindowsIdentity]::GetCurrent() + $principal = New-Object Security.Principal.WindowsPrincipal($id) + return $principal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator) +} + +$scoopRoot = if ($env:SCOOP) { $env:SCOOP } else { Join-Path $env:USERPROFILE 'scoop' } + +# 0. winget (the app comes from the Microsoft Store) -------------------------- +if (-not (Test-Command 'winget')) { + throw 'winget was not found. Install "App Installer" from the Microsoft Store, then run this script again.' +} + +# 1. Scoop ------------------------------------------------------------------- +if (-not (Test-Command 'scoop')) { + Write-Host 'Scoop not found. Installing Scoop...' -ForegroundColor Cyan + Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser -Force + if (Test-Admin) { + Invoke-Expression "& {$(Invoke-RestMethod -Uri 'https://get.scoop.sh')} -RunAsAdmin" + } else { + Invoke-RestMethod -Uri 'https://get.scoop.sh' | Invoke-Expression + } + + # Make scoop available in this session without reopening PowerShell + $env:PATH = "$scoopRoot\shims;$env:PATH" + + if (-not (Test-Command 'scoop')) { + throw 'Scoop was installed but is not on PATH. Open a new PowerShell window and run this script again.' + } +} else { + Write-Host 'Scoop is already installed.' -ForegroundColor Green +} + +# 2. git (needed to add buckets) --------------------------------------------- +if (-not (Test-Command 'git')) { + Write-Host 'git not found. Installing git through Scoop...' -ForegroundColor Cyan + scoop install git + if ($LASTEXITCODE -ne 0) { throw 'Failed to install git through Scoop.' } + $env:PATH = "$scoopRoot\shims;$env:PATH" +} else { + Write-Host 'git is already installed.' -ForegroundColor Green +} + +# 3. Bucket ------------------------------------------------------------------ +$existing = scoop bucket list | Where-Object { + $_.Name -eq $BucketName -or $_.Source -like '*Jonas8272/scoop-bucket*' +} | Select-Object -First 1 + +if ($existing) { + $BucketName = $existing.Name + Write-Host "Bucket '$BucketName' is already added." -ForegroundColor Green +} else { + Write-Host "Adding bucket '$BucketName'..." -ForegroundColor Cyan + scoop bucket add $BucketName $BucketUrl + if ($LASTEXITCODE -ne 0) { throw "Failed to add bucket '$BucketName'." } +} + +# 4. The app ----------------------------------------------------------------- +Write-Host '' +Write-Host "Installing $App..." -ForegroundColor Cyan +scoop install "$BucketName/$App" +if ($LASTEXITCODE -ne 0) { throw "Failed to install $App." } + +Write-Host '' +Write-Host "Done. $App is installed." -ForegroundColor Green diff --git a/installations/install-fxsound.ps1 b/installations/install-fxsound.ps1 new file mode 100644 index 0000000..e6d068a --- /dev/null +++ b/installations/install-fxsound.ps1 @@ -0,0 +1,86 @@ +<# +.SYNOPSIS + Installs FxSound from the Jonas8272 bucket. Sets up Scoop, git and the + bucket first if they are missing. + +.DESCRIPTION + FxSound installs an audio driver, so this script must be run from an + elevated PowerShell (right-click PowerShell, then "Run as administrator"). + If Scoop is not installed yet, it is installed in admin mode. + +.EXAMPLE + irm https://codefloe.com/Jonas8272/scoop-bucket/raw/branch/master/installations/install-fxsound.ps1 | iex +#> + +$ErrorActionPreference = 'Stop' + +$App = 'fxsound' +$BucketName = 'Jonas8272' +$BucketUrl = 'https://codefloe.com/Jonas8272/scoop-bucket' + +function Test-Command($name) { + return [bool](Get-Command $name -ErrorAction SilentlyContinue) +} + +function Test-Admin { + $id = [Security.Principal.WindowsIdentity]::GetCurrent() + $principal = New-Object Security.Principal.WindowsPrincipal($id) + return $principal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator) +} + +$scoopRoot = if ($env:SCOOP) { $env:SCOOP } else { Join-Path $env:USERPROFILE 'scoop' } + +# 0. Administrator rights (FxSound installs a driver) ------------------------- +if (-not (Test-Admin)) { + Write-Warning 'FxSound installs an audio driver, so this needs an elevated PowerShell. Right-click PowerShell, choose "Run as administrator", then run this script again.' + return +} + +# 1. Scoop ------------------------------------------------------------------- +if (-not (Test-Command 'scoop')) { + Write-Host 'Scoop not found. Installing Scoop...' -ForegroundColor Cyan + Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser -Force + Invoke-Expression "& {$(Invoke-RestMethod -Uri 'https://get.scoop.sh')} -RunAsAdmin" + + # Make scoop available in this session without reopening PowerShell + $env:PATH = "$scoopRoot\shims;$env:PATH" + + if (-not (Test-Command 'scoop')) { + throw 'Scoop was installed but is not on PATH. Open a new PowerShell window and run this script again.' + } +} else { + Write-Host 'Scoop is already installed.' -ForegroundColor Green +} + +# 2. git (needed to add buckets) --------------------------------------------- +if (-not (Test-Command 'git')) { + Write-Host 'git not found. Installing git through Scoop...' -ForegroundColor Cyan + scoop install git + if ($LASTEXITCODE -ne 0) { throw 'Failed to install git through Scoop.' } + $env:PATH = "$scoopRoot\shims;$env:PATH" +} else { + Write-Host 'git is already installed.' -ForegroundColor Green +} + +# 3. Bucket ------------------------------------------------------------------ +$existing = scoop bucket list | Where-Object { + $_.Name -eq $BucketName -or $_.Source -like '*Jonas8272/scoop-bucket*' +} | Select-Object -First 1 + +if ($existing) { + $BucketName = $existing.Name + Write-Host "Bucket '$BucketName' is already added." -ForegroundColor Green +} else { + Write-Host "Adding bucket '$BucketName'..." -ForegroundColor Cyan + scoop bucket add $BucketName $BucketUrl + if ($LASTEXITCODE -ne 0) { throw "Failed to add bucket '$BucketName'." } +} + +# 4. The app ----------------------------------------------------------------- +Write-Host '' +Write-Host "Installing $App..." -ForegroundColor Cyan +scoop install "$BucketName/$App" +if ($LASTEXITCODE -ne 0) { throw "Failed to install $App." } + +Write-Host '' +Write-Host "Done. $App is installed." -ForegroundColor Green diff --git a/installations/install-mornye.ps1 b/installations/install-mornye.ps1 new file mode 100644 index 0000000..0857444 --- /dev/null +++ b/installations/install-mornye.ps1 @@ -0,0 +1,82 @@ +<# +.SYNOPSIS + Installs Mornye from the Jonas8272 bucket. Sets up Scoop, git and the bucket + first if they are missing. + +.EXAMPLE + irm https://codefloe.com/Jonas8272/scoop-bucket/raw/branch/master/installations/install-mornye.ps1 | iex + +.NOTES + Run in a normal (non-admin) PowerShell window if Scoop is not installed yet. +#> + +$ErrorActionPreference = 'Stop' + +$App = 'mornye' +$BucketName = 'Jonas8272' +$BucketUrl = 'https://codefloe.com/Jonas8272/scoop-bucket' + +function Test-Command($name) { + return [bool](Get-Command $name -ErrorAction SilentlyContinue) +} + +function Test-Admin { + $id = [Security.Principal.WindowsIdentity]::GetCurrent() + $principal = New-Object Security.Principal.WindowsPrincipal($id) + return $principal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator) +} + +$scoopRoot = if ($env:SCOOP) { $env:SCOOP } else { Join-Path $env:USERPROFILE 'scoop' } + +# 1. Scoop ------------------------------------------------------------------- +if (-not (Test-Command 'scoop')) { + Write-Host 'Scoop not found. Installing Scoop...' -ForegroundColor Cyan + Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser -Force + if (Test-Admin) { + Invoke-Expression "& {$(Invoke-RestMethod -Uri 'https://get.scoop.sh')} -RunAsAdmin" + } else { + Invoke-RestMethod -Uri 'https://get.scoop.sh' | Invoke-Expression + } + + # Make scoop available in this session without reopening PowerShell + $env:PATH = "$scoopRoot\shims;$env:PATH" + + if (-not (Test-Command 'scoop')) { + throw 'Scoop was installed but is not on PATH. Open a new PowerShell window and run this script again.' + } +} else { + Write-Host 'Scoop is already installed.' -ForegroundColor Green +} + +# 2. git (needed to add buckets) --------------------------------------------- +if (-not (Test-Command 'git')) { + Write-Host 'git not found. Installing git through Scoop...' -ForegroundColor Cyan + scoop install git + if ($LASTEXITCODE -ne 0) { throw 'Failed to install git through Scoop.' } + $env:PATH = "$scoopRoot\shims;$env:PATH" +} else { + Write-Host 'git is already installed.' -ForegroundColor Green +} + +# 3. Bucket ------------------------------------------------------------------ +$existing = scoop bucket list | Where-Object { + $_.Name -eq $BucketName -or $_.Source -like '*Jonas8272/scoop-bucket*' +} | Select-Object -First 1 + +if ($existing) { + $BucketName = $existing.Name + Write-Host "Bucket '$BucketName' is already added." -ForegroundColor Green +} else { + Write-Host "Adding bucket '$BucketName'..." -ForegroundColor Cyan + scoop bucket add $BucketName $BucketUrl + if ($LASTEXITCODE -ne 0) { throw "Failed to add bucket '$BucketName'." } +} + +# 4. The app ----------------------------------------------------------------- +Write-Host '' +Write-Host "Installing $App..." -ForegroundColor Cyan +scoop install "$BucketName/$App" +if ($LASTEXITCODE -ne 0) { throw "Failed to install $App." } + +Write-Host '' +Write-Host "Done. $App is installed." -ForegroundColor Green diff --git a/installations/install-socialstreamninja.ps1 b/installations/install-socialstreamninja.ps1 new file mode 100644 index 0000000..0d3c47c --- /dev/null +++ b/installations/install-socialstreamninja.ps1 @@ -0,0 +1,82 @@ +<# +.SYNOPSIS + Installs socialstreamninja from the Jonas8272 bucket. Sets up Scoop, git and + the bucket first if they are missing. + +.EXAMPLE + irm https://codefloe.com/Jonas8272/scoop-bucket/raw/branch/master/installations/install-socialstreamninja.ps1 | iex + +.NOTES + Run in a normal (non-admin) PowerShell window if Scoop is not installed yet. +#> + +$ErrorActionPreference = 'Stop' + +$App = 'socialstreamninja' +$BucketName = 'Jonas8272' +$BucketUrl = 'https://codefloe.com/Jonas8272/scoop-bucket' + +function Test-Command($name) { + return [bool](Get-Command $name -ErrorAction SilentlyContinue) +} + +function Test-Admin { + $id = [Security.Principal.WindowsIdentity]::GetCurrent() + $principal = New-Object Security.Principal.WindowsPrincipal($id) + return $principal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator) +} + +$scoopRoot = if ($env:SCOOP) { $env:SCOOP } else { Join-Path $env:USERPROFILE 'scoop' } + +# 1. Scoop ------------------------------------------------------------------- +if (-not (Test-Command 'scoop')) { + Write-Host 'Scoop not found. Installing Scoop...' -ForegroundColor Cyan + Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser -Force + if (Test-Admin) { + Invoke-Expression "& {$(Invoke-RestMethod -Uri 'https://get.scoop.sh')} -RunAsAdmin" + } else { + Invoke-RestMethod -Uri 'https://get.scoop.sh' | Invoke-Expression + } + + # Make scoop available in this session without reopening PowerShell + $env:PATH = "$scoopRoot\shims;$env:PATH" + + if (-not (Test-Command 'scoop')) { + throw 'Scoop was installed but is not on PATH. Open a new PowerShell window and run this script again.' + } +} else { + Write-Host 'Scoop is already installed.' -ForegroundColor Green +} + +# 2. git (needed to add buckets) --------------------------------------------- +if (-not (Test-Command 'git')) { + Write-Host 'git not found. Installing git through Scoop...' -ForegroundColor Cyan + scoop install git + if ($LASTEXITCODE -ne 0) { throw 'Failed to install git through Scoop.' } + $env:PATH = "$scoopRoot\shims;$env:PATH" +} else { + Write-Host 'git is already installed.' -ForegroundColor Green +} + +# 3. Bucket ------------------------------------------------------------------ +$existing = scoop bucket list | Where-Object { + $_.Name -eq $BucketName -or $_.Source -like '*Jonas8272/scoop-bucket*' +} | Select-Object -First 1 + +if ($existing) { + $BucketName = $existing.Name + Write-Host "Bucket '$BucketName' is already added." -ForegroundColor Green +} else { + Write-Host "Adding bucket '$BucketName'..." -ForegroundColor Cyan + scoop bucket add $BucketName $BucketUrl + if ($LASTEXITCODE -ne 0) { throw "Failed to add bucket '$BucketName'." } +} + +# 4. The app ----------------------------------------------------------------- +Write-Host '' +Write-Host "Installing $App..." -ForegroundColor Cyan +scoop install "$BucketName/$App" +if ($LASTEXITCODE -ne 0) { throw "Failed to install $App." } + +Write-Host '' +Write-Host "Done. $App is installed." -ForegroundColor Green diff --git a/installations/install-wintoys.ps1 b/installations/install-wintoys.ps1 new file mode 100644 index 0000000..569218c --- /dev/null +++ b/installations/install-wintoys.ps1 @@ -0,0 +1,92 @@ +<# +.SYNOPSIS + Installs Wintoys from the Jonas8272 bucket. Sets up Scoop, git and the + bucket first if they are missing. + +.DESCRIPTION + Wintoys is installed from the Microsoft Store through winget, so winget + must be available (it ships with current Windows 10 and 11 as App Installer). + The Store updates it, not "scoop update". + +.EXAMPLE + irm https://codefloe.com/Jonas8272/scoop-bucket/raw/branch/master/installations/install-wintoys.ps1 | iex + +.NOTES + Run in a normal (non-admin) PowerShell window if Scoop is not installed yet. +#> + +$ErrorActionPreference = 'Stop' + +$App = 'wintoys' +$BucketName = 'Jonas8272' +$BucketUrl = 'https://codefloe.com/Jonas8272/scoop-bucket' + +function Test-Command($name) { + return [bool](Get-Command $name -ErrorAction SilentlyContinue) +} + +function Test-Admin { + $id = [Security.Principal.WindowsIdentity]::GetCurrent() + $principal = New-Object Security.Principal.WindowsPrincipal($id) + return $principal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator) +} + +$scoopRoot = if ($env:SCOOP) { $env:SCOOP } else { Join-Path $env:USERPROFILE 'scoop' } + +# 0. winget (the app comes from the Microsoft Store) -------------------------- +if (-not (Test-Command 'winget')) { + throw 'winget was not found. Install "App Installer" from the Microsoft Store, then run this script again.' +} + +# 1. Scoop ------------------------------------------------------------------- +if (-not (Test-Command 'scoop')) { + Write-Host 'Scoop not found. Installing Scoop...' -ForegroundColor Cyan + Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser -Force + if (Test-Admin) { + Invoke-Expression "& {$(Invoke-RestMethod -Uri 'https://get.scoop.sh')} -RunAsAdmin" + } else { + Invoke-RestMethod -Uri 'https://get.scoop.sh' | Invoke-Expression + } + + # Make scoop available in this session without reopening PowerShell + $env:PATH = "$scoopRoot\shims;$env:PATH" + + if (-not (Test-Command 'scoop')) { + throw 'Scoop was installed but is not on PATH. Open a new PowerShell window and run this script again.' + } +} else { + Write-Host 'Scoop is already installed.' -ForegroundColor Green +} + +# 2. git (needed to add buckets) --------------------------------------------- +if (-not (Test-Command 'git')) { + Write-Host 'git not found. Installing git through Scoop...' -ForegroundColor Cyan + scoop install git + if ($LASTEXITCODE -ne 0) { throw 'Failed to install git through Scoop.' } + $env:PATH = "$scoopRoot\shims;$env:PATH" +} else { + Write-Host 'git is already installed.' -ForegroundColor Green +} + +# 3. Bucket ------------------------------------------------------------------ +$existing = scoop bucket list | Where-Object { + $_.Name -eq $BucketName -or $_.Source -like '*Jonas8272/scoop-bucket*' +} | Select-Object -First 1 + +if ($existing) { + $BucketName = $existing.Name + Write-Host "Bucket '$BucketName' is already added." -ForegroundColor Green +} else { + Write-Host "Adding bucket '$BucketName'..." -ForegroundColor Cyan + scoop bucket add $BucketName $BucketUrl + if ($LASTEXITCODE -ne 0) { throw "Failed to add bucket '$BucketName'." } +} + +# 4. The app ----------------------------------------------------------------- +Write-Host '' +Write-Host "Installing $App..." -ForegroundColor Cyan +scoop install "$BucketName/$App" +if ($LASTEXITCODE -ne 0) { throw "Failed to install $App." } + +Write-Host '' +Write-Host "Done. $App is installed." -ForegroundColor Green