Orbitron

Informations

Créateur Messages
piotr58 Anonymous

Information

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

Informations

Plate-formes :
Téléchargements : 3935
Wine: 3.0

Retours d'expérience

Description

Orbitron is a satellite tracking system for radio amateur and observing purposes. It's also used by weather professionals, satellite communication users, astronomers, UFO hobbyist and even astrologers. Website.

Captures d'écran

MiniatureMiniature

Code source

#!/bin/bash
#
# Date : (2014-08-16 14-35)
# Last revision : see changelog
# Wine version used : 3.0
# Distribution used to test : Mac OS X 10.9.4
# Author : piotr58
#
# CHANGELOG
# [piotr58] (2014-08-17 02-08)
#   Correction to create shortcut. Use a local directory to launch software and
#   install it.
# [piotr58] (2014-08-17 12-08)
#   Correction to use TMPDIR to launch software (it's more clean).
# [piotr58] (2014-08-17 14-50)
#   Correction to use TMPDIR to launch software (it's more clean).
# [Tutul] (2014-08-17 15-09)
#   A little correction for the script (nothing really important, juste for guidelines)
# [Dadu042] (2019-12-22)
#   Wine 1.7.12 (in fact it was system's version) -> 3.0
#   Add software category.
#   Add link to the user guide.

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="Orbitron"
PREFIX="Orbitron"
export WINEDEBUG="-all"
 
# Starting the script
POL_SetupWindow_Init
POL_SetupWindow_SetID 2224
POL_Debug_Init
POL_SetupWindow_presentation "Orbitron - Satellite Tracking System" "Sebastian Stoff" "http://www.stoff.pl" "piotr58" "$TITLE"

# Setting Wine Version
WORKING_WINE_VERSION="3.0"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
if [ "$INSTALL_METHOD" = "DOWNLOAD" ] ; then
        POL_System_TmpCreate "$PREFIX"
        cd "$POL_System_TmpDir"
        POL_Download "http://www.stoff.pl/orbitron/files/orbitron.exe"
        SETUP_EXE="orbitron.exe"
elif [ "$INSTALL_METHOD" = "LOCAL" ] ; then
        POL_SetupWindow_browse "Please select the installation file to run." "$TITLE"
        SETUP_EXE="$APP_ANSWER"
fi
POL_Wine_WaitBefore "$TITLE"
POL_Wine $SETUP_EXE
POL_Wine_WaitExit "$TITLE"

 
POL_System_TmpDelete
cd "$WINEPREFIX/drive_c/Program Files/Orbitron"
POL_Shortcut "Orbitron.exe" "$TITLE" "" "" "Science;"
POL_Shortcut_Document "$TITLE" "cnt.htm"
 
POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribuer
Membre Messages
Dadu042 Dimanche 22 Décembre 2019 à 11:07
Dadu042
Modérateur

Information

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

Differences

@@ -17,7 +17,7 @@
 # [Tutul] (2014-08-17 15-09)
 #   A little correction for the script (nothing really important, juste for guidelines)
 # [Dadu042] (2019-12-22)
-#   Wine 1.7.12 -> 3.0.0
+#   Wine 1.7.12 (in fact it was system's version) -> 3.0
 #   Add software category.
 #   Add link to the user guide.
 
@@ -35,7 +35,7 @@
 POL_SetupWindow_presentation "Orbitron - Satellite Tracking System" "Sebastian Stoff" "http://www.stoff.pl" "piotr58" "$TITLE"
 
 # Setting Wine Version
-WORKING_WINE_VERSION="3.0.0"
+WORKING_WINE_VERSION="3.0"
 
 POL_Wine_SelectPrefix "$PREFIX"
 POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

Nouveau code source

#!/bin/bash
#
# Date : (2014-08-16 14-35)
# Last revision : see changelog
# Wine version used : 3.0
# Distribution used to test : Mac OS X 10.9.4
# Author : piotr58
#
# CHANGELOG
# [piotr58] (2014-08-17 02-08)
#   Correction to create shortcut. Use a local directory to launch software and
#   install it.
# [piotr58] (2014-08-17 12-08)
#   Correction to use TMPDIR to launch software (it's more clean).
# [piotr58] (2014-08-17 14-50)
#   Correction to use TMPDIR to launch software (it's more clean).
# [Tutul] (2014-08-17 15-09)
#   A little correction for the script (nothing really important, juste for guidelines)
# [Dadu042] (2019-12-22)
#   Wine 1.7.12 (in fact it was system's version) -> 3.0
#   Add software category.
#   Add link to the user guide.

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="Orbitron"
PREFIX="Orbitron"
export WINEDEBUG="-all"
 
