The forum

SubRip

Author Replies
puk007 Tuesday 1 September 2009 at 11:32
puk007Anonymous

Version of wine : 1.1.28
Distribution : Ubuntu
Version of the distribution : 9.04 (Jaunty)
Graphics card : Nvidia, geforce G105M
Comments : Everything works great.

script follows:

#!/bin/bash
# Date : (2009-09-01 10-30)
# Last revision : (2009-09-01 10-30)
# Wine version used : 1.1.28 
# Distribution used to test : N/A
# Author : puk007
# Licence : Open Source

if [ "$PLAYONLINUX" = "" ]then
exit 0
fi
source "$PLAYONLINUX/lib/sources"

####### setup env vars #######
APP_NAME=SubRip
INSTALL_EXE=SubRip_150b4.zip
RUN_EXE=SubRip.exe
PREFIX_NAME=$APP_NAME
WINE_VER=1.1.28
DL_LINK=http://surfnet.dl.sourceforge.net/project/subrip/subrip/SubRip%201.50%20beta%204/SubRip_150b4.zip
HOME_LINK=http://zuggy.wz.cz/
#lng stuff
LNG_WAIT_DL="Please wait while downloading..."

####### presentation window #######
POL_SetupWindow_Init "" ""
POL_SetupWindow_presentation "$APP_NAME" "T.V. Zuggy, ai4spam" "$HOME_LINK" "puk007" "$APP_NAME"


####### prefix stuff #######
select_prefixe "$REPERTOIRE/wineprefix/$PREFIX_NAME/"
POL_SetupWindow_prefixcreate
 
####### download installer #######
cd $REPERTOIRE/wineprefix/$PREFIX_NAME/drive_c
mkdir SubRip
cd SubRip

# if already there => remove it
rm $INSTALL_EXE
POL_SetupWindow_download "$LNG_WAIT_DL" "Downloading..." "$DL_LINK"

POL_SetupWindow_wait_next_signal "PlayOnLinux is configurating your $APP_NAME installation ..." "Configuration"
Set_OS "winxp"
 
####### setup prefix + wine #######
POL_SetupWindow_detect_exit
POL_SetupWindow_install_wine "$WINE_VER"
 
####### install app #######
POL_SetupWindow_wait_next_signal "PlayOnLinux is installing $APP_NAME" "Installation"
 
unzip $INSTALL_EXE
#cleanup
rm -rf $INSTALL_EXE
 
####### shortcuts #######
POL_SetupWindow_make_shortcut "$APP_NAME" "SubRip" "$RUN_EXE" "" "$APP_NAME"
POL_SetupWindow_message "$APP_NAME has been installed successfully" "$APP_NAME Installation"
POL_SetupWindow_Close
exit 

Edited by NSLW

NSLW Sunday 6 September 2009 at 8:17
NSLW

Ok, i tested it and it starts so your script is accepted. In the future scripts please use
[ "$PLAYONLINUX" = "" ] && exit 0
instead of
if [ "$PLAYONLINUX" = "" ]then
exit 0
fi
puk007 Saturday 12 September 2009 at 7:31
puk007Anonymous

OK, thanks for validation+suggestion
You are here: Index > Your creations. > SubRip

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