mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-25 19:38:17 +02:00
Added Blender to install-basic-snaps.ps1
This commit is contained in:
parent
3cca0d75d9
commit
03f3b98232
@ -2,10 +2,10 @@
|
|||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Installs basic Snap apps
|
Installs basic Snap apps
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
This PowerShell script installs 20 basic Snap apps.
|
This PowerShell script installs 20 basic snap apps.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./install-basic-snaps.ps1
|
PS> ./install-basic-snaps.ps1
|
||||||
⏳ Installing 20 Snap apps (sorted alphabetically)...
|
⏳ Installing 20 snap apps (sorted alphabetically)...
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -16,11 +16,11 @@ try {
|
|||||||
$StopWatch = [system.diagnostics.stopwatch]::startNew()
|
$StopWatch = [system.diagnostics.stopwatch]::startNew()
|
||||||
if (!$IsLinux) { throw "Only Linux currently support snaps" }
|
if (!$IsLinux) { throw "Only Linux currently support snaps" }
|
||||||
|
|
||||||
"⏳ Installing 20 Snap apps (sorted alphabetically)..."
|
"⏳ Installing 20 snap apps (sorted alphabetically)..."
|
||||||
& sudo snap install ant
|
& sudo snap install ant
|
||||||
& sudo snap install audacity
|
& sudo snap install audacity
|
||||||
& sudo snap install bashtop
|
& sudo snap install bashtop
|
||||||
& sudo snap install blender
|
& sudo snap install blender --classic
|
||||||
& sudo snap install chromium
|
& sudo snap install chromium
|
||||||
& sudo snap install cmake
|
& sudo snap install cmake
|
||||||
& sudo snap install cups
|
& sudo snap install cups
|
||||||
@ -39,7 +39,7 @@ try {
|
|||||||
& sudo snap install plexmediaserver
|
& sudo snap install plexmediaserver
|
||||||
|
|
||||||
[int]$elapsed = $StopWatch.Elapsed.TotalSeconds
|
[int]$elapsed = $StopWatch.Elapsed.TotalSeconds
|
||||||
"✅ Installed 20 Snap apps in $($elapsed)s."
|
"✅ Installed 20 snap apps in $($elapsed)s."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
Loading…
Reference in New Issue
Block a user