# Starting the script
POL_SetupWindow_Init
POL_SetupWindow_SetID 2224
POL_Debug_Init
POL_SetupWindow_presentation "Orbitron - Satellite Tracking System" "Sebastian Stoff" "http://www.stoff.pl" "piotr58" "$TITLE"

# Setting Wine Version
WORKING_WINE_VERSION="3.0"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
if [ "$INSTALL_METHOD" = "DOWNLOAD" ] ; then
        POL_System_TmpCreate "$PREFIX"
        cd "$POL_System_TmpDir"
        POL_Download "http://www.stoff.pl/orbitron/files/orbitron.exe"
        SETUP_EXE="orbitron.exe"
elif [ "$INSTALL_METHOD" = "LOCAL" ] ; then
        POL_SetupWindow_browse "Please select the installation file to run." "$TITLE"
        SETUP_EXE="$APP_ANSWER"
fi
POL_Wine_WaitBefore "$TITLE"
POL_Wine $SETUP_EXE
POL_Wine_WaitExit "$TITLE"

 
POL_System_TmpDelete
cd "$WINEPREFIX/drive_c/Program Files/Orbitron"
POL_Shortcut "Orbitron.exe" "$TITLE" "" "" "Science;"
POL_Shortcut_Document "$TITLE" "cnt.htm"
 
POL_SetupWindow_Close
exit 0

Réponses

Edité par Dadu042

Tutul Dimanche 17 Aoüt 2014 à 15:10
Tutul
Modérateur

Warning

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

Messages

A little correction :

- Set a wine version is more sure (for me, but I'm not a perfect developer)

- POL_SetupWindow_SetID 2224 (the ID of the script, you can see it on the url)

- A little optimisation of the installation (with the setup) :)

Differences

@@ -25,7 +25,6 @@
 export WINEDEBUG="-all"
  
 # Starting the script
-POL_GetSetupImages "http://www.stoff.pl/gfx/orbitron.gif" "orbitron.gif" "$TITLE" #No image uploaded for now. The logo is on http://www.stoff.pl/gfx/orbitron.gif
 POL_SetupWindow_Init
 POL_SetupWindow_SetID 2224
 POL_Debug_Init

Nouveau code source

#!/bin/bash

# CHANGELOG
# [piotr58] (2014-08-17 02-08)
#   Correction to create shortcut. Use a local directory to launch software and
#   install it.
# [piotr58] (2014-08-17 12-08)
#   Correction to use TMPDIR to launch software (it's more clean).
# [piotr58] (2014-08-17 14-50)
#   Correction to use TMPDIR to launch software (it's more clean).
# [Tutul] (2014-08-17 15-09)
#   A little correction for the script (nothing really important, juste for guidelines)

# Date : (2014-08-16 14-35)
# Last revision : (2014-08-17 14-50)
# Wine version used : 1.7.3
# Distribution used to test : Mac OS X 10.9.4
# Author : piotr58

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="Orbitron"
PREFIX="Orbitron"
export WINEDEBUG="-all"
 
# Starting the script
POL_SetupWindow_Init
POL_SetupWindow_SetID 2224
POL_Debug_Init
POL_SetupWindow_presentation "Orbitron - Satellite Tracking System" "Sebastian Stoff" "http://www.stoff.pl" "piotr58" "$TITLE"

# Setting Wine Version
WORKING_WINE_VERSION="1.7.12"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate

POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
if [ "$INSTALL_METHOD" = "DOWNLOAD" ] ; then
        POL_System_TmpCreate "$PREFIX"
        cd "$POL_System_TmpDir"
        POL_Download "http://www.stoff.pl/orbitron/files/orbitron.exe"
        SETUP_EXE="orbitron.exe"
elif [ "$INSTALL_METHOD" = "LOCAL" ] ; then
        POL_SetupWindow_browse "Please select the installation file to run." "$TITLE"
        SETUP_EXE="$APP_ANSWER"
fi
POL_Wine_WaitBefore "$TITLE"
POL_Wine $SETUP_EXE
POL_Wine_WaitExit "$TITLE"

 
POL_System_TmpDelete
cd "$WINEPREFIX/drive_c/Program Files/Orbitron"
POL_Shortcut "Orbitron.exe" "$TITLE"
 
POL_SetupWindow_Close
exit 0

Réponses

Dimanche 17 Aoüt 2014 à 15:11
Remove GetSetupImages, they do not have the good size
Anonymous
Dimanche 17 Aoüt 2014 à 16:39
Thanks!
Dimanche 17 Aoüt 2014 à 17:06
sorry I miss it

Edité par Tutul

piotr58 Dimanche 17 Aoüt 2014 à 14:54
piotr58 Anonymous

Warning

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

Messages

Hi,

My apologies for the successives tests. This version is now clean and really work properly smiley

Differences

@@ -6,9 +6,11 @@
 #   install it.
 # [piotr58] (2014-08-17 12-08)
 #   Correction to use TMPDIR to launch software (it's more clean).
+# [piotr58] (2014-08-17 14-50)
+#   Correction to use TMPDIR to launch software (it's more clean).
 
 # Date : (2014-08-16 14-35)
-# Last revision : (2014-08-17 12-08)
+# Last revision : (2014-08-17 14-50)
 # Wine version used : System (1.7.3 work also)
 # Distribution used to test : Mac OS X 10.9.4
 # Author : piotr58
@@ -28,10 +30,10 @@
 
 POL_Wine_SelectPrefix "$PREFIX"
 POL_Wine_PrefixCreate
-POL_System_TmpCreate "$PREFIX"
 
 POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
 if [ "$INSTALL_METHOD" = "DOWNLOAD" ] ; then
+	POL_System_TmpCreate "$PREFIX"
 	cd "$POL_System_TmpDir"
 	POL_Download "http://www.stoff.pl/orbitron/files/orbitron.exe"
 	POL_Wine "orbitron.exe"

Nouveau code source

#!/bin/bash

# CHANGELOG
# [piotr58] (2014-08-17 02-08)
#   Correction to create shortcut. Use a local directory to launch software and
#   install it.
# [piotr58] (2014-08-17 12-08)
#   Correction to use TMPDIR to launch software (it's more clean).
# [piotr58] (2014-08-17 14-50)
#   Correction to use TMPDIR to launch software (it's more clean).

# Date : (2014-08-16 14-35)
# Last revision : (2014-08-17 14-50)
# Wine version used : System (1.7.3 work also)
# Distribution used to test : Mac OS X 10.9.4
# Author : piotr58

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="Orbitron"
PREFIX="Orbitron"
export WINEDEBUG="-all"
 
# Starting the script
POL_GetSetupImages "http://www.stoff.pl/gfx/orbitron.gif" "orbitron.gif" "$TITLE" No image uploaded for now. The logo is on http://www.stoff.pl/gfx/orbitron.gif
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "Orbitron - Satellite Tracking System" "Sebastian Stoff" "http://www.stoff.pl" "piotr58" "Orbitron"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate

POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
if [ "$INSTALL_METHOD" = "DOWNLOAD" ] ; then
        POL_System_TmpCreate "$PREFIX"
        cd "$POL_System_TmpDir"
        POL_Download "http://www.stoff.pl/orbitron/files/orbitron.exe"
        POL_Wine "orbitron.exe"
        POL_SetupWindow_wait "Installation in progress." "Orbitron installation"
elif [ "$INSTALL_METHOD" = "LOCAL" ] ; then
        POL_SetupWindow_browse "Please select the installation file to run." "Orbitron installation"
        POL_SetupWindow_wait "Installation in progress." "Orbitron installation"
        POL_Wine start /unix "$APP_ANSWER"
fi
 
POL_System_TmpDelete
cd "$WINEPREFIX/drive_c/Program Files/Orbitron"
POL_Shortcut "Orbitron.exe" "Orbitron"
 
POL_SetupWindow_Close
exit 0

Réponses

piotr58 Dimanche 17 Aoüt 2014 à 14:17
piotr58 Anonymous

Warning

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

Messages

This is, I hope, the definitive install script :-)

Differences

@@ -1,7 +1,15 @@
 #!/bin/bash
+
+# CHANGELOG
+# [piotr58] (2014-08-17 02-08)
+#   Correction to create shortcut. Use a local directory to launch software and
+#   install it.
+# [piotr58] (2014-08-17 12-08)
+#   Correction to use TMPDIR to launch software (it's more clean).
+
 # Date : (2014-08-16 14-35)
-# Last revision : (2014-08-16 14-35)
-# Wine version used : 1.7.3
+# Last revision : (2014-08-17 12-08)
+# Wine version used : System (1.7.3 work also)
 # Distribution used to test : Mac OS X 10.9.4
 # Author : piotr58
 
@@ -9,34 +17,34 @@
 source "$PLAYONLINUX/lib/sources"
   
 TITLE="Orbitron"
-PREFIX="Orbitron"in
+PREFIX="Orbitron"
 export WINEDEBUG="-all"
  
-# Presentation
+# Starting the script
+POL_GetSetupImages "http://www.stoff.pl/gfx/orbitron.gif" "orbitron.gif" "$TITLE" No image uploaded for now. The logo is on http://www.stoff.pl/gfx/orbitron.gif
 POL_SetupWindow_Init
 POL_Debug_Init
-POL_SetupWindow_presentation "Orbitron - Satellite Tracking System" "Orbitron" "http://www.stoff.pl" "piotr58" "Sebastian Stoff"
-  
+POL_SetupWindow_presentation "Orbitron - Satellite Tracking System" "Sebastian Stoff" "http://www.stoff.pl" "piotr58" "Orbitron"
+
 POL_Wine_SelectPrefix "$PREFIX"
 POL_Wine_PrefixCreate
- 
-POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
-if [ "$INSTALL_METHOD" = "LOCAL" ]
-then
-    POL_SetupWindow_browse "Please select the installation file to run." "Orbitron installation"
-    POL_SetupWindow_wait "Installation in progress." "Orbitron installation"
-    POL_Wine start /unix "$APP_ANSWER"
-elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
-then
-    cd "$POL_System_TmpDir"
-    POL_Download "http://www.stoff.pl/orbitron/files/orbitron.exe"
-    POL_SetupWindow_wait "Installation in progress." "Orbitron installation"
-    POL_Wine start /unix "$POL_System_TmpDir/orbitron.exe"
+POL_System_TmpCreate "$PREFIX"
+
+POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
+if [ "$INSTALL_METHOD" = "DOWNLOAD" ] ; then
+	cd "$POL_System_TmpDir"
+	POL_Download "http://www.stoff.pl/orbitron/files/orbitron.exe"
+	POL_Wine "orbitron.exe"
+	POL_SetupWindow_wait "Installation in progress." "Orbitron installation"
+elif [ "$INSTALL_METHOD" = "LOCAL" ] ; then
+	POL_SetupWindow_browse "Please select the installation file to run." "Orbitron installation"
+	POL_SetupWindow_wait "Installation in progress." "Orbitron installation"
+	POL_Wine start /unix "$APP_ANSWER"
 fi
  
 POL_System_TmpDelete
- 
-POL_Shortcut "orbitron.exe" "Orbitron"
+cd "$WINEPREFIX/drive_c/Program Files/Orbitron"
+POL_Shortcut "Orbitron.exe" "Orbitron"
  
 POL_SetupWindow_Close
 exit 0
\ No newline at end of file

Nouveau code source

#!/bin/bash

# CHANGELOG
# [piotr58] (2014-08-17 02-08)
#   Correction to create shortcut. Use a local directory to launch software and
#   install it.
# [piotr58] (2014-08-17 12-08)
#   Correction to use TMPDIR to launch software (it's more clean).

# Date : (2014-08-16 14-35)
# Last revision : (2014-08-17 12-08)
# Wine version used : System (1.7.3 work also)
# Distribution used to test : Mac OS X 10.9.4
# Author : piotr58

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="Orbitron"
PREFIX="Orbitron"
export WINEDEBUG="-all"
 
# Starting the script
POL_GetSetupImages "http://www.stoff.pl/gfx/orbitron.gif" "orbitron.gif" "$TITLE" No image uploaded for now. The logo is on http://www.stoff.pl/gfx/orbitron.gif
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "Orbitron - Satellite Tracking System" "Sebastian Stoff" "http://www.stoff.pl" "piotr58" "Orbitron"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate
POL_System_TmpCreate "$PREFIX"

POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
if [ "$INSTALL_METHOD" = "DOWNLOAD" ] ; then
        cd "$POL_System_TmpDir"
        POL_Download "http://www.stoff.pl/orbitron/files/orbitron.exe"
        POL_Wine "orbitron.exe"
        POL_SetupWindow_wait "Installation in progress." "Orbitron installation"
elif [ "$INSTALL_METHOD" = "LOCAL" ] ; then
        POL_SetupWindow_browse "Please select the installation file to run." "Orbitron installation"
        POL_SetupWindow_wait "Installation in progress." "Orbitron installation"
        POL_Wine start /unix "$APP_ANSWER"
