-
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.
create dotme-apps ; google sdk for dotme-apps ; package updates (#66)
- Loading branch information
Showing
15 changed files
with
1,143 additions
and
950 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
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,39 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Install apps | ||
# | ||
# Alternative approach to brew where brew is not appropriate, e.g. with cask in | ||
# brew that requires admin password to install (and hence requires user | ||
# interaction) | ||
# | ||
|
||
set -e | ||
$(shim) && cd ${ME} && . bin/i.sh | ||
should-run -m 7 $@ $0 || exit 0 | ||
|
||
# | ||
# Manual gcloud install process. Prefered over brew, since we have this in brew | ||
# brew update requires users' password. Furthermore it is not possible to pin a cask | ||
# in brew to control the update process in brew. Requiring a password breaks | ||
# non-interactive flow which disrupts general day-to-day processes. | ||
# | ||
# TODO : Consider update process of this, does gcloud itself warn us if it is | ||
# out of date. When I run into this, I will update this process to handle | ||
# updates. | ||
if ! command -v gcloud 2>/dev/null ; then | ||
log:: "gcloud is not installed" | ||
downloaded=~/local/gcloud/google-cloud-cli*.tar.gz | ||
echo $downloaded | ||
mkdir -p ~/local/gcloud | ||
if [ ! -f ${downloaded} ] ; then | ||
log:: "Download latest tar.gz from https://cloud.google.com/sdk/docs/install-sdk to ~/local/gcloud" | ||
log:: "... cd ~/local/gcloud ; curl -O URL" | ||
log:: "... and then rerun this" | ||
else | ||
cd ~/local/gcloud | ||
echo "Installing from "${downloaded} | ||
tar xvf ${downloaded} | ||
fi | ||
fi | ||
|
||
should-run -fu $0 |
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 |
---|---|---|
|
@@ -44,6 +44,9 @@ else | |
fish_add_path /usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.10/bin | ||
end | ||
|
||
# Google cloud | ||
fish_add_path ~/local/gcloud/google-cloud-sdk/bin | ||
|
||
# Android development | ||
fish_add_path ~/Library/Android/sdk/emulator | ||
fish_add_path ~/Library/Android/sdk/platform-tools | ||
|
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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
should-run -m 7 $0 || exit 0 | ||
should-run -m 7 $@ $0 || exit 0 | ||
$(shim) && cd ${ME} && . bin/i.sh | ||
|
||
log:: "configuring rust" | ||
|
||
if ! command -v cargo ; then | ||
log:: "initialising rust" | ||
rustup-init -y | ||
fi | ||
|
||
rustup update | ||
cargo install stylua | ||
|
||
should-run -fu $0 | ||
|
||
|
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
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
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
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
Oops, something went wrong.