Watchtower Library 2014
Informations
Creator | Message |
---|---|
vlad88
|
InformationThis installer has been approved by the team. InformationsPlatforms: Feedbacks4 0 DescriptionReference and research tool for Watchtower Society publications from 1970 up to and including 2014. Source code#!/bin/bash # Date : (2015-03-31 22-00) # Last revision : (2015-04-02 07-37) # Distribution used to test : Linux Mint 17 # Author: Vladislav Khomenko # Wine version used: 1.7.35 [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" # Variable TITLE="Watchtower Library 2014" PUBLISHER="Watchtower Bible and Tract Society of PA" PREFIX="Watchtower" URL="http://www.jw.org" AUTHOR="Vladislav Khomenko" DONE="FALSE" WINEVERISON="1.7.35" POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE" # Initialization POL_SetupWindow_Init POL_SetupWindow_SetID 1959 POL_Debug_Init # Presentation POL_SetupWindow_presentation "$TITLE" "$PUBLISHER" "$URL" "$AUTHOR" "$PREFIX" # Create Prefix POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "$WINEVERISON" # Select Installation Method POL_SetupWindow_InstallMethod "CD,LOCAL" if [ "$INSTALL_METHOD" = "CD" ] then POL_SetupWindow_cdrom POL_SetupWindow_check_cdrom "rs_data/PUBS" POL_Wine "$CDROM/Setup.exe" elif [ "$INSTALL_METHOD" = "LOCAL" ] then while [ "$DONE" = "FALSE" ] do POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE" # Verify a the Setup.exe was selected and not another .exe if [ ${APP_ANSWER:(-9)} = "Setup.exe" ] then DONE="TRUE" else POL_SetupWindow_message "$(eval_gettext 'Setup.exe was not selected, Please select the setup file to run {Setup.exe}')" "$(eval_gettext 'File Selection Error')" fi done POL_Wine "$APP_ANSWER" fi # Wait for Installation to Exit POL_Wine_WaitExit POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed')" "Installation in progress" # Create Shortcuts POL_Shortcut "wtlibrary.exe" "$TITLE" # Remove .lnk created on the desktop by wine installation application test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && source ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs cd "${XDG_DESKTOP_DIR:-$HOME/Desktop}" rm ./Watchtower*.lnk # Close and Exit POL_SetupWindow_Close exit 0 |
Contributions
Filters:
ContributeMember | Message |
.sherif_sans | Monday 8 January 2018 at 18:33 |
.sherif_sans
|
Messageinstalled WT2015 using WT2014 script. Worked well. Update worked. Just needed to select text font in properties. Linux Mint 18.1 Replies |
vlad88 | Thursday 2 April 2015 at 6:41 |
vlad88
|
InformationThis update has been approved by the team. MessageFixed a bug when choosing a method of installation from a local file Differences@@ -1,12 +1,12 @@ #!/bin/bash # Date : (2015-03-31 22-00) -# Last revision : (2015-04-01 19-13) +# Last revision : (2015-04-02 07-37) # Distribution used to test : Linux Mint 17 # Author: Vladislav Khomenko # Wine version used: 1.7.35 [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" - + # Variable TITLE="Watchtower Library 2014" PUBLISHER="Watchtower Bible and Tract Society of PA" @@ -15,28 +15,28 @@ AUTHOR="Vladislav Khomenko" DONE="FALSE" WINEVERISON="1.7.35" - + POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE" - + # Initialization POL_SetupWindow_Init POL_SetupWindow_SetID 1959 POL_Debug_Init - + # Presentation POL_SetupWindow_presentation "$TITLE" "$PUBLISHER" "$URL" "$AUTHOR" "$PREFIX" - + # Create Prefix POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "$WINEVERISON" - + # Select Installation Method POL_SetupWindow_InstallMethod "CD,LOCAL" if [ "$INSTALL_METHOD" = "CD" ] then POL_SetupWindow_cdrom POL_SetupWindow_check_cdrom "rs_data/PUBS" - POL_Wine start /unix "$CDROM/Setup.exe" + POL_Wine "$CDROM/Setup.exe" elif [ "$INSTALL_METHOD" = "LOCAL" ] then while [ "$DONE" = "FALSE" ] @@ -50,21 +50,22 @@ POL_SetupWindow_message "$(eval_gettext 'Setup.exe was not selected, Please select the setup file to run {Setup.exe}')" "$(eval_gettext 'File Selection Error')" fi done + POL_Wine "$APP_ANSWER" fi - + # Wait for Installation to Exit POL_Wine_WaitExit - + POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed')" "Installation in progress" - + # Create Shortcuts POL_Shortcut "wtlibrary.exe" "$TITLE" - + # Remove .lnk created on the desktop by wine installation application test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && source ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs cd "${XDG_DESKTOP_DIR:-$HOME/Desktop}" rm ./Watchtower*.lnk - + # Close and Exit POL_SetupWindow_Close exit 0 \ No newline at end of file New source code#!/bin/bash # Date : (2015-03-31 22-00) # Last revision : (2015-04-02 07-37) # Distribution used to test : Linux Mint 17 # Author: Vladislav Khomenko # Wine version used: 1.7.35 [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" # Variable TITLE="Watchtower Library 2014" PUBLISHER="Watchtower Bible and Tract Society of PA" PREFIX="Watchtower" URL="http://www.jw.org" AUTHOR="Vladislav Khomenko" DONE="FALSE" WINEVERISON="1.7.35" POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE" # Initialization POL_SetupWindow_Init POL_SetupWindow_SetID 1959 POL_Debug_Init # Presentation POL_SetupWindow_presentation "$TITLE" "$PUBLISHER" "$URL" "$AUTHOR" "$PREFIX" # Create Prefix POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "$WINEVERISON" # Select Installation Method POL_SetupWindow_InstallMethod "CD,LOCAL" if [ "$INSTALL_METHOD" = "CD" ] then POL_SetupWindow_cdrom POL_SetupWindow_check_cdrom "rs_data/PUBS" POL_Wine "$CDROM/Setup.exe" elif [ "$INSTALL_METHOD" = "LOCAL" ] then while [ "$DONE" = "FALSE" ] do POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE" # Verify a the Setup.exe was selected and not another .exe if [ ${APP_ANSWER:(-9)} = "Setup.exe" ] then DONE="TRUE" else POL_SetupWindow_message "$(eval_gettext 'Setup.exe was not selected, Please select the setup file to run {Setup.exe}')" "$(eval_gettext 'File Selection Error')" fi done POL_Wine "$APP_ANSWER" fi # Wait for Installation to Exit POL_Wine_WaitExit POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed')" "Installation in progress" # Create Shortcuts POL_Shortcut "wtlibrary.exe" "$TITLE" # Remove .lnk created on the desktop by wine installation application test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && source ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs cd "${XDG_DESKTOP_DIR:-$HOME/Desktop}" rm ./Watchtower*.lnk # Close and Exit POL_SetupWindow_Close exit 0 Replies |
vlad88 | Wednesday 1 April 2015 at 18:17 |
vlad88
|
WarningThis update has not been approved yet by the team. MessageI have created a header at the beginning of the script Differences@@ -0,0 +1,70 @@ +#!/bin/bash +# Date : (2015-03-31 22-00) +# Last revision : (2015-04-01 19-13) +# Distribution used to test : Linux Mint 17 +# Author: Vladislav Khomenko +# Wine version used: 1.7.35 +[ "$PLAYONLINUX" = "" ] && exit 0 +source "$PLAYONLINUX/lib/sources" + +# Variable +TITLE="Watchtower Library 2014" +PUBLISHER="Watchtower Bible and Tract Society of PA" +PREFIX="Watchtower" +URL="http://www.jw.org" +AUTHOR="Vladislav Khomenko" +DONE="FALSE" +WINEVERISON="1.7.35" + +POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE" + +# Initialization +POL_SetupWindow_Init +POL_SetupWindow_SetID 1959 +POL_Debug_Init + +# Presentation +POL_SetupWindow_presentation "$TITLE" "$PUBLISHER" "$URL" "$AUTHOR" "$PREFIX" + +# Create Prefix +POL_Wine_SelectPrefix "$PREFIX" +POL_Wine_PrefixCreate "$WINEVERISON" + +# Select Installation Method +POL_SetupWindow_InstallMethod "CD,LOCAL" +if [ "$INSTALL_METHOD" = "CD" ] +then + POL_SetupWindow_cdrom + POL_SetupWindow_check_cdrom "rs_data/PUBS" + POL_Wine start /unix "$CDROM/Setup.exe" +elif [ "$INSTALL_METHOD" = "LOCAL" ] +then + while [ "$DONE" = "FALSE" ] + do + POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE" + # Verify a the Setup.exe was selected and not another .exe + if [ ${APP_ANSWER:(-9)} = "Setup.exe" ] + then + DONE="TRUE" + else + POL_SetupWindow_message "$(eval_gettext 'Setup.exe was not selected, Please select the setup file to run {Setup.exe}')" "$(eval_gettext 'File Selection Error')" + fi + done +fi + +# Wait for Installation to Exit +POL_Wine_WaitExit + +POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed')" "Installation in progress" + +# Create Shortcuts +POL_Shortcut "wtlibrary.exe" "$TITLE" + +# Remove .lnk created on the desktop by wine installation application +test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && source ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs +cd "${XDG_DESKTOP_DIR:-$HOME/Desktop}" +rm ./Watchtower*.lnk + +# Close and Exit +POL_SetupWindow_Close +exit 0 \ No newline at end of file New source code#!/bin/bash # Date : (2015-03-31 22-00) # Last revision : (2015-04-01 19-13) # Distribution used to test : Linux Mint 17 # Author: Vladislav Khomenko # Wine version used: 1.7.35 [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" # Variable TITLE="Watchtower Library 2014" PUBLISHER="Watchtower Bible and Tract Society of PA" PREFIX="Watchtower" URL="http://www.jw.org" AUTHOR="Vladislav Khomenko" DONE="FALSE" WINEVERISON="1.7.35" POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE" # Initialization POL_SetupWindow_Init POL_SetupWindow_SetID 1959 POL_Debug_Init # Presentation POL_SetupWindow_presentation "$TITLE" "$PUBLISHER" "$URL" "$AUTHOR" "$PREFIX" # Create Prefix POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "$WINEVERISON" # Select Installation Method POL_SetupWindow_InstallMethod "CD,LOCAL" if [ "$INSTALL_METHOD" = "CD" ] then POL_SetupWindow_cdrom POL_SetupWindow_check_cdrom "rs_data/PUBS" POL_Wine start /unix "$CDROM/Setup.exe" elif [ "$INSTALL_METHOD" = "LOCAL" ] then while [ "$DONE" = "FALSE" ] do POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE" # Verify a the Setup.exe was selected and not another .exe if [ ${APP_ANSWER:(-9)} = "Setup.exe" ] then DONE="TRUE" else POL_SetupWindow_message "$(eval_gettext 'Setup.exe was not selected, Please select the setup file to run {Setup.exe}')" "$(eval_gettext 'File Selection Error')" fi done fi # Wait for Installation to Exit POL_Wine_WaitExit POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed')" "Installation in progress" # Create Shortcuts POL_Shortcut "wtlibrary.exe" "$TITLE" # Remove .lnk created on the desktop by wine installation application test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && source ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs cd "${XDG_DESKTOP_DIR:-$HOME/Desktop}" rm ./Watchtower*.lnk # Close and Exit POL_SetupWindow_Close exit 0 Replies |
vlad88 | Wednesday 1 April 2015 at 14:26 |
vlad88
|
WarningThis update has not been approved yet by the team. Differences@@ -0,0 +1,64 @@ +[ "$PLAYONLINUX" = "" ] && exit 0 +source "$PLAYONLINUX/lib/sources" + +# Variable +TITLE="Watchtower Library 2014" +PUBLISHER="Watchtower Bible and Tract Society of PA" +PREFIX="Watchtower" +URL="http://www.jw.org" +AUTHOR="Vladislav Khomenko" +DONE="FALSE" +WINEVERISON="1.7.35" + +POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE" + +# Initialization +POL_SetupWindow_Init +POL_SetupWindow_SetID 1959 +POL_Debug_Init + +# Presentation +POL_SetupWindow_presentation "$TITLE" "$PUBLISHER" "$URL" "$AUTHOR" "$PREFIX" + +# Create Prefix +POL_Wine_SelectPrefix "$PREFIX" +POL_Wine_PrefixCreate "$WINEVERISON" + +# Select Installation Method +POL_SetupWindow_InstallMethod "CD,LOCAL" +if [ "$INSTALL_METHOD" = "CD" ] +then + POL_SetupWindow_cdrom + POL_SetupWindow_check_cdrom "rs_data/PUBS" + POL_Wine start /unix "$CDROM/Setup.exe" +elif [ "$INSTALL_METHOD" = "LOCAL" ] +then + while [ "$DONE" = "FALSE" ] + do + POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE" + # Verify a the Setup.exe was selected and not another .exe + if [ ${APP_ANSWER:(-9)} = "Setup.exe" ] + then + DONE="TRUE" + else + POL_SetupWindow_message "$(eval_gettext 'Setup.exe was not selected, Please select the setup file to run {Setup.exe}')" "$(eval_gettext 'File Selection Error')" + fi + done +fi + +# Wait for Installation to Exit +POL_Wine_WaitExit + +POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed')" "Installation in progress" + +# Create Shortcuts +POL_Shortcut "wtlibrary.exe" "$TITLE" + +# Remove .lnk created on the desktop by wine installation application +test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && source ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs +cd "${XDG_DESKTOP_DIR:-$HOME/Desktop}" +rm ./Watchtower*.lnk + +# Close and Exit +POL_SetupWindow_Close +exit 0 \ No newline at end of file New source code[ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" # Variable TITLE="Watchtower Library 2014" PUBLISHER="Watchtower Bible and Tract Society of PA" PREFIX="Watchtower" URL="http://www.jw.org" AUTHOR="Vladislav Khomenko" DONE="FALSE" WINEVERISON="1.7.35" POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE" # Initialization POL_SetupWindow_Init POL_SetupWindow_SetID 1959 POL_Debug_Init # Presentation POL_SetupWindow_presentation "$TITLE" "$PUBLISHER" "$URL" "$AUTHOR" "$PREFIX" # Create Prefix POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "$WINEVERISON" # Select Installation Method POL_SetupWindow_InstallMethod "CD,LOCAL" if [ "$INSTALL_METHOD" = "CD" ] then POL_SetupWindow_cdrom POL_SetupWindow_check_cdrom "rs_data/PUBS" POL_Wine start /unix "$CDROM/Setup.exe" elif [ "$INSTALL_METHOD" = "LOCAL" ] then while [ "$DONE" = "FALSE" ] do POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE" # Verify a the Setup.exe was selected and not another .exe if [ ${APP_ANSWER:(-9)} = "Setup.exe" ] then DONE="TRUE" else POL_SetupWindow_message "$(eval_gettext 'Setup.exe was not selected, Please select the setup file to run {Setup.exe}')" "$(eval_gettext 'File Selection Error')" fi done fi # Wait for Installation to Exit POL_Wine_WaitExit POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed')" "Installation in progress" # Create Shortcuts POL_Shortcut "wtlibrary.exe" "$TITLE" # Remove .lnk created on the desktop by wine installation application test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && source ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs cd "${XDG_DESKTOP_DIR:-$HOME/Desktop}" rm ./Watchtower*.lnk # Close and Exit POL_SetupWindow_Close exit 0 RepliesWednesday 1 April 2015 at 18:00
|
vlad88 | Tuesday 31 March 2015 at 23:16 |
vlad88
|
WarningThis update has not been approved yet by the team. Differences@@ -0,0 +1,64 @@ +[ "$PLAYONLINUX" = "" ] && exit 0 +source "$PLAYONLINUX/lib/sources" + +# Variable +TITLE="Watchtower Library" +PUBLISHER="Watchtower Bible and Tract Society of PA" +PREFIX="Watchtower" +URL="http://www.jw.org" +AUTHOR="Vladislav Khomenko" +DONE="FALSE" + +POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE" + +# Initialization +POL_SetupWindow_Init +POL_SetupWindow_SetID 1959 +POL_Debug_Init + +# Presentation +POL_SetupWindow_presentation "$TITLE" "$PUBLISHER" "$URL" "$AUTHOR" "$PREFIX" + +# Create Prefix +POL_Wine_SelectPrefix "$PREFIX" +POL_Wine_PrefixCreate "1.7.35" + +# Select Installation Method +POL_SetupWindow_InstallMethod "CD,LOCAL" +if [ "$INSTALL_METHOD" = "CD" ] +then + POL_SetupWindow_cdrom + POL_SetupWindow_check_cdrom "rs_data/PUBS" + POL_Wine start /unix "$CDROM/Setup.exe" +elif [ "$INSTALL_METHOD" = "LOCAL" ] +then + while [ "$DONE" = "FALSE" ] + do + POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE" + # Verify a the Setup.exe was selected and not another .exe + if [ ${APP_ANSWER:(-9)} = "Setup.exe" ] + then + DONE="TRUE" + else + POL_SetupWindow_message "$(eval_gettext 'Setup.exe was not selected, Please select the setup file to run {Setup.exe}')" "$(eval_gettext 'File Selection Error')" + fi + done + POL_Wine start /unix "$APP_ANSWER" +fi + +# Wait for Installation to Exit +POL_Wine_WaitExit + +POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed')" "Installation in progress" + +# Create Shortcuts +POL_Shortcut "wtlibrary.exe" "$TITLE" + +# Remove .lnk created on the desktop by wine installation application +test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && source ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs +cd "${XDG_DESKTOP_DIR:-$HOME/Desktop}" +rm ./Watchtower*.lnk + +# Close and Exit +POL_SetupWindow_Close +exit \ No newline at end of file New source code[ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" # Variable TITLE="Watchtower Library" PUBLISHER="Watchtower Bible and Tract Society of PA" PREFIX="Watchtower" URL="http://www.jw.org" AUTHOR="Vladislav Khomenko" DONE="FALSE" POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE" # Initialization POL_SetupWindow_Init POL_SetupWindow_SetID 1959 POL_Debug_Init # Presentation POL_SetupWindow_presentation "$TITLE" "$PUBLISHER" "$URL" "$AUTHOR" "$PREFIX" # Create Prefix POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "1.7.35" # Select Installation Method POL_SetupWindow_InstallMethod "CD,LOCAL" if [ "$INSTALL_METHOD" = "CD" ] then POL_SetupWindow_cdrom POL_SetupWindow_check_cdrom "rs_data/PUBS" POL_Wine start /unix "$CDROM/Setup.exe" elif [ "$INSTALL_METHOD" = "LOCAL" ] then while [ "$DONE" = "FALSE" ] do POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE" # Verify a the Setup.exe was selected and not another .exe if [ ${APP_ANSWER:(-9)} = "Setup.exe" ] then DONE="TRUE" else POL_SetupWindow_message "$(eval_gettext 'Setup.exe was not selected, Please select the setup file to run {Setup.exe}')" "$(eval_gettext 'File Selection Error')" fi done POL_Wine start /unix "$APP_ANSWER" fi # Wait for Installation to Exit POL_Wine_WaitExit POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed')" "Installation in progress" # Create Shortcuts POL_Shortcut "wtlibrary.exe" "$TITLE" # Remove .lnk created on the desktop by wine installation application test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && source ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs cd "${XDG_DESKTOP_DIR:-$HOME/Desktop}" rm ./Watchtower*.lnk # Close and Exit POL_SetupWindow_Close exit RepliesWednesday 1 April 2015 at 3:46
Wednesday 1 April 2015 at 14:35
|
vlad88 | Tuesday 31 March 2015 at 22:07 |
vlad88
|
WarningThis update has not been approved yet by the team. Differences@@ -0,0 +1,62 @@ +[ "$PLAYONLINUX" = "" ] && exit 0 +source "$PLAYONLINUX/lib/sources" + +# Variable +TITLE="Watchtower Library" +PUBLISHER="Watchtower Bible and Tract Society of PA" +PREFIX="Watchtower" +URL="http://www.jw.org" +AUTHOR="Vladislav Khomenko" +DONE="FALSE" + +POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE" + +# Initialization +POL_SetupWindow_Init +POL_SetupWindow_SetID 1959 +POL_Debug_Init + +# Presentation +POL_SetupWindow_presentation "$TITLE" "$PUBLISHER" "$URL" "$AUTHOR" "$PREFIX" + +# Create Prefix +POL_Wine_SelectPrefix "$PREFIX" +POL_Wine_PrefixCreate "1.7.35" + +# Select Installation Method +POL_SetupWindow_InstallMethod "CD,LOCAL" +if [ "$INSTALL_METHOD" = "CD" ] +then + POL_SetupWindow_cdrom + POL_SetupWindow_check_cdrom "rs_data/PUBS" + POL_Wine start /unix "$CDROM/Setup.exe" +elif [ "$INSTALL_METHOD" = "LOCAL" ] +then + while [ "$DONE" = "FALSE" ] + do + POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE" + # Verify a the Setup.exe was selected and not another .exe + if [ ${APP_ANSWER:(-9)} = "Setup.exe" ] + then + DONE="TRUE" + else + POL_SetupWindow_message "$(eval_gettext 'Setup.exe was not selected, Please select the setup file to run {Setup.exe}')" "$(eval_gettext 'File Selection Error')" + fi + done + POL_Wine start /unix "$APP_ANSWER" +fi + +# Wait for Installation to Exit +POL_Wine_WaitExit + +POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed')" "Installation in progress" + +# Create Shortcuts +POL_Shortcut "wtlibrary.exe" "$TITLE" + +# Remove .lnk created on the desktop by wine installation application +rm ~/Desktop/Watchtower*.lnk + +# Close and Exit +POL_SetupWindow_Close +exit \ No newline at end of file New source code[ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" # Variable TITLE="Watchtower Library" PUBLISHER="Watchtower Bible and Tract Society of PA" PREFIX="Watchtower" URL="http://www.jw.org" AUTHOR="Vladislav Khomenko" DONE="FALSE" POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE" # Initialization POL_SetupWindow_Init POL_SetupWindow_SetID 1959 POL_Debug_Init # Presentation POL_SetupWindow_presentation "$TITLE" "$PUBLISHER" "$URL" "$AUTHOR" "$PREFIX" # Create Prefix POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "1.7.35" # Select Installation Method POL_SetupWindow_InstallMethod "CD,LOCAL" if [ "$INSTALL_METHOD" = "CD" ] then POL_SetupWindow_cdrom POL_SetupWindow_check_cdrom "rs_data/PUBS" POL_Wine start /unix "$CDROM/Setup.exe" elif [ "$INSTALL_METHOD" = "LOCAL" ] then while [ "$DONE" = "FALSE" ] do POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE" # Verify a the Setup.exe was selected and not another .exe if [ ${APP_ANSWER:(-9)} = "Setup.exe" ] then DONE="TRUE" else POL_SetupWindow_message "$(eval_gettext 'Setup.exe was not selected, Please select the setup file to run {Setup.exe}')" "$(eval_gettext 'File Selection Error')" fi done POL_Wine start /unix "$APP_ANSWER" fi # Wait for Installation to Exit POL_Wine_WaitExit POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed')" "Installation in progress" # Create Shortcuts POL_Shortcut "wtlibrary.exe" "$TITLE" # Remove .lnk created on the desktop by wine installation application rm ~/Desktop/Watchtower*.lnk # Close and Exit POL_SetupWindow_Close exit 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