I think I got mono and gecko working for distros that do not have them available from the package manager. This means Ubuntu and Debian should have a lot less trouble with AGM, and dare I say maybe even Mac?
This commit is contained in:
parent
e0cdfcb2ed
commit
b7c34a2dbe
@ -256,7 +256,7 @@ download() {
|
|||||||
# Skip if the item is in cache.
|
# Skip if the item is in cache.
|
||||||
test -e "${cache}/${dest}" && continue
|
test -e "${cache}/${dest}" && continue
|
||||||
if ! wget -4 -O "${cache}/${dest}" "${i}" ; then
|
if ! wget -4 -O "${cache}/${dest}" "${i}" ; then
|
||||||
echo "Could not download..."
|
echo "Could not download \"$i\"..."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
@ -283,8 +283,19 @@ install_wine_bottle() {
|
|||||||
export WINEPREFIX="$HOME/.local/wine/${bottle}"
|
export WINEPREFIX="$HOME/.local/wine/${bottle}"
|
||||||
# Arguments to the function are dependancies to be installed.
|
# Arguments to the function are dependancies to be installed.
|
||||||
(DISPLAY="" wineboot -u
|
(DISPLAY="" wineboot -u
|
||||||
wine msiexec /i z:$(find /usr/share/wine/mono -name "wine-mono*x86.msi") /quiet
|
# Get location of mono and gecko.
|
||||||
wine msiexec /i z:$(find /usr/share/wine/gecko -name "wine-gecko*x86.msi") /quiet
|
monoPath="$(find /usr/share/wine/mono -name "wine-mono*x86.msi")"
|
||||||
|
geckoPath="$(find /usr/share/wine/gecko -name "wine-gecko*x86.msi")"
|
||||||
|
if [[ -z "$monoPath" ]]; then
|
||||||
|
download 'http://dl.winehq.org/wine/wine-mono/6.0.0/wine-mono-6.0.0-x86.msi'
|
||||||
|
monoPath="${cache}/wine-mono-6.0.0-x86.msi"
|
||||||
|
fi
|
||||||
|
if [[ -z "$geckoPath" ]]; then
|
||||||
|
download 'http://dl.winehq.org/wine/wine-gecko/2.40/wine_gecko-2.40-x86.msi'
|
||||||
|
geckoPath="${cache}/wine_gecko-2.40-x86.msi"
|
||||||
|
fi
|
||||||
|
wine msiexec /i z:"$monoPath" /quiet
|
||||||
|
wine msiexec /i z:"$geckoPath" /quiet
|
||||||
winetricks -q $@ ${winVer:-winxp} ${winetricksSettings}) | dialog --progressbox "Installing wine bottle, please wait..." -1 -1
|
winetricks -q $@ ${winVer:-winxp} ${winetricksSettings}) | dialog --progressbox "Installing wine bottle, please wait..." -1 -1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user