Created
January 9, 2024 21:42
-
-
Save alyssadev/425769562678a00eb2cda2b51a9c82a6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
# mkdist.sh | |
apt update; apt install -y jq libfuse2 wget file | |
wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage | |
chmod +x *.AppImage | |
mkdir discord | |
cd discord | |
wget https://discord.com/api/download\?platform\=linux\&format\=tar.gz | |
mv * discord.tar.gz | |
tar -xf discord.tar.gz | |
cp ../AppRun Discord/. | |
chmod +x Discord/AppRun | |
cp ../discord.desktop Discord/. | |
../appimagetool-x86_64.AppImage Discord -n -u 'gh-releases-zsync|srevinsaju|discord-appimage|stable|Discord*.AppImage.zsync' Discord-$(cat Discord/resources/build_info.json | jq -r .version)-x86_64.AppImage | |
mkdir ../dist | |
mv Discord*.AppImage ../dist/. | |
mv *.zsync ../dist/. | |
cd .. | |
rm -rf discord | |
mkdir discord | |
cd discord | |
wget https://discord.com/api/download/ptb\?platform\=linux\&format\=tar.gz | |
mv * discord.tar.gz | |
tar -xf discord.tar.gz | |
cp ../AppRun DiscordPTB/. | |
chmod +x DiscordPTB/AppRun | |
sed 's,BIN="$APPDIR/Discord",BIN="$APPDIR/DiscordPTB",g' -i DiscordPTB/AppRun | |
cp ../discord.desktop DiscordPTB/. | |
rm DiscordPTB/discord*ptb*.desktop | |
ls DiscordPTB | |
../appimagetool-x86_64.AppImage DiscordPTB -n -u 'gh-releases-zsync|srevinsaju|discord-appimage|canary|DiscordPTB*.AppImage.zsync' DiscordPTB-$(cat DiscordPTB/resources/build_info.json | jq -r .version)-x86_64.AppImage | |
mv Discord*.AppImage ../dist/. | |
mv *.zsync ../dist/. | |
cd .. | |
rm -rf discord | |
mkdir discord | |
cd discord | |
wget https://discord.com/api/download/canary\?platform\=linux\&format\=tar.gz | |
mv * discord.tar.gz | |
tar -xf discord.tar.gz | |
cp ../AppRun DiscordCanary/. | |
chmod +x DiscordCanary/AppRun | |
sed 's,BIN="$APPDIR/Discord",BIN="$APPDIR/DiscordCanary",g' -i DiscordCanary/AppRun | |
cp ../discord.desktop DiscordCanary/. | |
rm DiscordCanary/discord*canary*.desktop | |
ls DiscordCanary | |
../appimagetool-x86_64.AppImage DiscordCanary -n -u 'gh-releases-zsync|srevinsaju|discord-appimage|canary|DiscordCanary*.AppImage.zsync' DiscordCanary-$(cat DiscordCanary/resources/build_info.json | jq -r .version)-x86_64.AppImage | |
mv Discord*.AppImage ../dist/. | |
mv *.zsync ../dist/. | |
cd ../dist | |
chmod +x *.AppImage | |
cd .. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment