summarylogtreecommitdiffstats
path: root/crossover.install
blob: a1cad6c5aee3d4864d3e419a21768eb69f7df287 (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
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 "Done!"
    echo
    echo "This is the demo version, to fully activate it you must have a valid serial and register it."
    echo "More information about this process here:"
    echo "http://www.codeweavers.com/support/docs/crossover-linux/demo"
}

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!"
}