Revision 20384

View differences:

tags/v1_1_2_1_Build_1046/install/instalador-gvSIG-mac/.project
1
<?xml version="1.0" encoding="UTF-8"?>
2
<projectDescription>
3
	<name>instalador-gvSIG-mac_v1121</name>
4
	<comment></comment>
5
	<projects>
6
	</projects>
7
	<buildSpec>
8
	</buildSpec>
9
	<natures>
10
	</natures>
11
</projectDescription>
0 12

  
tags/v1_1_2_1_Build_1046/install/instalador-gvSIG-mac/uninstallJAIIO.app/Contents/Script Debugger.list
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
<plist version="1.0">
4
<dict>
5
	<key>SD4Version</key>
6
	<string>4.0.8</string>
7
	<key>SDBundleVersion</key>
8
	<string>1.0b1</string>
9
	<key>SDWindowState</key>
10
	<dict>
11
		<key>chevronSyntax</key>
12
		<false/>
13
		<key>editorState</key>
14
		<dict>
15
			<key>showInvisibles</key>
16
			<false/>
17
			<key>showLineNumbers</key>
18
			<false/>
19
			<key>showSpaces</key>
20
			<false/>
21
			<key>showTabStops</key>
22
			<false/>
23
			<key>wrapLines</key>
24
			<false/>
25
		</dict>
26
		<key>errorsDividerPos</key>
27
		<real>0.0</real>
28
		<key>expressionsDividerPos</key>
29
		<real>117</real>
30
		<key>lineEndings</key>
31
		<integer>2</integer>
32
		<key>resultHeight</key>
33
		<real>134</real>
34
		<key>resultState</key>
35
		<dict>
36
			<key>browserDividerPos</key>
37
			<real>132</real>
38
			<key>desiredView</key>
39
			<integer>0</integer>
40
			<key>fsPathView</key>
41
			<integer>0</integer>
42
			<key>prettyPrint</key>
43
			<true/>
44
			<key>showInvisibles</key>
45
			<false/>
46
			<key>showSpaces</key>
47
			<false/>
48
			<key>showTabStops</key>
49
			<false/>
50
			<key>wrapLines</key>
51
			<true/>
52
		</dict>
53
		<key>resultsEdge</key>
54
		<integer>2</integer>
55
		<key>resultsOpen</key>
56
		<true/>
57
		<key>resultsWidth</key>
58
		<real>320</real>
59
		<key>selectionLength</key>
60
		<integer>0</integer>
61
		<key>selectionLocation</key>
62
		<integer>88</integer>
63
		<key>showDescriptionRulers</key>
64
		<true/>
65
		<key>showNavigationBar</key>
66
		<true/>
67
		<key>showStartup</key>
68
		<false/>
69
		<key>stackHeight</key>
70
		<real>137</real>
71
		<key>stayOpen</key>
72
		<false/>
73
		<key>toolbarVisible</key>
74
		<true/>
75
		<key>traceSpeed</key>
76
		<real>0.64999997615814209</real>
77
		<key>variablesDividerPos</key>
78
		<real>117</real>
79
		<key>variablesHeight</key>
80
		<real>218</real>
81
		<key>windowFrame</key>
82
		<string>44 125 1092 653 0 0 1280 778 </string>
83
		<key>windowSize</key>
84
		<string>{1092, 708}</string>
85
	</dict>
86
</dict>
87
</plist>
tags/v1_1_2_1_Build_1046/install/instalador-gvSIG-mac/uninstallJAIIO.app/Contents/Info.plist
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
<plist version="1.0">
4
<dict>
5
	<key>CFBundleAllowMixedLocalizations</key>
6
	<true/>
7
	<key>CFBundleDevelopmentRegion</key>
8
	<string>English</string>
9
	<key>CFBundleExecutable</key>
10
	<string>applet</string>
11
	<key>CFBundleIconFile</key>
12
	<string>logo gvsig.icns</string>
13
	<key>CFBundleInfoDictionaryVersion</key>
