Du bist hier    
    POL_GoG_Extract
Informations
| Creator | Nachricht | 
|---|---|
| Quentin PÂRIS   
 | InformationThis installer has been approved by the team. InformationsPlatforms:   Feedbacks0 0 Description# Extract a GoG setup file
 Source codeif [ "$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   
 | NachrichtTo match up with other POL_GoG scripts, please change the name from POL_GoG_Extract to POL_GoG_extract. AntwortenTuesday 16 September 2014 at 20:55                                                                                     | 
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