PowerShell/Scripts/install-basic-snaps.ps1

39 lines
939 B
PowerShell
Raw Normal View History

2023-04-01 19:38:27 +02:00
<#
.SYNOPSIS
Installs basic snaps
.DESCRIPTION
This PowerShell script installs basic Windows apps such as browser, e-mail client, etc.
.EXAMPLE
PS> ./install-basic-snaps
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
try {
$StopWatch = [system.diagnostics.stopwatch]::startNew()
2023-04-01 19:52:59 +02:00
"⏳ Installing basic snaps..."
2023-04-01 19:45:37 +02:00
sudo snap install ant
2023-04-01 21:39:02 +02:00
sudo snap install audacity
2023-04-01 19:52:59 +02:00
sudo snap install bashtop
2023-04-01 21:39:02 +02:00
sudo snap install chromium
2023-04-01 19:52:59 +02:00
sudo snap install cmake
2023-04-01 21:39:02 +02:00
sudo snap install cups
sudo snap install emacs --classic
sudo snap install --edge ffmpeg
2023-04-01 19:52:59 +02:00
sudo snap install firefox
2023-04-01 21:39:02 +02:00
sudo snap install gimp
2023-04-01 19:52:59 +02:00
sudo snap install go
sudo snap install hugo
2023-04-01 20:00:54 +02:00
sudo snap install nano --classic
2023-04-01 19:38:27 +02:00
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
"✔️ installed basic snaps in $Elapsed sec"
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}