POL_GoG_Extract

Informations

Créateur Messages
Quentin PÂRIS Anonymous

Information

Cet installateur a été accepté par l'équipe.

Informations

Plate-formes :
Téléchargements : 15099
Wine: System

Retours d'expérience

Description

# Extract a GoG setup file
# 1 : Setup path
# 2 : Expected extracted size
# 3 : Program name (optional)

Code source

if [ "$3" = "" ]; then
        GoGName="$TITLE"
else
        GoGName="$3"
fi
RESOURCE_TO_EXTRACT="$1"
if [ ! "${RESOURCE_TO_EXTRACT::1}" = "/" ]; then
        RESOURCE_TO_EXTRACT="$PWD/$RESOURCE_TO_EXTRACT"
fi

POL_Download_Resource "$SITE/innounp.exe" "d631cc74216ca4cc1adb2a73af959616"

POL_EXTRACT="wine $POL_USER_ROOT/ressources/innounp.exe"

FinalSize="$2"

cd "$WINEPREFIX/drive_c"
$POL_EXTRACT -y -x "$RESOURCE_TO_EXTRACT" &
pid="$(ps aux | grep innounp.exe |  grep -v grep | tail -n 1  | awk '{print $2}')"
POL_Wine_WaitBefore "$TITLE"
sleep 5
if [ ! -e "{tmp}" -a ! -e "{app}" ]; then
        POL_Debug_Fatal "Failed to extract"
fi

echo $pid
ps aux | grep $pid
POL_SetupWindow_DirectoryProgress "$PWD/{app}" "$2" "$pid"
POL_SetupWindow_licence "$(eval_gettext 'Please read this')" "$TITLE" "$PWD/{tmp}/gog_eula.txt" 
echo "Ok"
rm -rf "$PWD/{tmp}"
mv "$PWD/{app}" "$PWD/$GoGName"

Contributions

Filters:

Contribuer
Membre Messages
FuzzyToothpaste Mardi 16 September 2014 à 2:58
FuzzyToothpaste Anonymous

Messages

To match up with other POL_GoG scripts, please change the name from POL_GoG_Extract to POL_GoG_extract.

Réponses

Anonymous
Mardi 16 September 2014 à 20:55
Nope.

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com