Changes between Version 1 and Version 2 of UsingWine


Ignore:
Timestamp:
Feb 1, 2008 5:20:15 AM (16 years ago)
Author:
davidf@sjsoft.com
Comment:

rearranged scripts into separate ones per program

Legend:

Unmodified
Added
Removed
Modified
  • UsingWine

    v1 v2  
    77== Running Safari with the WebKit Nightlies ==
    88
    9 This script shows how to launch Safari with the WebKit nightlies. First unzip the WebKit nightly download in a directory parallel to Safari.
     9It is possible to launch Safari with the [Nightly Builds WebKit nightlies]. First unzip the WebKit nightly download in a directory parallel to Safari, then use the following scripts (there are scripts included in the WebKit nightlies but they don't work too well under Wine's console)
    1010
    11 There are scripts included in the WebKit nightlies but they don't work too well under Wine's console
    12 
    13 Note that Drosera does not yet work
    14 
     11=== General Environment setup ===
    1512{{{
    1613webkit_dir="`dirname "$0"`"
     
    1916export WINEDLLPATH=$WINEDLLPATH:$webkit_dir:$safari_dir
    2017export WINEPREFIX=~/.wine
     18}}}
    2119
    22 launch_program=safari_custom_webkit
    23 [[ "$1" != "" ]] && launch_program="$1"
     20=== Launching Safari as-is (builtin webkit) ===
     21Set up the above environment, then...
     22{{{
     23cd "$safari_dir"
     24wine Safari.exe
     25}}}
    2426
    25 # to launch Safari with the builtin webkit
    26 if [ "$launch_program" == "safari_builtin_webkit" ]
    27   then
    28     cd "$safari_dir"
    29     wine Safari.exe
    30   fi
     27=== Launching Safari with custom webkit ===
     28Set up the above environment, then...
     29{{{
     30cd "$webkit_dir"
     31# copy Safari stuff over WebKit (without replacing newer dlls)
     32cp -upv "$safari_dir/Safari.exe" .
     33cp -upv "$safari_dir"/*.dll .
     34for resource_dir in "$safari_dir"/*.resources
     35  do
     36    base_resource_dir="`basename "$resource_dir"`"
     37    [[ -d "$base_resource_dir" ]] && rm -fr "$base_resource_dir"
     38    cp -pr "$resource_dir" .
     39  done
     40# now actually run
     41export PATH="$webkit_dir":"$safari_dir":"$PATH"
     42wine Safari.exe /customWebKit
     43}}}
    3144
    32 # to launch Safari with custom webkit
    33 if [ "$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
    49 if [ "$launch_program" == "drosera" ]
    50   then
    51     cd "$webkit_dir"
    52     export PATH="$webkit_dir":"$safari_dir":"$PATH"
    53     wine Drosera.exe
    54   fi
    55 
     45=== Launching  Drosera ===
     46Note that Drosera does not yet work - this is how to try though (after setting up the above environment)...
     47{{{
     48cd "$webkit_dir"
     49export PATH="$webkit_dir":"$safari_dir":"$PATH"
     50wine Drosera.exe
    5651}}}