16 lines
439 B
Bash
Executable file
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
|