OpenAsar/scripts/pkgoa.sh
|| Prof. - Xadk3!#0000 || @naryal2580 ccc5f78652 fix dl bs.
2023-05-29 22:07:06 +05:30

16 lines
439 B
Bash
Executable file

#!/bin/bash
rm *.st
PLATFORM="linux" # osx (for dmg)
axel -an 9 "https://discordapp.com/api/download/ptb?platform=linux" -o discord-ptb.deb # win (for exe)
fakeroot sh -c '
mkdir tmp
dpkg-deb -R discord-ptb.deb tmp
# edit DEBIAN/postinst # mv .?app.asar ./app.asar
cp -f ./app.asar tmp/usr/share/discord-ptb/resources/app.asar
dpkg-deb -b tmp discord-0.AP.deb
rm -rf tmp
'
rm discord-ptb.deb
gdebi discord-0.AP.deb
rm *.deb