Skip to content

Commit 976d922

Browse files
Adds Application «Visual Studio Code»
1 parent 2642e47 commit 976d922

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ Temporary Items
2727

2828
# Third-party Application files and folder
2929
.nova/
30+
*.code-workspace

Applications/VSCode.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env zsh
2+
3+
function installAppVSCode(){
4+
# --> Version to use (default: latest)
5+
local version="latest"
6+
# --> Set Download URL
7+
if checkIfAppleSilicion; then
8+
# ...for ARM-based Apple Silicon Macs
9+
local downloadUrl="https://update.code.visualstudio.com/$version/cli-darwin-arm64/stable"
10+
else
11+
# ...for Intel-based Macs / Universal (Fallback)
12+
local downloadUrl="https://update.code.visualstudio.com/$version/darwin-universal/stable"
13+
fi
14+
# --> Download & Unzip
15+
downloadFromUrl "$downloadUrl" "VSCode.zip"
16+
unzipFile "VSCode.zip"
17+
# --> Move to Applications
18+
moveApplication "Visual Studio Code.app"
19+
}
20+
export -f installAppVSCode

config.default.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ installStrongbox=false
8787
installTelegram=false
8888
installTransmission=false
8989
installTresorit=false
90+
installVisualStudioCode=false
9091
installWarp=false
9192
installXnapper=false
9293

run.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,12 @@ if [ "$installWarp" = true ]; then
398398
installAppWarp
399399
showinfo "" "confirm"
400400
fi
401+
# -- Visual Studio Code --
402+
if [ "$installVisualStudioCode" = true ]; then
403+
showinfo "Installing Visual Studio Code:" "note"
404+
installAppVSCode
405+
showinfo "" "confirm"
406+
fi
401407
# -- Xcode Command Line Tools --
402408
if [ "$installXcodeTools" = true ] || [ "$installHomebrew" = true ]; then
403409
# !! NOTE: Pre-requisite for Homebrew !!

0 commit comments

Comments
 (0)