Orbitron

Informatie

Creator Bericht
piotr58 Anonymous

Information

This installer has been approved by the team.

Informatie

Platforms:
Downloads: 4685
Wine: 3.0

Feedbacks

Omschrijving

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.

Schermafdrukken

MiniatureMiniature

Broncode

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

Contribute
Member Bericht
Dadu042 Zondag 22 December 2019 om 11:07
Dadu042
Moderator

Information

This update has been approved by the team.

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"

New source code

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

Antwoorden

Aangepast door Dadu042

Tutul Zondag 17 Augustus 2014 om 15:10
Tutul
Moderator

Warning

This update has not been approved yet by the team.
Use it at your own risk

Bericht

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

New source code

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

Antwoorden

Zondag 17 Augustus 2014 om 15:11
Remove GetSetupImages, they do not have the good size
Anonymous
Zondag 17 Augustus 2014 om 16:39
Thanks!
Zondag 17 Augustus 2014 om 17:06
sorry I miss it

Aangepast door Tutul

piotr58 Zondag 17 Augustus 2014 om 14:54
piotr58 Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Bericht

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"

New source code

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

Antwoorden

piotr58 Zondag 17 Augustus 2014 om 14:17
piotr58 Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Bericht

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

New source code

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

Antwoorden

Zondag 17 Augustus 2014 om 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 Zondag 17 Augustus 2014 om 2:13
piotr58 Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Bericht

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

New source code

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

Antwoorden

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

Warning

This update has not been approved yet by the team.
Use it at your own risk

Bericht

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

New source code

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

Antwoorden

Zaterdag 16 Augustus 2014 om 15:48
When you click on "contribute" you can see a section to expand : I want to submit an improvement.

Aangepast door Tinou

piotr58 Zaterdag 16 Augustus 2014 om 13:40
piotr58 Anonymous

Bericht

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

Antwoorden