|
Revision 1920, 0.8 KB
(checked in by kris, 8 months ago)
|
|
Added two new PBIs to auto-build, atunes and javajdk16.
|
-
Property svn:executable set to
*
|
| Line | |
|---|
| 1 | #!/bin/sh |
|---|
| 2 | # Filename: PBI.FirstRun.sh |
|---|
| 3 | # Place any custom installation code here. |
|---|
| 4 | # This script will be run before your program is extracted into |
|---|
| 5 | # /Programs/<ProgNameVer>/ |
|---|
| 6 | # ${1} is the directory name. |
|---|
| 7 | # ${2} is the username of person performing install. |
|---|
| 8 | # Return a '2' to halt the PBI installation |
|---|
| 9 | # TIP: 'kdialog' should be used for user interaction. |
|---|
| 10 | # To interact with the progress dialog echo these flags: |
|---|
| 11 | # echo 'TOTALSTEPS: <num>' # Set the total steps of the progress bar |
|---|
| 12 | # echo 'SETSTEPS: <num>' # Set the current progress of the progress bar |
|---|
| 13 | # echo 'MSG: <text>' # Display this text above progress bar |
|---|
| 14 | ######################################### |
|---|
| 15 | |
|---|
| 16 | if [ ! -e "/usr/local/bin/java" ] |
|---|
| 17 | then |
|---|
| 18 | kdialog --msgbox "Atunes requires Java! Please install Java from www.pbidir.com " |
|---|
| 19 | exit 2 |
|---|
| 20 | fi |
|---|