mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-15 12:34:25 +01:00
35 lines
808 B
PowerShell
35 lines
808 B
PowerShell
<#
|
|
.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()
|
|
|
|
"⏳ Installing basic snaps..."
|
|
sudo snap install ant
|
|
sudo snap install bashtop
|
|
sudo snap install cmake
|
|
sudo snap install cppcheck
|
|
sudo snap install firefox
|
|
sudo snap install go
|
|
sudo snap install hugo
|
|
sudo snap install nano
|
|
sudo snap install vlc
|
|
|
|
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
|
"✔️ installed basic snaps in $Elapsed sec"
|
|
exit 0 # success
|
|
} catch {
|
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
|
exit 1
|
|
}
|