@@ -12,37 +12,23 @@ PREFIX="spelunky" WORKING_WINE_VERSION="1.3.24" -if [ "$POL_LANG" = "fr" ]; then -LNG_DOWNLOAD_RUN="Téléchargement en cours..." -LNG_INSTALL_RUN="Installation en cours..." -LNG_SUCCES="$TITLE\na été installé avec succès !" -else -LNG_DOWNLOAD_RUN="Downloading..." -LNG_INSTALL_RUN="Installation in progress..." -LNG_SUCCES="$TITLE\nhas been installed successfully." -fi - +POL_Debug_Init POL_SetupWindow_Init POL_SetupWindow_presentation "$TITLE" "MossMouth" "http://www.mossmouth.com/" "Python" "$PREFIX" -POL_SetupWindow_install_wine "$WORKING_WINE_VERSION" -Use_WineVersion "$WORKING_WINE_VERSION" +POL_Wine_SelectPrefix "$PREFIX" +POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" + +mkdir -p "$WINEPREFIX/drive_c/spelunky" +cd "$WINEPREFIX/drive_c/spelunky" -select_prefix "$POL_USER_ROOT/wineprefix/$PREFIX" -POL_SetupWindow_prefixcreate +POL_Download "http://www.derekyu.com/games/spelunky_1_1.zip" "353593f4c205f96f438e38c9ad6bb667" -mkdir -p "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/Spelunky" -cd "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/Spelunky" -POL_SetupWindow_download "$LNG_DOWNLOAD_RUN" "$TITLE" "http://www.derekyu.com/games/spelunky_1_1.zip" -POL_SetupWindow_wait_next_signal "$LNG_INSTALL_RUN" "$TITLE" +POL_SetupWindow_wait "$(eval_gettext "Installation in progress...")" "$TITLE" unzip "spelunky_1_1.zip" -POL_SetupWindow_detect_exit -rm "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/Spelunky/spelunky_1_1.zip" -POL_SetupWindow_auto_shortcut "$PREFIX" "Spelunky.exe" "$TITLE" -Set_WineVersion_Assign "$WORKING_WINE_VERSION" "$TITLE" -POL_SetupWindow_message "$LNG_SUCCES" "$TITLE" +POL_Shortcut "Spelunky.exe" "$TITLE" POL_SetupWindow_Close -exit +exit \ No newline at end of file
@@ -1,5 +1,6 @@ #!/bin/bash # Date : (2011-07-17 17-53) +# Last revision : (2011-07-17 17-53) # Wine version used : 1.3.24 # Distribution used to test : Debian Squeeze # Author : Python @@ -31,13 +32,13 @@ select_prefix "$POL_USER_ROOT/wineprefix/$PREFIX" POL_SetupWindow_prefixcreate -mkdir -p "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/Program Files/Spelunky" -cd "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/Program Files/Spelunky" +mkdir -p "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/Spelunky" +cd "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/Spelunky" POL_SetupWindow_download "$LNG_DOWNLOAD_RUN" "$TITLE" "http://www.derekyu.com/games/spelunky_1_1.zip" POL_SetupWindow_wait_next_signal "$LNG_INSTALL_RUN" "$TITLE" unzip "spelunky_1_1.zip" POL_SetupWindow_detect_exit -rm "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/Program Files/Spelunky/spelunky_1_1.zip" +rm "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/Spelunky/spelunky_1_1.zip" POL_SetupWindow_auto_shortcut "$PREFIX" "Spelunky.exe" "$TITLE" Set_WineVersion_Assign "$WORKING_WINE_VERSION" "$TITLE"
No change were made in the code
@@ -0,0 +1,47 @@ +#!/bin/bash +# Date : (2011-07-17 17-53) +# Wine version used : 1.3.24 +# Distribution used to test : Debian Squeeze +# Author : Python + +[ "$PLAYONLINUX" = "" ] && exit +source "$PLAYONLINUX/lib/sources" + +TITLE="Spelunky" +PREFIX="spelunky" +WORKING_WINE_VERSION="1.3.24" + +if [ "$POL_LANG" = "fr" ]; then +LNG_DOWNLOAD_RUN="Téléchargement en cours..." +LNG_INSTALL_RUN="Installation en cours..." +LNG_SUCCES="$TITLE\na été installé avec succès !" +else +LNG_DOWNLOAD_RUN="Downloading..." +LNG_INSTALL_RUN="Installation in progress..." +LNG_SUCCES="$TITLE\nhas been installed successfully." +fi + +POL_SetupWindow_Init + +POL_SetupWindow_presentation "$TITLE" "MossMouth" "http://www.mossmouth.com/" "Python" "$PREFIX" + +POL_SetupWindow_install_wine "$WORKING_WINE_VERSION" +Use_WineVersion "$WORKING_WINE_VERSION" + +select_prefix "$POL_USER_ROOT/wineprefix/$PREFIX" +POL_SetupWindow_prefixcreate + +mkdir -p "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/Program Files/Spelunky" +cd "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/Program Files/Spelunky" +POL_SetupWindow_download "$LNG_DOWNLOAD_RUN" "$TITLE" "http://www.derekyu.com/games/spelunky_1_1.zip" +POL_SetupWindow_wait_next_signal "$LNG_INSTALL_RUN" "$TITLE" +unzip "spelunky_1_1.zip" +POL_SetupWindow_detect_exit +rm "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/Program Files/Spelunky/spelunky_1_1.zip" + +POL_SetupWindow_auto_shortcut "$PREFIX" "Spelunky.exe" "$TITLE" +Set_WineVersion_Assign "$WORKING_WINE_VERSION" "$TITLE" +POL_SetupWindow_message "$LNG_SUCCES" "$TITLE" + +POL_SetupWindow_Close +exit