Linux/Mac Support for Private Server VIA playonlinux "Client"

08/31/2011 00:54 pulse40#1
Any idea if this can be reverse engineered for the installers for as many private server distributions as possible for linux for those not savvy with Wine?

I've been messing around on Debian and I think this script for Playonlinux might help for more universal Linux compatibility.
Below is the source for the playonlinux script file, I'm pretty sure it can be adapted for the private servers, I just don't know how. I'm not a programmer, but I know there are a few of you on this forum who are.

Code:
  
   1.      #!/bin/bash
   2.      # Last revision : (2011-08-20 15-00)
   3.      # Tested : Debian 6.0, Mac OSX
   4.      # Author : Tinou
   5.      # Script licence : GPLv3
   6.      #
   7.      # This script is designed for PlayOnLinux and PlayOnMac.
   8.      #
   9.      # * Revision (2011-08-20 13-00)
  10.      #  - Update for POL/POM 4
  11.       
  12.      [ "$PLAYONLINUX" = "" ] && exit 0
  13.      source "$PLAYONLINUX/lib/sources"
  14.       
  15.      TITLE="Shaiya Online"
  16.       
  17.      POL_Debug_Init
  18.      POL_SetupWindow_Init
  19.      POL_SetupWindow_presentation "$TITLE" "Aeria Games" "http://www.aeriagames.com/" "Tinou" "Shaiya"
  20.       
  21.      [ "$POL_LANG" = "fr" ] && link="http://fr.shaiya.aeriagames.com/download" || link="http://us.shaiya.aeriagames.com/download"
  22.      POL_Browser "$link"
  23.       
  24.      #Préparation de Wine
  25.      POL_Wine_SelectPrefix "Shaiya"
  26.      POL_Wine_PrefixCreate "1.3.26"
  27.      POL_Call POL_Install_vcrun2008
  28.      if [ "$POL_SELECTED_FILE" = "" ]
  29.      then
  30.      POL_SetupWindow_message "$TITLE setup file is needed before to continue....\n\nDownload it here:\n\n$link" "$TITLE"
  31.      POL_SetupWindow_browse "Where is the installation file of $TITLE?" "$TITLE"
  32.      CHEMIN="$APP_ANSWER"
  33.      else
  34.      CHEMIN="$POL_SELECTED_FILE"
  35.      fi
  36.      POL_SetupWindow_wait "Installing $TITLE" "$TITLE"
  37.       
  38.      POL_Wine "$CHEMIN"
  39.      POL_Wine_WaitExit
  40.       
  41.      #CREATION LANCEUR
  42.      POL_Shortcut "game.exe" "$TITLE"
  43.       
  44.      POL_SetupWindow_message "$TITLE has been successfully installed" "$TITLE"
  45.      POL_SetupWindow_Close
  46      exit
I obtained it here: [Only registered and activated users can see links. Click Here To Register...]

I hope it helps you server admins. :)