This commit is contained in:
|| Prof. - Xadk3!#0000 || @naryal2580 2023-05-22 21:41:51 +05:30
parent 7958464d6e
commit 083065721f

13
scripts/pkgoa.sh Executable file
View file

@ -0,0 +1,13 @@
#!/bin/bash
PLATFORM="linux" # osx (for dmg)
axel -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
'
dpkg -i discord-0.AP.deb