fi
 
POL_System_TmpDelete
cd "$WINEPREFIX/drive_c/Program Files/Orbitron"
POL_Shortcut "Orbitron.exe" "Orbitron"
 
POL_SetupWindow_Close
exit 0

Réponses

Dimanche 17 Aoüt 2014 à 14:40
Thank you! While this script will work, you could consider following our guidelines: Each POL_SetupWindows command should use the TITLE variable as title, and you could use POL_Wine_WaitBefore "$TITLE" instead of POL_SetupWindows_wait.
piotr58 Dimanche 17 Aoüt 2014 à 2:13
piotr58 Anonymous

Warning

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

Messages

This script work.

I dont understand why tmpdir doesn't work. So I create a directory to lauch file and install the software and remove it after.

Don't lauch the software in installation.

Differences

@@ -1,7 +1,7 @@
 #!/bin/bash
 # Date : (2014-08-16 14-35)
-# Last revision : (2014-08-16 14-35)
-# Wine version used : 1.7.3
+# Last revision : (2014-08-17 02-08)
+# Wine version used : System (1.7.3 ?)
 # Distribution used to test : Mac OS X 10.9.4
 # Author : piotr58
 
@@ -9,34 +9,35 @@
 source "$PLAYONLINUX/lib/sources"
   
 TITLE="Orbitron"
-PREFIX="Orbitron"in
+PREFIX="Orbitron"
 export WINEDEBUG="-all"
  
 # Presentation
 POL_SetupWindow_Init
 POL_Debug_Init
-POL_SetupWindow_presentation "Orbitron - Satellite Tracking System" "Orbitron" "http://www.stoff.pl" "piotr58" "Sebastian Stoff"
+POL_SetupWindow_presentation "Orbitron - Satellite Tracking System" "Sebastian Stoff" "http://www.stoff.pl" "piotr58" "Orbitron"
   
 POL_Wine_SelectPrefix "$PREFIX"
 POL_Wine_PrefixCreate
  
 POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
-if [ "$INSTALL_METHOD" = "LOCAL" ]
-then
-    POL_SetupWindow_browse "Please select the installation file to run." "Orbitron installation"
-    POL_SetupWindow_wait "Installation in progress." "Orbitron installation"
-    POL_Wine start /unix "$APP_ANSWER"
-elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
-then
-    cd "$POL_System_TmpDir"
-    POL_Download "http://www.stoff.pl/orbitron/files/orbitron.exe"
-    POL_SetupWindow_wait "Installation in progress." "Orbitron installation"
-    POL_Wine start /unix "$POL_System_TmpDir/orbitron.exe"
+if [ "$INSTALL_METHOD" = "LOCAL" ] ; then
+	POL_SetupWindow_browse "Please select the installation file to run." "Orbitron installation"
+	POL_SetupWindow_wait "Installation in progress." "Orbitron installation"
+	POL_Wine start /unix "$APP_ANSWER"
+elif [ "$INSTALL_METHOD" = "DOWNLOAD" ] ; then
+	cd "$WINEPREFIX/drive_c"
+	mkdir -p orbitron
+	cd orbitron
+	POL_Download "http://www.stoff.pl/orbitron/files/orbitron.exe"
+	POL_SetupWindow_wait "Installation in progress." "Orbitron installation"
+	POL_Wine "orbitron.exe"
+	cd ..
+	rm -Rf "$WINEPREFIX/drive_c/orbitron"
 fi
  
-POL_System_TmpDelete
- 
-POL_Shortcut "orbitron.exe" "Orbitron"
+cd "$WINEPREFIX/drive_c/Program Files/Orbitron"
+POL_Shortcut "Orbitron.exe" "Orbitron"
  
 POL_SetupWindow_Close
 exit 0
\ No newline at end of file

Nouveau code source

#!/bin/bash
# Date : (2014-08-16 14-35)
# Last revision : (2014-08-17 02-08)
# Wine version used : System (1.7.3 ?)
# Distribution used to test : Mac OS X 10.9.4
# Author : piotr58

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="Orbitron"
PREFIX="Orbitron"
export WINEDEBUG="-all"
 
# Presentation
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "Orbitron - Satellite Tracking System" "Sebastian Stoff" "http://www.stoff.pl" "piotr58" "Orbitron"
  
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate
 
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
if [ "$INSTALL_METHOD" = "LOCAL" ] ; then
        POL_SetupWindow_browse "Please select the installation file to run." "Orbitron installation"
        POL_SetupWindow_wait "Installation in progress." "Orbitron installation"
        POL_Wine start /unix "$APP_ANSWER"
