🔥 Remove Ubuntu-specific code.

This commit is contained in:
punkfairie 2024-02-11 10:31:33 -08:00
parent 606a42a5a9
commit a2dac20a5f
No known key found for this signature in database
GPG key ID: 0858B0F48128A755
4 changed files with 143 additions and 172 deletions

View file

@ -12,6 +12,4 @@ npm_install "gulp CLI" gulp-cli
if [ "$(uname)" = Darwin ] if [ "$(uname)" = Darwin ]
brew_install WebStorm webstorm --cask brew_install WebStorm webstorm --cask
else if [ "$(uname)" = Linux ] && cmd_exists snap
execute "sudo snap install webstorm --classic" WebStorm
end end

View file

@ -36,29 +36,4 @@ if [ "$(uname)" = Darwin ]
# Utilities. # Utilities.
brew_install "The Unarchiver" the-unarchiver --cask brew_install "The Unarchiver" the-unarchiver --cask
else if [ "$(uname)" = Linux ] && cmd_exists snap
# Networking.
if ! cmd_exists windscribe
execute "sudo wget https://github.com/Windscribe/Desktop-App/releases/download/v2.8.6/windscribe_2.8.6_amd64.deb -O /tmp/ws.deb \
&& sudo apt install /tmp/ws.deb" \
Windscribe
end
execute "sudo snap install firefox" Firefox
execute "sudo snap install qbittorrent-arnatious" qBittorrent
# Social.
execute "sudo snap install discord" Discord
# TODO: add check for already installed.
execute "sudo wget https://github.com/BetterDiscord/Installer/releases/latest/download/BetterDiscord-Linux.AppImage -O /tmp/bd.AppImage \
&& sudo chmod u+x /tmp/bd.AppImage \
&& /tmp/bd.AppImage" \
BetterDiscord
# Productivity.
execute "sudo snap install obsidian --classic" Obsidian
# Media.
execute "sudo snap install vlc" VLC
end end

View file

@ -13,6 +13,4 @@ brew_install Meilisearch meilisearch "" "" true
if [ "$(uname)" = Darwin ] if [ "$(uname)" = Darwin ]
brew_install "Laravel Herd" herd --cask brew_install "Laravel Herd" herd --cask
brew_install PhpStorm phpstorm --cask brew_install PhpStorm phpstorm --cask
else if [ "$(uname)" = Linux ] && cmd_exists snap
execute "sudo snap install phpstorm --classic" PhpStorm
end end

View file

@ -202,7 +202,7 @@ git_init() {
main() { main() {
if [ "$(uname)" != "Linux" ] && [ "$(uname)" != "Darwin" ]; then if [ "$(uname)" != "Linux" ] && [ "$(uname)" != "Darwin" ]; then
printf "Sorry, this script is intended only for macOS and Ubuntu!" printf "Sorry, this script is intended only for macOS and Linux!"
return 1 return 1
fi fi