Wurm Clock
Informations
Creator | Message |
---|---|
lahtis
|
InformationThis installer has been approved by the team. InformationsPlatforms: Feedbacks1 0 DescriptionWurmClock can be used as an offline tool, i. e. when not playing Wurm Online, to keep an eye on the in-game time. It will show you at a glance if it is currently day or night before you log into the game. Source code#!/bin/bash # Date : (2015-07-12 20:03) # Last revision : (2015-07-22 17:35) # Distribution used to test : Ubuntu 14.04 # Author : lahtis # Licence : GPLv3 # Small Wurm Clock destop installer application (WURM Online game) # PlayOnLinux: 4.2.8 [ -z "$PLAYONLINUX" ] && exit 0 source "$PLAYONLINUX/lib/sources" TITLE="Wurm Clock" PREFIX="WurmClock" WORKING_WINE_VERSION="1.7.47" EDITOR="Yaga, Hakim" GAME_URL="http://forum.wurmonline.com/index.php?/topic/61451-wurmclock-desktop-app-showing-current-wurm-time-and-date/" AUTHOR="lahtis" 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 POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX" POL_Wine_SelectPrefix "$PREFIX" POL_System_SetArch "x86" POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" # create WurmClock folder in the $PROGRAMFILES mkdir "$WINEPREFIX/drive_c/$PROGRAMFILES/WurmClock/" # Fix pulseaudio issue which pulseaudio && Set_OS "winxp" # Do you have downloaded the zip file? POL_SetupWindow_question "$(eval_gettext 'Do you have downloaded the zip file?')" "$TITLE" if [ "$APP_ANSWER" = "FALSE" ] then #POL_Browser "https://www.dropbox.com/s/afpg9u7p4rcw0vc/WurmClock202.ZIP" POL_Browser "http://forum.wurmonline.com/index.php?/topic/61451-wurmclock-desktop-app-showing-current-wurm-time-and-date/" fi # unzip zip file, zip-file has not installer. Zip-file only carry the exe-file and pdf-guides. POL_SetupWindow_browse "$(eval_gettext 'Please select the downloaded zip file.')" "$TITLE" cd "$WINEPREFIX/drive_c/$PROGRAMFILES/WurmClock/" POL_System_unzip "$APP_ANSWER" POL_Shortcut "WurmClock.exe" "$TITLE" POL_SetupWindow_Close exit 0 |
Contributions
Filters:
ContributeMember | Message |
lahtis | Wednesday 22 July 2015 at 20:46 |
lahtis
|
InformationThis update has been approved by the team. Differences@@ -0,0 +1,53 @@ +#!/bin/bash +# Date : (2015-07-12 20:03) +# Last revision : (2015-07-22 17:35) +# Distribution used to test : Ubuntu 14.04 +# Author : lahtis +# Licence : GPLv3 +# Small Wurm Clock destop installer application (WURM Online game) +# PlayOnLinux: 4.2.8 + +[ -z "$PLAYONLINUX" ] && exit 0 +source "$PLAYONLINUX/lib/sources" + +TITLE="Wurm Clock" +PREFIX="WurmClock" +WORKING_WINE_VERSION="1.7.47" +EDITOR="Yaga, Hakim" +GAME_URL="http://forum.wurmonline.com/index.php?/topic/61451-wurmclock-desktop-app-showing-current-wurm-time-and-date/" +AUTHOR="lahtis" + +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 + +POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX" + +POL_Wine_SelectPrefix "$PREFIX" +POL_System_SetArch "x86" +POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" + +# create WurmClock folder in the $PROGRAMFILES +mkdir "$WINEPREFIX/drive_c/$PROGRAMFILES/WurmClock/" + +# Fix pulseaudio issue +which pulseaudio && Set_OS "winxp" + +# Do you have downloaded the zip file? +POL_SetupWindow_question "$(eval_gettext 'Do you have downloaded the zip file?')" "$TITLE" +if [ "$APP_ANSWER" = "FALSE" ] +then + #POL_Browser "https://www.dropbox.com/s/afpg9u7p4rcw0vc/WurmClock202.ZIP" + POL_Browser "http://forum.wurmonline.com/index.php?/topic/61451-wurmclock-desktop-app-showing-current-wurm-time-and-date/" +fi + +# unzip zip file, zip-file has not installer. Zip-file only carry the exe-file and pdf-guides. +POL_SetupWindow_browse "$(eval_gettext 'Please select the downloaded zip file.')" "$TITLE" + +cd "$WINEPREFIX/drive_c/$PROGRAMFILES/WurmClock/" +POL_System_unzip "$APP_ANSWER" + +POL_Shortcut "WurmClock.exe" "$TITLE" + +POL_SetupWindow_Close +exit 0 New source code#!/bin/bash # Date : (2015-07-12 20:03) # Last revision : (2015-07-22 17:35) # Distribution used to test : Ubuntu 14.04 # Author : lahtis # Licence : GPLv3 # Small Wurm Clock destop installer application (WURM Online game) # PlayOnLinux: 4.2.8 [ -z "$PLAYONLINUX" ] && exit 0 source "$PLAYONLINUX/lib/sources" TITLE="Wurm Clock" PREFIX="WurmClock" WORKING_WINE_VERSION="1.7.47" EDITOR="Yaga, Hakim" GAME_URL="http://forum.wurmonline.com/index.php?/topic/61451-wurmclock-desktop-app-showing-current-wurm-time-and-date/" AUTHOR="lahtis" 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 POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX" POL_Wine_SelectPrefix "$PREFIX" POL_System_SetArch "x86" POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" # create WurmClock folder in the $PROGRAMFILES mkdir "$WINEPREFIX/drive_c/$PROGRAMFILES/WurmClock/" # Fix pulseaudio issue which pulseaudio && Set_OS "winxp" # Do you have downloaded the zip file? POL_SetupWindow_question "$(eval_gettext 'Do you have downloaded the zip file?')" "$TITLE" if [ "$APP_ANSWER" = "FALSE" ] then #POL_Browser "https://www.dropbox.com/s/afpg9u7p4rcw0vc/WurmClock202.ZIP" POL_Browser "http://forum.wurmonline.com/index.php?/topic/61451-wurmclock-desktop-app-showing-current-wurm-time-and-date/" fi # unzip zip file, zip-file has not installer. Zip-file only carry the exe-file and pdf-guides. POL_SetupWindow_browse "$(eval_gettext 'Please select the downloaded zip file.')" "$TITLE" cd "$WINEPREFIX/drive_c/$PROGRAMFILES/WurmClock/" POL_System_unzip "$APP_ANSWER" POL_Shortcut "WurmClock.exe" "$TITLE" POL_SetupWindow_Close exit 0 RepliesWednesday 22 July 2015 at 20:57
Wednesday 22 July 2015 at 21:03
Wednesday 22 July 2015 at 21:21
Wednesday 22 July 2015 at 21:22
Friday 24 July 2015 at 16:04
Edited by petch |
lahtis | Wednesday 22 July 2015 at 19:46 |
lahtis
|
WarningThis update has not been approved yet by the team. MessageTested source code. It is working. Could it be somewhere on the page descriptions of error messages. For example, if an error POL_System_unzip failed with error 1 or error POL_System_unzip failed with error 11 (I recall means that tmp file has not empty, there are same files). No need to wonder why this is not working. None of these has not been any mention of the wiki. Differences@@ -0,0 +1,55 @@ +#!/bin/bash +# Date : (2015-07-12 20:03) +# Last revision : (2015-07-22 17:35) +# Distribution used to test : Ubuntu 14.04 +# Author : lahtis +# Licence : GPLv3 +# Small Wurm Clock destop installer application (WURM Online game) +# PlayOnLinux: 4.2.8 + +[ -z "$PLAYONLINUX" ] && exit 0 +source "$PLAYONLINUX/lib/sources" + +TITLE="Wurm Clock" +PREFIX="WurmClock" +WORKING_WINE_VERSION="1.7.47" +EDITOR="Yaga, Hakim" +GAME_URL="http://forum.wurmonline.com/index.php?/topic/61451-wurmclock-desktop-app-showing-current-wurm-time-and-date/" +AUTHOR="lahtis" + +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 + +POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX" + +POL_Wine_SelectPrefix "$PREFIX" +POL_System_SetArch "x86" +POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" + +# create WurmClock folder in the $PROGRAMFILES +mkdir "$WINEPREFIX/drive_c/$PROGRAMFILES/WurmClock/" + +# Fix pulseaudio issue +which pulseaudio && Set_OS "winxp" + +# Do you have downloaded the zip file? +POL_SetupWindow_question "Do you have downloaded the zip file?" "Download?" +if [ "$APP_ANSWER" = "FALSE" ] +then + POL_Browser "https://www.dropbox.com/s/afpg9u7p4rcw0vc/WurmClock202.ZIP" + # POL_Browser "http://forum.wurmonline.com/index.php?/topic/61451-wurmclock-desktop-app-showing-current-wurm-time-and-date/" +fi + +# unzip zip file, zip-file has not installer. Zip-file only carry the exe-file and pdf-guides. +POL_SetupWindow_browse "Please select the downloaded zip file." $TITLE + +cd "$WINEPREFIX/drive_c/$PROGRAMFILES/WurmClock/" +POL_System_unzip "$APP_ANSWER" + +POL_Shortcut "WurmClock.exe" "$TITLE" +POL_Shortcut_Document "Wurm Clock help" "WurmClock.pdf" + +POL_SetupWindow_Close + +exit 0 New source code#!/bin/bash # Date : (2015-07-12 20:03) # Last revision : (2015-07-22 17:35) # Distribution used to test : Ubuntu 14.04 # Author : lahtis # Licence : GPLv3 # Small Wurm Clock destop installer application (WURM Online game) # PlayOnLinux: 4.2.8 [ -z "$PLAYONLINUX" ] && exit 0 source "$PLAYONLINUX/lib/sources" TITLE="Wurm Clock" PREFIX="WurmClock" WORKING_WINE_VERSION="1.7.47" EDITOR="Yaga, Hakim" GAME_URL="http://forum.wurmonline.com/index.php?/topic/61451-wurmclock-desktop-app-showing-current-wurm-time-and-date/" AUTHOR="lahtis" 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 POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX" POL_Wine_SelectPrefix "$PREFIX" POL_System_SetArch "x86" POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" # create WurmClock folder in the $PROGRAMFILES mkdir "$WINEPREFIX/drive_c/$PROGRAMFILES/WurmClock/" # Fix pulseaudio issue which pulseaudio && Set_OS "winxp" # Do you have downloaded the zip file? POL_SetupWindow_question "Do you have downloaded the zip file?" "Download?" if [ "$APP_ANSWER" = "FALSE" ] then POL_Browser "https://www.dropbox.com/s/afpg9u7p4rcw0vc/WurmClock202.ZIP" # POL_Browser "http://forum.wurmonline.com/index.php?/topic/61451-wurmclock-desktop-app-showing-current-wurm-time-and-date/" fi # unzip zip file, zip-file has not installer. Zip-file only carry the exe-file and pdf-guides. POL_SetupWindow_browse "Please select the downloaded zip file." $TITLE cd "$WINEPREFIX/drive_c/$PROGRAMFILES/WurmClock/" POL_System_unzip "$APP_ANSWER" POL_Shortcut "WurmClock.exe" "$TITLE" POL_Shortcut_Document "Wurm Clock help" "WurmClock.pdf" POL_SetupWindow_Close exit 0 Replies |
lahtis | Wednesday 22 July 2015 at 16:47 |
lahtis
|
WarningThis update has not been approved yet by the team. MessageNew fixed source code. Differences@@ -0,0 +1,57 @@ +#!/bin/bash +# Date : (2015-07-12 20:03) +# Last revision : (2015-07-22 17:35) +# Distribution used to test : Ubuntu 14.04 +# Author : lahtis +# Licence : GPLv3 +# Small Wurm Clock destop installer application (WURM Online game) +# PlayOnLinux: 4.2.8 + +[ -z "$PLAYONLINUX" ] && exit 0 +source "$PLAYONLINUX/lib/sources" + +TITLE="Wurm Clock" +PREFIX="WurmClock" +WORKING_WINE_VERSION="1.7.47" +EDITOR="Yaga, Hakim" +GAME_URL="http://forum.wurmonline.com/index.php?/topic/61451-wurmclock-desktop-app-showing-current-wurm-time-and-date/" +AUTHOR="lahtis" + +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 + +POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX" + +POL_Wine_SelectPrefix "$PREFIX" +POL_System_SetArch "x86" +POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" + +# create WurmClock folder in the $PROGRAMFILES +mkdir "$WINEPREFIX/drive_c/$PROGRAMFILES/WurmClock/" + +# Fix pulseaudio issue +which pulseaudio && Set_OS "winxp" + +# Do you have downloaded the zip file? +POL_SetupWindow_question "Do you have downloaded the zip file?" "Download?" +if [ "$APP_ANSWER" = "FALSE" ] +then + POL_Browser "https://www.dropbox.com/s/afpg9u7p4rcw0vc/WurmClock202.ZIP" + # POL_Browser "http://forum.wurmonline.com/index.php?/topic/61451-wurmclock-desktop-app-showing-current-wurm-time-and-date/" +fi + +# unzip zip file, zip-file has not installer. Zip-file only carry the exe-file and pdf-guides. +POL_SetupWindow_browse "Please select the downloaded zip file." $TITLE + +localInstallerPath=$APP_ANSWER +cp localInstallerPath ./ +cd "$WINEPREFIX/drive_c/$PROGRAMFILES/WurmClock/" +POL_System_unzip "$APP_ANSWER" + +POL_Shortcut "WurmClock.exe" "$TITLE" +POL_Shortcut_Document "Wurm Clock help" "WurmClock.pdf" + +POL_SetupWindow_Close + +exit 0 New source code#!/bin/bash # Date : (2015-07-12 20:03) # Last revision : (2015-07-22 17:35) # Distribution used to test : Ubuntu 14.04 # Author : lahtis # Licence : GPLv3 # Small Wurm Clock destop installer application (WURM Online game) # PlayOnLinux: 4.2.8 [ -z "$PLAYONLINUX" ] && exit 0 source "$PLAYONLINUX/lib/sources" TITLE="Wurm Clock" PREFIX="WurmClock" WORKING_WINE_VERSION="1.7.47" EDITOR="Yaga, Hakim" GAME_URL="http://forum.wurmonline.com/index.php?/topic/61451-wurmclock-desktop-app-showing-current-wurm-time-and-date/" AUTHOR="lahtis" 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 POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX" POL_Wine_SelectPrefix "$PREFIX" POL_System_SetArch "x86" POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" # create WurmClock folder in the $PROGRAMFILES mkdir "$WINEPREFIX/drive_c/$PROGRAMFILES/WurmClock/" # Fix pulseaudio issue which pulseaudio && Set_OS "winxp" # Do you have downloaded the zip file? POL_SetupWindow_question "Do you have downloaded the zip file?" "Download?" if [ "$APP_ANSWER" = "FALSE" ] then POL_Browser "https://www.dropbox.com/s/afpg9u7p4rcw0vc/WurmClock202.ZIP" # POL_Browser "http://forum.wurmonline.com/index.php?/topic/61451-wurmclock-desktop-app-showing-current-wurm-time-and-date/" fi # unzip zip file, zip-file has not installer. Zip-file only carry the exe-file and pdf-guides. POL_SetupWindow_browse "Please select the downloaded zip file." $TITLE localInstallerPath=$APP_ANSWER cp localInstallerPath ./ cd "$WINEPREFIX/drive_c/$PROGRAMFILES/WurmClock/" POL_System_unzip "$APP_ANSWER" POL_Shortcut "WurmClock.exe" "$TITLE" POL_Shortcut_Document "Wurm Clock help" "WurmClock.pdf" POL_SetupWindow_Close exit 0 RepliesWednesday 22 July 2015 at 19:12
|
lahtis | Wednesday 15 July 2015 at 16:32 |
lahtis
|
WarningThis update has not been approved yet by the team. Messageexcept files moving not working. Differences@@ -0,0 +1,68 @@ +#!/bin/bash +# Date : (2015-07-12 20-03) +# Last revision : (2015-07-12 20-03) +# Distribution used to test : Ubuntu 14.04 +# Author : lahtis +# Licence : GPLv3 +# Small Wurm Clock destop installer application (WURM Online game) +# PlayOnLinux: 4.2.8 + + + +[ -z "$PLAYONLINUX" ] && exit 0 +source "$PLAYONLINUX/lib/sources" + +TITLE="Wurm Clock" +PREFIX="WurmClock" +WORKING_WINE_VERSION="1.7.32" +EDITOR="Yaga, Hakim" +GAME_URL="http://forum.wurmonline.com/index.php?/topic/61451-wurmclock-desktop-app-showing-current-wurm-time-and-date/" +AUTHOR="lahtis" + +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 + +POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX" + +POL_Wine_SelectPrefix "$PREFIX" +POL_System_SetArch "x86" +POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" + +# create WurmClock folder in the $PROGRAMFILES +mkdir "$WINEPREFIX/drive_c/$PROGRAMFILES/WurmClock/" + +# Create tmp directory for downloaded files +POL_System_TmpCreate "$PREFIX" + +# Fix pulseaudio issue +which pulseaudio && Set_OS "winxp" + +# Do you have downloaded the zip file? +POL_SetupWindow_question "Do you have downloaded the zip file?" "Download?" +if [ "$APP_ANSWER" = "FALSE" ] +then + POL_Browser "https://www.dropbox.com/s/afpg9u7p4rcw0vc/WurmClock202.ZIP" + # POL_Browser "http://forum.wurmonline.com/index.php?/topic/61451-wurmclock-desktop-app-showing-current-wurm-time-and-date/" +fi + +# unzip zip file, zip-file has not installer. Zip-file only carry the exe-file and pdf-guides. +POL_SetupWindow_browse "Please select the downloaded zip file." $TITLE +localInstallerPath=$APP_ANSWER +POL_System_TmpCreate $PREFIX +cd $POL_System_TmpDir +cp localInstallerPath ./ + +POL_System_unzip "$APP_ANSWER" + +# move all files created folder, Files MOving not working. +mv "$POL_System_TmpDir/$PREFIX/WurmClock.exe $WINEPREFIX/drive_c/$PROGRAMFILES/WurmClock/WurmClock.exe" +mv "$POL_System_TmpDir/$PREFIX/WurmClock.pdf $WINEPREFIX/drive_c/$PROGRAMFILES/WurmClock/WurmClock.pdf" + +POL_Shortcut "$TITLE" "WurmClock.exe" +POL_Shortcut_Document "$TITLE - help" "WurmClock.pdf" + +#POL_System_TmpDelete +POL_SetupWindow_Close + +exit 0 \ No newline at end of file New source code#!/bin/bash # Date : (2015-07-12 20-03) # Last revision : (2015-07-12 20-03) # Distribution used to test : Ubuntu 14.04 # Author : lahtis # Licence : GPLv3 # Small Wurm Clock destop installer application (WURM Online game) # PlayOnLinux: 4.2.8 [ -z "$PLAYONLINUX" ] && exit 0 source "$PLAYONLINUX/lib/sources" TITLE="Wurm Clock" PREFIX="WurmClock" WORKING_WINE_VERSION="1.7.32" EDITOR="Yaga, Hakim" GAME_URL="http://forum.wurmonline.com/index.php?/topic/61451-wurmclock-desktop-app-showing-current-wurm-time-and-date/" AUTHOR="lahtis" 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 POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX" POL_Wine_SelectPrefix "$PREFIX" POL_System_SetArch "x86" POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" # create WurmClock folder in the $PROGRAMFILES mkdir "$WINEPREFIX/drive_c/$PROGRAMFILES/WurmClock/" # Create tmp directory for downloaded files POL_System_TmpCreate "$PREFIX" # Fix pulseaudio issue which pulseaudio && Set_OS "winxp" # Do you have downloaded the zip file? POL_SetupWindow_question "Do you have downloaded the zip file?" "Download?" if [ "$APP_ANSWER" = "FALSE" ] then POL_Browser "https://www.dropbox.com/s/afpg9u7p4rcw0vc/WurmClock202.ZIP" # POL_Browser "http://forum.wurmonline.com/index.php?/topic/61451-wurmclock-desktop-app-showing-current-wurm-time-and-date/" fi # unzip zip file, zip-file has not installer. Zip-file only carry the exe-file and pdf-guides. POL_SetupWindow_browse "Please select the downloaded zip file." $TITLE localInstallerPath=$APP_ANSWER POL_System_TmpCreate $PREFIX cd $POL_System_TmpDir cp localInstallerPath ./ POL_System_unzip "$APP_ANSWER" # move all files created folder, Files MOving not working. mv "$POL_System_TmpDir/$PREFIX/WurmClock.exe $WINEPREFIX/drive_c/$PROGRAMFILES/WurmClock/WurmClock.exe" mv "$POL_System_TmpDir/$PREFIX/WurmClock.pdf $WINEPREFIX/drive_c/$PROGRAMFILES/WurmClock/WurmClock.pdf" POL_Shortcut "$TITLE" "WurmClock.exe" POL_Shortcut_Document "$TITLE - help" "WurmClock.pdf" #POL_System_TmpDelete POL_SetupWindow_Close exit 0 Replies |
lahtis | Sunday 12 July 2015 at 19:11 |
lahtis
|
WarningThis update has not been approved yet by the team. MessageSourcecode :) Differences@@ -0,0 +1,65 @@ +#!/bin/bash +# Date : (2015-07-12 20-03) +# Last revision : (2015-07-12 20-03) +# Distribution used to test : Ubuntu 14.04 +# Author : lahtis +# Licence : GPLv3 +# Small Wurm Clock destop installer application (WURM Online game) +# PlayOnLinux: 4.2.8 + + + +[ -z "$PLAYONLINUX" ] && exit 0 +source "$PLAYONLINUX/lib/sources" + +TITLE="Wurm Clock" +PREFIX="WurmClock" +WORKING_WINE_VERSION="1.7.32" +EDITOR="Yaga, Hakim" +GAME_URL="http://forum.wurmonline.com/index.php?/topic/61451-wurmclock-desktop-app-showing-current-wurm-time-and-date/" +AUTHOR="lahtis" + + + +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 + +POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX" + +POL_Wine_SelectPrefix "$PREFIX" +POL_System_SetArch "x86" +POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" + +POL_System_TmpCreate "$PREFIX" + +# Fix pulseaudio issue +which pulseaudio && Set_OS "winxp" + +# open browser and download zip file. +POL_Browser "http://forum.wurmonline.com/index.php?/topic/61451-wurmclock-desktop-app-showing-current-wurm-time-and-date/" + +# Create tmp directory for downloaded files +POL_System_TmpCreate "$PREFIX" + +# select zip file +POL_SetupWindow_browse "Please select the zip file." "$TITLE" + +# unzip zip file +cd "$POL_System_TmpDir/$PREFIX" +unzip "$APP_ANSWER" +POL_SetupWindow_wait "$(eval_gettext 'Please wait while we extract $TITLE game data.')" "$TITLE" + +# create folder +mkdir "$WINEPREFIX/drive_c/Program Files/WurmClock/" + +# move correct folder +mv "$POL_System_TmpDir/WurmClock.exe" "$WINEPREFIX/drive_c/Program Files/WurmClock/WurmClock.exe" +mv "$POL_System_TmpDir/WurmClock.pdf" "$WINEPREFIX/drive_c/Program Files/WurmClock/WurmClock.pdf" + +POL_Shortcut 'WurmClock.exe' "$TITLE" + +POL_System_TmpDelete +POL_SetupWindow_Close + +exit 0 \ No newline at end of file New source code#!/bin/bash # Date : (2015-07-12 20-03) # Last revision : (2015-07-12 20-03) # Distribution used to test : Ubuntu 14.04 # Author : lahtis # Licence : GPLv3 # Small Wurm Clock destop installer application (WURM Online game) # PlayOnLinux: 4.2.8 [ -z "$PLAYONLINUX" ] && exit 0 source "$PLAYONLINUX/lib/sources" TITLE="Wurm Clock" PREFIX="WurmClock" WORKING_WINE_VERSION="1.7.32" EDITOR="Yaga, Hakim" GAME_URL="http://forum.wurmonline.com/index.php?/topic/61451-wurmclock-desktop-app-showing-current-wurm-time-and-date/" AUTHOR="lahtis" 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 POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX" POL_Wine_SelectPrefix "$PREFIX" POL_System_SetArch "x86" POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" POL_System_TmpCreate "$PREFIX" # Fix pulseaudio issue which pulseaudio && Set_OS "winxp" # open browser and download zip file. POL_Browser "http://forum.wurmonline.com/index.php?/topic/61451-wurmclock-desktop-app-showing-current-wurm-time-and-date/" # Create tmp directory for downloaded files POL_System_TmpCreate "$PREFIX" # select zip file POL_SetupWindow_browse "Please select the zip file." "$TITLE" # unzip zip file cd "$POL_System_TmpDir/$PREFIX" unzip "$APP_ANSWER" POL_SetupWindow_wait "$(eval_gettext 'Please wait while we extract $TITLE game data.')" "$TITLE" # create folder mkdir "$WINEPREFIX/drive_c/Program Files/WurmClock/" # move correct folder mv "$POL_System_TmpDir/WurmClock.exe" "$WINEPREFIX/drive_c/Program Files/WurmClock/WurmClock.exe" mv "$POL_System_TmpDir/WurmClock.pdf" "$WINEPREFIX/drive_c/Program Files/WurmClock/WurmClock.pdf" POL_Shortcut 'WurmClock.exe' "$TITLE" POL_System_TmpDelete POL_SetupWindow_Close exit 0 Replies |
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