2023-05-22 16:11:51 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-05-29 16:37:06 +00:00
|
|
|
rm *.st
|
2023-05-22 16:11:51 +00:00
|
|
|
PLATFORM="linux" # osx (for dmg)
|
2023-05-22 16:16:02 +00:00
|
|
|
axel -an 9 "https://discordapp.com/api/download/ptb?platform=linux" -o discord-ptb.deb # win (for exe)
|
2023-05-22 16:11:51 +00:00
|
|
|
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
|
|
|
|
'
|
2023-05-23 04:55:02 +00:00
|
|
|
rm discord-ptb.deb
|
|
|
|
gdebi discord-0.AP.deb
|
|
|
|
rm *.deb
|