The forum

[Script]Sam's Broadcaster

Not there just yet: need suggestions

Author Replies
stevenbinion Thursday 30 August 2018 at 2:41
stevenbinionAnonymous

Setting up this script to install firebird DB and Sam Broadcaster.

#!/bin/bash
# Date : (2018-08-29)
# Distribution used to test : Ubuntu 18.04 LTS 64-bit
# Author : StevenBinion
# Licence : GPLv3
# PlayOnLinux: 4.2.12

[ "$PLAYONLINUX" = "" ] && exit 0

source "$PLAYONLINUX/lib/sources"

PREFIX="Sam's Broadcaster"
WINEVERSION="1.0"
TITLE="Sam's Broadcaster"
EDITOR="Spacial"
APP_URL="https://spacial.com/"
AUTHOR="StevenBinion"
DOWNLOAD_URL="https://www.dropbox.com/s/i2413cq4q2uy8my/firebird.exe?dl=0"
DOWNLOAD2_URL="https://www.dropbox.com/s/xfwl2vsyukv7pln/sambc-up.exe?dl=0"

#Initialization
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
POL_SetupWindow_Init

POL_Debug_Init

# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$APP_URL" "$AUTHOR" "$PREFIX"

# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"

# Configuration
Set_OS "win7"

# Installing mandatory dependencies
POL_Call POL_Install_corefonts
POL_Call POL_Install_mfc42
POL_Call POL_Install_fontfix
POL_Call POL_Install_msxml3
POL_Call POL_Install_riched30

# Installation Firebird
POL_System_TmpCreate "$PREFIX"
cd $POL_System_TmpDir
POL_Download "$DOWNLOAD_URL"
POL_Wine "firebird.exe"
POL_Wine_WaitExit "$TITLE"

# Installation Sam Broadcaster
POL_System_TmpCreate "$PREFIX"
cd $POL_System_TmpDir
POL_Download "$DOWNLOAD2_URL"
POL_Wine "sambc-up.exe"
POL_Wine_WaitExit "$TITLE"

# Create Shortcut
POL_Shortcut "sambc.exe" "$TITLE"

# Cleanup
POL_System_TmpDelete
POL_SetupWindow_message "$(eval_gettext 'NOTICE: $TITLE can take up to 15 minutes or longer to start for the first time. It only does this the first time the game has be ran.')" "$TITLE"
POL_SetupWindow_Close
exit 0

Edited by stevenbinion

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