Changes between Initial Version and Version 1 of UsingWine


Ignore:
Timestamp:
Feb 1, 2008, 4:57:50 AM (17 years ago)
Author:
davidf@sjsoft.com
Comment:

added notes on running Safari with custom webkit under wine

Legend:

Unmodified
Added
Removed
Modified
  • UsingWine

    v1 v1  
     1= Using Wine with WebKit, Safari, Drosera, etc =
     2
     3[http://www.winehq.org/ Wine] is a Windows API implementation for UNIX (including Linux etc).
     4
     5The Safari Windows beta [http://appdb.winehq.org/objectManager.php?sClass=version&iId=8248 runs on Wine] with a few glitches.
     6
     7== Running Safari with the WebKit Nightlies ==
     8
     9This script shows how to launch Safari with the WebKit nightlies. First unzip the WebKit nightly download in a directory parallel to Safari.
     10
     11There are scripts included in the WebKit nightlies but they don't work too well under Wine's console
     12
     13Note that Drosera does not yet work
     14
     15{{{
     16webkit_dir="`dirname "$0"`"
     17webkit_dir="`cd "$webkit_dir" ; pwd`"
     18safari_dir="`cd "$webkit_dir" ; cd ../Safari ; pwd`"
     19export WINEDLLPATH=$WINEDLLPATH:$webkit_dir:$safari_dir
     20export WINEPREFIX=~/.wine
     21
     22launch_program=safari_custom_webkit
     23[[ "$1" != "" ]] && launch_program="$1"
     24
     25# to launch Safari with the builtin webkit
     26if [ "$launch_program" == "safari_builtin_webkit" ]
     27  then
     28    cd "$safari_dir"
     29    wine Safari.exe
     30  fi
     31
     32# to launch Safari with custom webkit
     33if [ "$launch_program" == "safari_custom_webkit" ]
     34  then
     35    cd "$webkit_dir"
     36    cp -upv "$safari_dir/Safari.exe" .
     37    cp -upv "$safari_dir"/*.dll .
     38    for resource_dir in "$safari_dir"/*.resources
     39      do
     40        base_resource_dir="`basename "$resource_dir"`"
     41        [[ -d "$base_resource_dir" ]] && rm -fr "$base_resource_dir"
     42        cp -pr "$resource_dir" .
     43      done
     44    export PATH="$webkit_dir":"$safari_dir":"$PATH"
     45    wine Safari.exe /customWebKit
     46  fi
     47
     48# to launch Drosera
     49if [ "$launch_program" == "drosera" ]
     50  then
     51    cd "$webkit_dir"
     52    export PATH="$webkit_dir":"$safari_dir":"$PATH"
     53    wine Drosera.exe
     54  fi
     55
     56}}}