-
-
Save plasmadice/11800dacbaf88097ba0a4b1ddc63dea3 to your computer and use it in GitHub Desktop.
BetterDiscord Automatic Manual Installer - Mac OS
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
#!/bin/bash | |
# Required parameters: | |
# @raycast.schemaVersion 1 | |
# @raycast.title Reinstall BetterDiscord | |
# @raycast.mode compact | |
# Optional parameters: | |
# @raycast.icon 🤖 | |
# Documentation: | |
# @raycast.description Reinstall BetterDiscord using a script | |
# @raycast.author iGlitch | |
# @raycast.authorURL https://gist.github.com/iGlitch/fc469247484179beb1ed889604772c12 | |
if [ -d "/Applications/Discord.app" ]; then | |
pkill -x Discord | |
rm -rf /Applications/Discord.app/Contents/Resources/app | |
wget -q https://github.com/rauenzi/BetterDiscordApp/archive/injector.zip | |
unzip -qq injector.zip | |
rm -rf injector.zip | |
mv BetterDiscord-injector app | |
mv app /Applications/Discord.app/Contents/Resources/ | |
chown -R $(whoami) /Applications/Discord.app/Contents/Resources/app | |
echo "BD updated, you may now open Discord" | |
fi | |
if [ -d "/Applications/Discord PTB.app" ]; then | |
pkill -x "Discord PTB" | |
rm -rf "/Applications/Discord PTB.app/Contents/Resources/app" | |
wget -q https://github.com/rauenzi/BetterDiscordApp/archive/injector.zip | |
unzip -qq injector.zip | |
rm -rf injector.zip | |
mv BetterDiscord-injector app | |
mv app "/Applications/Discord PTB.app/Contents/Resources/" | |
chown -R $(whoami) "/Applications/Discord PTB.app/Contents/Resources/app" | |
echo "BD updated, you may now open Discord PTB" | |
fi | |
if [ -d "/Applications/Discord Canary.app" ]; then | |
pkill -x "Discord Canary" | |
rm -rf "/Applications/Discord Canary.app/Contents/Resources/app" | |
wget -q https://github.com/rauenzi/BetterDiscordApp/archive/injector.zip | |
unzip -qq injector.zip | |
rm -rf injector.zip | |
mv BetterDiscord-injector app | |
mv app "/Applications/Discord Canary.app/Contents/Resources/" | |
chown -R $(whoami) "/Applications/Discord Canary.app/Contents/Resources/app" | |
echo "BD updated, you may now open Discord Canary" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment