POL_GoG_Extract

Informations

Creator Nachricht
Quentin PÂRIS Anonymous

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 14792
Wine: System

Feedbacks

Description

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

Source code

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:

Contribute
Member Nachricht
FuzzyToothpaste Tuesday 16 September 2014 at 2:58
FuzzyToothpaste Anonymous

Nachricht

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

Antworten

Anonymous
Tuesday 16 September 2014 at 20:55
Nope.