Skip to content

Commit

Permalink
fix pdf export, use aria2c, remove desktop launcher
Browse files Browse the repository at this point in the history
  • Loading branch information
Botspot authored Feb 16, 2024
1 parent a378c63 commit 38d2c84
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions apps/WPS Office/install-64
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,16 @@ fi

# download wps office with custom command
rm -f /tmp/wps-office.deb
wget --header="Referer: https://linux.wps.cn/" "https://wps-linux-personal.wpscdn.cn/wps/download/ep/Linux2019/$(echo $version | sed 's/.*\.//g')/wps-office_${version}_arm64.deb" -c -O /tmp/wps-office.deb || exit 1
wget --header="Referer: https://linux.wps.cn/" "https://wps-linux-personal.wpscdn.cn/wps/download/ep/Linux2019/$(echo $version | sed 's/.*\.//g')/wps-office_${version}_arm64.deb" -O /tmp/wps-office.deb || exit 1

install_packages "$firejail_package" /tmp/wps-office.deb || exit 1
#install libwebp6 and libtiff5 to get PDF export working
if package_available libwebp6 && package_available libtiff5 ;then
install_packages "$firejail_package" /tmp/wps-office.deb libwebp6 libtiff5 ttf-mscorefonts-installer || exit 1
else
install_packages "$firejail_package" /tmp/wps-office.deb ttf-mscorefonts-installer "http://ftp.debian.org/debian/pool/main/libw/libwebp/libwebp6_0.6.1-2.1+deb11u2_arm64.deb" "http://ftp.debian.org/debian/pool/main/t/tiff/libtiff5_4.2.0-1+deb11u5_arm64.deb" || exit 1
fi
rm -f /tmp/wps-office.deb

#Prevent application from connecting to the internet
sudo sed -i 's|^Exec=|Exec=firejail --net=none --noblacklist=~/.local/share/Kingsoft --noblacklist=~/.config/Kingsoft |g' /usr/share/applications/wps*.desktop
rm -f ~/Desktop/wps-office-prometheus.desktop

0 comments on commit 38d2c84

Please sign in to comment.