Watchtower Library 2014

Informations

Créateur Messages
vlad88 Anonymous

Information

Cet installateur a été accepté par l'équipe.

Informations

Plate-formes :
Téléchargements : 26650
Wine: 1.7.35

Retours d'expérience

Description

Reference and research tool for Watchtower Society publications from 1970 up to and including 2014.

Code source

#!/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:

Contribuer
Membre Messages
.sherif_sans Lundi 8 Janvier 2018 à 18:33
.sherif_sans Anonymous

Messages

installed WT2015 using WT2014 script. Worked well. Update worked. Just needed to select text font in properties.

Linux Mint 18.1

Réponses

vlad88 Jeudi 2 Avril 2015 à 6:41
vlad88 Anonymous

Information

Cette mise à jour a été acceptée par l'équipe

Messages

Fixed 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

Nouveau code source

#!/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

Réponses

vlad88 Mercredi 1 Avril 2015 à 18:17
vlad88 Anonymous

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Messages

I 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

Nouveau code source

#!/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

Réponses

vlad88 Mercredi 1 Avril 2015 à 14:26
vlad88 Anonymous

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

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

Nouveau code source

[ "$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

Réponses

Mercredi 1 Avril 2015 à 18:00
Oh. One more thing; If you look at other scripts, there is a header that goes at the top of all of them. Please create a header like that and place it at the top of the script. That is the only thing that is catching my eye.
vlad88 Mardi 31 Mars 2015 à 23:16
vlad88 Anonymous

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

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

Nouveau code source

[ "$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

Réponses

Mercredi 1 Avril 2015 à 3:46
I would declare a WINEVERISON variable near the top of the script, and use the variable throughout, just as standard practice (if it needs to be changed in the future, one would just need to change the variable, instead of hunting through the script).

Also, I don't think you need to add "start /unix" for POL_Wine. Just to be safe, you probably want to add a "0" to the exit code at the end, as, if it succeeds, exit 0 would indicate that. At least that is what I am seeing. I may be missing something, though. lol.
Anonymous
Mercredi 1 Avril 2015 à 14:35
I changed the installer based on your comments
vlad88 Mardi 31 Mars 2015 à 22:07
vlad88 Anonymous

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

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

Nouveau code source

[ "$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

Réponses

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