-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(upgrades): add upgrade file for next release
- Loading branch information
Showing
1 changed file
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |