OBS User unknown
2008-02-25 16:48:50 +00:00
committed by Git OBS Bridge
parent 6e415507b8
commit d637ce7376
5 changed files with 55 additions and 6 deletions

View File

@@ -14,8 +14,17 @@ WINEPREFIX=${WINEPREFIX:-$HOME/.wine}
# Internal variables; these locations are not too important
WINETRICKS_CACHE=$HOME/winetrickscache
# Default to hiding the directory, by popular demand
test -d $WINETRICKS_CACHE || WINETRICKS_CACHE=$HOME/.winetrickscache
WINETRICKS_TMP=$WINEPREFIX/drive_c/winetrickstmp
case "$1" in
-V|--version)
echo "Winetricks version 20080222. (C) Dan Kegel. LGPL."
exit 0
;;
esac
which "$WINE" > /dev/null
if test "$?" -ne "0"
then
@@ -42,10 +51,12 @@ usage() {
echo ""
echo "Options:"
echo " -q quiet. You must have already agreed to the EULAs."
echo " -v Verbose"
echo " -v verbose"
echo " -V display Version"
echo "Packages:"
echo " art2kmin Access 2000 runtime. License required!"
echo " cc580 Install native common controls 5.80, override comctl32"
echo " colorprofile Install standard RGB color profile"
echo " corefonts Install MS Times, Arial fonts"
echo " dcom98 Install native DCOM, override the Wine implementation"
echo " gdiplus Install gdiplus.dll from pp viewer (got a better idea?)"
@@ -277,6 +288,11 @@ REGEDIT4
_EOF_
while test "$1" != ""
do
case "$1" in
comctl32)
rm -rf $WINEPREFIX/drive_c/windows/winsxs/manifests/x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.2600.2982_none_deadbeef.manifest
;;
esac
echo "\"$1\"=\"native,builtin\"" >> $WINETRICKS_TMP/override-dll.reg
shift
done
@@ -311,6 +327,15 @@ load_cc580() {
#----------------------------------------------------------------
load_colorprofile() {
download . http://download.microsoft.com/download/whistler/hwdev1/1.0/wxp/en-us/ColorProfile.exe 6b72836b32b343c82d0760dff5cb51c2f47170eb
unzip -d $WINETRICKS_TMP $WINETRICKS_CACHE/ColorProfile.exe
mkdir -p $WINEPREFIX/drive_c/windows/system32/spool/drivers/color
cp -f "$WINETRICKS_TMP/sRGB Color Space Profile.icm" $WINEPREFIX/drive_c/windows/system32/spool/drivers/color
}
#----------------------------------------------------------------
load_corefonts() {
# See http://corefonts.sf.net
# TODO: let user pick mirror, check md5;
@@ -840,6 +865,7 @@ do
-v) set -x;;
art2kmin) load_art2kmin;;
cc580) load_cc580;;
colorprofile) load_colorprofile;;
corefonts) load_corefonts;;
dcom98) load_dcom98;;
ffdshow) load_ffdshow;;