File tree Expand file tree Collapse file tree 4 files changed +28
-0
lines changed
Expand file tree Collapse file tree 4 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -27,3 +27,4 @@ Temporary Items
2727
2828# Third-party Application files and folder
2929.nova /
30+ * .code-workspace
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ installStrongbox=false
8787installTelegram=false
8888installTransmission=false
8989installTresorit=false
90+ installVisualStudioCode=false
9091installWarp=false
9192installXnapper=false
9293
Original file line number Diff line number Diff line change @@ -398,6 +398,12 @@ if [ "$installWarp" = true ]; then
398398 installAppWarp
399399 showinfo " " " confirm"
400400fi
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 --
402408if [ " $installXcodeTools " = true ] || [ " $installHomebrew " = true ]; then
403409 # !! NOTE: Pre-requisite for Homebrew !!
You can’t perform that action at this time.
0 commit comments