blob: a29918c4746cfcea6ab0b04e0cc3b6f8a0e605e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
post_install() {
echo "Updating wineserver link"
CX_ROOT="/opt/cxoffice"
rm "$CX_ROOT/bin/wineserver"
if "$CX_ROOT/bin/wineserver64" -v >/dev/null 2>/dev/null
then
ln -s wineserver64 "$CX_ROOT/bin/wineserver"
else
ln -s wineserver32 "$CX_ROOT/bin/wineserver"
fi
echo "Creating menus and file associations, please wait..."
/opt/cxoffice/bin/cxmenu --crossover --install
/opt/cxoffice/bin/cxassoc --crossover --install
echo "Applying patches, please wait..."
cd /opt/cxoffice/bin
patch -p0 <<'EOF'
--- crossover 2018-09-09 19:57:41.000000000 -0300
+++ crossover.edit 2018-09-09 22:35:05.050299884 -0300
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python2
# (c) Copyright 2009-2015. CodeWeavers, Inc.
import os
@@ -85,17 +85,6 @@
import cxopt
def main():
- # Popup a warn when the user run CrossOver for Deepin in other distro
- result = os.popen("cat /etc/issue | grep Deepin").readlines()
- if not result:
- # pylint: disable=W0601
- global GUI
- import crossover_deepin
- GUI = crossover_deepin.CrossOverDeepin()
- import gtk
- gtk.main()
- return 0
-
# Parse the command line before we do anything that assumes $DISPLAY is set
# so we can handle --help and issue usage errors normally.
opt_parser = cxopt.Parser(usage="%prog [--help]",
EOF
echo "Done!"
}
post_upgrade() {
post_install
}
pre_remove() {
echo "Removing menus and file associations, please wait..."
/opt/cxoffice/bin/cxmenu --crossover --uninstall
/opt/cxoffice/bin/cxassoc --crossover --uninstall
rm -f /usr/local/share/icons/hicolor/*x*/apps/cxmenu-*.png
echo "Done!"
}
|