elif [ "$INSTALL_METHOD" = "DOWNLOAD" ] ; then
        cd "$WINEPREFIX/drive_c"
        mkdir -p orbitron
        cd orbitron
        POL_Download "http://www.stoff.pl/orbitron/files/orbitron.exe"
        POL_SetupWindow_wait "Installation in progress." "Orbitron installation"
        POL_Wine "orbitron.exe"
        cd ..
        rm -Rf "$WINEPREFIX/drive_c/orbitron"
fi
 
cd "$WINEPREFIX/drive_c/Program Files/Orbitron"
POL_Shortcut "Orbitron.exe" "Orbitron"
 
POL_SetupWindow_Close
exit 0

Réponses

Dimanche 17 Aoüt 2014 à 2:22
I think that you forgot POL_System_TmpCreate
Dimanche 17 Aoüt 2014 à 2:24
(More info here: http://www.playonlinux.com/en/dev-documentation-6.html)
Anonymous
Dimanche 17 Aoüt 2014 à 14:16
Thanks. Its my first POM script. Is it a documentation of all "POL_" commands?
piotr58 Samedi 16 Aoüt 2014 à 14:41
piotr58 Anonymous

Warning

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

Messages

I purpose this install script but I don't know how to use it and how to modify description

Differences

@@ -0,0 +1,42 @@
+#!/bin/bash
+# Date : (2014-08-16 14-35)
+# Last revision : (2014-08-16 14-35)
+# Wine version used : 1.7.3
+# Distribution used to test : Mac OS X 10.9.4
+# Author : piotr58
+
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+  
+TITLE="Orbitron"
+PREFIX="Orbitron"in
+export WINEDEBUG="-all"
+ 
+# Presentation
+POL_SetupWindow_Init
+POL_Debug_Init
+POL_SetupWindow_presentation "Orbitron - Satellite Tracking System" "Orbitron" "http://www.stoff.pl" "piotr58" "Sebastian Stoff"
+  
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate
+ 
+POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
+if [ "$INSTALL_METHOD" = "LOCAL" ]
+then
+    POL_SetupWindow_browse "Please select the installation file to run." "Orbitron installation"
+    POL_SetupWindow_wait "Installation in progress." "Orbitron installation"
+    POL_Wine start /unix "$APP_ANSWER"
+elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
+then
+    cd "$POL_System_TmpDir"
+    POL_Download "http://www.stoff.pl/orbitron/files/orbitron.exe"
+    POL_SetupWindow_wait "Installation in progress." "Orbitron installation"
+    POL_Wine start /unix "$POL_System_TmpDir/orbitron.exe"
+fi
+ 
+POL_System_TmpDelete
+ 
+POL_Shortcut "orbitron.exe" "Orbitron"
+ 
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file

Nouveau code source

#!/bin/bash
# Date : (2014-08-16 14-35)
# Last revision : (2014-08-16 14-35)
# Wine version used : 1.7.3
# Distribution used to test : Mac OS X 10.9.4
# Author : piotr58

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="Orbitron"
PREFIX="Orbitron"in
export WINEDEBUG="-all"
 
# Presentation
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "Orbitron - Satellite Tracking System" "Orbitron" "http://www.stoff.pl" "piotr58" "Sebastian Stoff"
  
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate
 
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
    POL_SetupWindow_browse "Please select the installation file to run." "Orbitron installation"
    POL_SetupWindow_wait "Installation in progress." "Orbitron installation"
    POL_Wine start /unix "$APP_ANSWER"
elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then
    cd "$POL_System_TmpDir"
    POL_Download "http://www.stoff.pl/orbitron/files/orbitron.exe"
    POL_SetupWindow_wait "Installation in progress." "Orbitron installation"
    POL_Wine start /unix "$POL_System_TmpDir/orbitron.exe"
fi
 
POL_System_TmpDelete
 
POL_Shortcut "orbitron.exe" "Orbitron"
 
POL_SetupWindow_Close
exit 0

Réponses

Samedi 16 Aoüt 2014 à 15:48
When you click on "contribute" you can see a section to expand : I want to submit an improvement.

Edité par Tinou

piotr58 Samedi 16 Aoüt 2014 à 13:40
piotr58 Anonymous

Messages

I iforgot the link to launch orbitron : http://www.stoff.pl

Réponses