14
	<string>6.0</string>
15
	<key>CFBundleName</key>
16
	<string>uninstallJAIIO</string>
17
	<key>CFBundlePackageType</key>
18
	<string>APPL</string>
19
	<key>CFBundleSignature</key>
20
	<string>aplt</string>
21
	<key>LSRequiresCarbon</key>
22
	<true/>
23
</dict>
24
</plist>
tags/v1_1_2_1_Build_1046/install/instalador-gvSIG-mac/uninstallJAIIO.app/Contents/Resources/description.rtfd/TXT.rtf
1
{\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf270
2
{\fonttbl}
3
{\colortbl;\red255\green255\blue255;}
4
}
tags/v1_1_2_1_Build_1046/install/instalador-gvSIG-mac/uninstallJAIIO.app/Contents/Resources/Scripts/main.recover.txt
1
--set JAIIO_installed to 
+--set better_uninstall to
+set but1 to localized string "Keep It"
+set but2 to localized string "Uninstall?"
+display alert (localized string "JAI-ImageIO is installed") message (localized string "Previous gvSIG versions needed it and offered to install it. But it has been found to cause problems with Java applets in web browsers like Firefox, Camino and Opera.
+
+Therefore, we recommend JAI-ImageIO to be uninstalled. Current and future versions of gvSIG do not need it.
+
+Do you want to uninstall it?") buttons {but1, but2} default button but2 as warning
+
+set theResult to result
+
+if button returned of theResult is but2 then
+	do shell script "rm ~/Library/Java/Extensions/jai_imageio.jar"
+	--display alert (localized string "Uninstalled correctly.") message (localized string "JAI-ImageIO has been uninstalled.") as informational
+else
+	set but1 to localized string "Launch gvSIG"
+	--set but2 to localized string "Ask Again Next Time"
+	display alert (localized string "JAI-ImageIO has not been uninstalled.") message ?
+		(localized string "If you want to uninstall it in a future, you can do so by hand.
+
+To uninstall, delete the file jai_imageio.jar contained in: your Home folder -> Library -> Java -> Extensions.") buttons {but1} default button but1 as warning
+	
+	--set theResult to result
+	--if button returned of theResult is but1 then
+	do shell script "defaults write ~/gvSIG/launcher \"Keep installed JAI-ImageIO\" -bool yes"
+	--end if
+end if
tags/v1_1_2_1_Build_1046/install/instalador-gvSIG-mac/uninstallJAIIO.app/Contents/PkgInfo
1
APPLaplt
tags/v1_1_2_1_Build_1046/install/instalador-gvSIG-mac/build-bundle.xml
21 21
			developmentregion = "Spanish"
22 22
			icon="logo gvsig.icns"
23 23
			shortname="gvSIG"
24
			signature="gvSI"
24 25
			stubfile="preJava"
25 26
			version="${FULLVERSION}"
26 27
			build="${build.number}"
27 28
			infostring="gvSIG ${FULLVERSION}"
28 29
			vmoptions ="-Xmx500M"
29 30
			jvmversion ="${jvmversion}"
30
			extraclasspath = "andami.jar,lib/log4j-1.2.8.jar,lib/beans.jar,lib/gvsig-i18n.jar,lib/iver-utiles.jar,lib/castor-0.9.5.3-xml.jar,lib/crimson.jar,lib/xerces_2_5_0.jar,lib/javaws.jar,lib/xml-apis.jar,lib/JWizardComponent.jar,lib/looks-2.0.2.jar,lib/kxml2.jar,lib/jcalendar.jar,lib/xmlrpc-2.0.1.jar,lib/commons-codec-3.1.zip,lib/commons-collections-3.1.zip,lib/commons-pool-1.2.zip,lib/commons-dbcp-1.0-dev-20020806.zip,lib/jh.jar"
31
			extraclasspath = "jai_imageio.jar,andami.jar,lib/log4j-1.2.8.jar,lib/beans.jar,lib/gvsig-i18n.jar,lib/iver-utiles.jar,lib/castor-0.9.5.3-xml.jar,lib/crimson.jar,lib/xerces_2_5_0.jar,lib/javaws.jar,lib/xml-apis.jar,lib/JWizardComponent.jar,lib/looks-2.0.2.jar,lib/kxml2.jar,lib/jcalendar.jar,lib/xmlrpc-2.0.1.jar,lib/commons-codec-3.1.zip,lib/commons-collections-3.1.zip,lib/commons-pool-1.2.zip,lib/commons-dbcp-1.0-dev-20020806.zip,lib/jh.jar"
31 32
			workingdirectory  = "$JAVAROOT"
32 33
			showplist="true"
33 34
			>
......
40 41
			<javafileset dir="../../_fwAndami/" excludes="bin/ src/ src-test/ bin-test/ cachedir/ config/ docs/ schemas/ build.xml/ *.bat *.sh theme/ *.log"/>
41 42
		</jarbundler>
42 43

  
43
		<!-- tenemos ya un bundle con el script preJava, pero sin el "arrancador" de la JVM; hay que meterlo -->
44
		<!-- tenemos ya un bundle con el script preJava, pero sin el "arrancador" de la JVM, que habrá que meter en su sitio-->
44 45
		<copy file="JavaApplicationStub" todir="${NOMBRE_BUNDLE}.app/Contents/MacOS"/>
45 46
		<!-- (corregimos permisos de ejecucion que copy se ha cargado) -->
46 47
		<chmod file="${NOMBRE_BUNDLE}.app/Contents/MacOS/*" perm="+rwxrxrx"/>
......
65 66
			>
66 67
			<fileset dir="../../binaries/mac/raster/" includes="**/*.jar"/>
67 68
		</copy>
69
		
70
		<!-- copiar JAI-ImageIO junto a andami.jar, para ser usado en classpath en vez de como extensión de la JVM-->
71
		<copy file="jai_imageio.jar" todir="${NOMBRE_BUNDLE}.app/Contents/Resources/Java"/>
72
		
68 73
	</target>
69 74

  
70 75
</project>
tags/v1_1_2_1_Build_1046/install/instalador-gvSIG-mac/HOWTO-BUILD.txt
1
INSTALACIONES COMPLETAS:
1
DISTRIBUIBLE COMPLETO:
2 2
Para generar el bundle (.app) para Mac, se debe lanzar el script de Ant "build.xml".
3 3
Supone definida la variable build.number .
4 4
Dentro define FULLVERSION (habr? que cambiarlo para cada versi?n mayor, claro)
5
build.xml llama a build-bundle.xml para crear el bundle de gvSIG; luego lo mover? dentro del bundle "autoinstalador". 
5
build.xml llama a build-bundle.xml para crear el bundle de gvSIG. 
6 6
build-bundle.xml usa un Ant Task llamado Jarbundler, que se puede obtener en http://jarbundler.sourceforge.net/. Hay que instalarlo en la librer?a del Ant que se use.
7 7
Si se desea usar con el Ant incluido en Eclipse, adem?s se debe a?adir xercesImpl.jar, que va incluido en los Ant "normales" pero no en el de Eclipse. (Tambi?n se puede redefinir el ANTHOME en las preferencias de Eclipse para apuntar a un Ant instalado aparte, en el se haya instalador el jarbundler). 
8 8

  
......
19 19
Para el caso de gvSIG, en <miBundle.app>/Contents/Resources/Java/ ir? una copia del directorio gvsig/bin/ de un build normal.
20 20
De todo esto se encarga build-bundle.xml.
21 21

  
22
Luego, como en mac no es normal usar instaladores (sino que las aplicaciones son autocontenidas: se instalan copiando el bundle al disco duro, se desinstalan tirando el bundle a la papelera), usamos una peque?a aplicaci?n auxiliar: autoinstalador.app.
23
Autoinstalador.app est? pensado para contener el bundle de gvSIG creado en el paso anterior. De forma que el usuario ejecuta el autoinstalador con un doble click, y ?ste se encarga de comprobar que JAI y JAI I/O est?n correctamente instalados. Si no es as? los instala. Y acto seguido ejecuta el bundle de gvSIG que lleva dentro, de forma que para el usuario la instalaci?n es transparente (pero se le avisa de lo que est? pasando).
24
La estructura que nos interesa del autoinstalador es:
25
autoinstalador.app/
26
	Contents/
27
		Resources/
28
			instalacion/
29
				(JAI para OS X 10.3, JAI I/O, programa java para chequear instalacion)
30
			gvSIG/
31
				bundle gvSIG.app
32
			(...directorios de localizaci?n...)
22
Hasta gvSIG 1.1.x inclusive se usaba adem?s un bundle auxiliar "autoinstalador" que se encargaba de instalar JAI-ImageIO (si no lo estaba ya). Dado que causaba problemas, hemos abandonado eso y ahora se usa JAI-ImageIO en el Classpath de gvSIG.
33 23

  
34

  
35
build.xml se encarga de:
36
-- llamar a build-bundle.xml, que crea el bundle "gvSIG.app" con sus librerias nativas; 
37
-- y luego, de meter el bundle "gvSIG.app" en el bundle autoinstalador. 
38
El resultado final es un autoinstalador completo.
39

  
40 24
Nota: un usuario "normal" (no-desarrollador) de mac posiblemente no sepa qu? es un bundle. La forma normal de llamarlos es "aplicaci?n", y se suele considerar un item indivisible.
tags/v1_1_2_1_Build_1046/install/instalador-gvSIG-mac/build.xml
2 2
	<!-- Este script crea un bundle "simple" de gvSIG y lo envuelve en un bundle instalador de requisitos -->
3 3
	<property name="FULLVERSION" value="1.1.2.1"/>
4 4
	<property name="NOMBRE_BUNDLE" value="gvSIG ${FULLVERSION} build ${build.number}"/>
5
	<property name="NOMBRE_BUNDLE_AUTOINSTALADOR" value="${NOMBRE_BUNDLE} autoinstalador"/>
6
    <!-- Para mac OSX 10.3==>"1.4+" y para 10.4==> "1.5*" -->
5
	
7 6
    <property name="jvmversion" value="1.5*"/>
7
	<!-- para OS X 10.4 y 10.5 ==> jvmversion = "1.5*" 
8
			"1.4.1" significaría usar JVM 1.4.1 estrictamente
9
	     	"1.4*" significa JVM 1.4.x, siendo x el máximo posible
10
	     	"1.4+" significa JVM 1.4 o superior (p.ej., 1.5 si está instalado) -->
8 11

  
9

  
10 12
	<target name="init">
11 13
		<ant antfile="build-bundle.xml">
12 14
            <property name="jvmversion" value="${jvmversion}"/>
13 15
        </ant>
14 16

  
15 17

  
16
		<!-- hacemos copia del bundle autoinstalador ... -->
17
		<copy todir="${NOMBRE_BUNDLE_AUTOINSTALADOR}.app">
18
			<fileset dir="instalador.app"/>
19
		</copy>
20
		<!-- (corregimos permisos de ejecucion que copy se ha cargado) -->
21
		<chmod file="${NOMBRE_BUNDLE_AUTOINSTALADOR}.app/Contents/MacOS/applet" perm="+rwxrxrx"/>
22
		<!-- ...y movemos bundle gvSIG a su sitio dentro de autoinstalador -->
23
		<move todir="${NOMBRE_BUNDLE_AUTOINSTALADOR}.app/Contents/Resources/gvSIG/${NOMBRE_BUNDLE}.app">
24
			<fileset dir="${NOMBRE_BUNDLE}.app"/>
25
		</move>
18
		<!-- Eliminada la creación del "autoinstaller" porque ya no hace falta instalar JAI-ImageIO en OS X, 
19
		sino que lo usamos en el Classpath -->
26 20

  
27 21
	</target>
28 22

  

Also available in: Unified diff