aboutsummarylogtreecommitdiffstats
path: root/shadow-beta.install
diff options
context:
space:
mode:
authoragentcobra2018-10-27 11:00:47 +0200
committeragentcobra2018-10-27 11:00:47 +0200
commit3b336097881dfa93fe9fa33dc92b7d7ef2aa9724 (patch)
tree8d59daba6d632edb31f6fbc548312eefbe8e2fff /shadow-beta.install
parent669709b71321c9d701b3a9cda548a391e16674dc (diff)
downloadaur-3b336097881dfa93fe9fa33dc92b7d7ef2aa9724.tar.gz
add perl files
Diffstat (limited to 'shadow-beta.install')
-rw-r--r--shadow-beta.install32
1 files changed, 5 insertions, 27 deletions
diff --git a/shadow-beta.install b/shadow-beta.install
index a35d08b16823..8f2aa683bd29 100644
--- a/shadow-beta.install
+++ b/shadow-beta.install
@@ -7,26 +7,6 @@ post_install() {
# Create the link to the binary
ln -sf '/opt/shadowbeta/shadow-wrapper.pl' '/usr/bin/shadow-beta'
-
- ## Fix fonts
-
- # # Truetype directory exists (not a symlink !)
- # if [ -d /usr/share/fonts/truetype ]; then
- #
- # # Create TTF folder if not exists
- # if [ ! -d /usr/share/fonts/TTF ]; then
- # mkdir /usr/share/fonts/TTF
- # fi
- #
- # # Move everything in the TTF folder
- # mv /usr/share/fonts/truetype/* /usr/share/fonts/TTF/
- # rm -R /usr/share/fonts/truetype
- # fi
- #
- # # Create a symlink to TTF folder
- # if [ ! -e /usr/share/fonts/truetype ]; then
- # ln -sf "/usr/share/fonts/TTF" "/usr/share/fonts/truetype"
- # fi
}
post_remove() {
@@ -38,17 +18,15 @@ post_remove() {
fi
done
}
+
pre_upgrade(){
- if [ -d "/opt/Shadow Beta" ];then
- rm -r "/opt/Shadow Beta"
+ # Delete the old version of Shadow
+ if [ -d "/opt/Shadow Beta" ]; then
+ rm -r "/opt/Shadow Beta"
fi
}
post_upgrade(){
+ # Replace current shortcut with the new one
ln -sf '/opt/shadowbeta/shadow-wrapper.pl' '/usr/bin/shadow-beta'
- echo "New Hotkeys (since 0.8.62-1)"
- echo " • lShift-lCtrl-Esc Open the Windows task manager"
- echo " • lShift-lCtrl-Q Stop the stream"
- echo " • lShift-lCtrl-F Toggle fullscreen or windowed"
- echo " • lShift-lCtrl-G Toggle input grab"
}