Skip to content

Commit

Permalink
feat(upgrades): add upgrade file for next release
Browse files Browse the repository at this point in the history
  • Loading branch information
trystan2k committed Sep 12, 2020
1 parent c3f95db commit 431a3dd
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions upgrades/from-9.3.0-to-9.4.0.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
#!/usr/bin/env bash

# Export dotfiles folder
DOTFILES_FOLDER="$(pwd | grep -o '.*dotfiles')"

#shellcheck source=/dev/null
source "$DOTFILES_FOLDER"/symlinks/.exports

# Load functions
#shellcheck source=/dev/null
source "$DOTFILES_FOLDER"/lib/functions

_remove() {
# ---------------------------------------------
# Uninstall not needed anymore
# ---------------------------------------------

info "Remove step"
brew uninstall --ignore-dependencies node
}

_add() {
# ---------------------------------------------
# Install new tools
# ---------------------------------------------

info "Add step"

info "Install openconnect"
brew install openconnect

info "Install scrcpy"
brew install scrcpy

info "Install android-platform-tools"
brew cask install android-platform-tools
}

_configure() {
# ---------------------------------------------
# Install new tools
# ---------------------------------------------

info "Configure step"
}

_cleanup () {
# ---------------------------------------------
# Cleanup and finish
# ---------------------------------------------

info "Cleanup step"

#shellcheck source=/dev/null
. "$DOTFILES_FOLDER"/macos/cleanup.sh
}

execute() {
_remove
_add
_configure
_cleanup
}

execute 2>&1 | tee -a "$DOTFILE_LOG_FILE"

0 comments on commit 431a3dd

Please sign in to comment.