Skip to content

Commit b0c99a7

Browse files
committed
bumped version to 0.3.8
1 parent 4121fcb commit b0c99a7

File tree

11 files changed

+15714
-1
lines changed

11 files changed

+15714
-1
lines changed

buildPackage.xml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
<project name="gngr" default="dist" basedir=".">
2+
<description>
3+
simple example build file
4+
</description>
5+
6+
<!-- set global properties for this build -->
7+
<property name="dist" location="dist"/>
8+
<property name="build" location="build"/>
9+
<property name="src" location="src"/>
10+
11+
<target name="init">
12+
<!-- Create the time stamp -->
13+
<tstamp/>
14+
15+
<mkdir dir="${build}/libs"/>
16+
<mkdir dir="${dist}"/>
17+
</target>
18+
19+
<target name="coreJar" depends="init" description="one jar to rule the core" >
20+
<jar jarfile="${build}/core.jar" duplicate="preserve">
21+
<fileset dir="${src}/Common/bin" />
22+
<fileset dir="${src}/Platform_Core/bin"/>
23+
<fileset dir="${src}/Platform_Public_API/bin"/>
24+
</jar>
25+
</target>
26+
27+
<target name="Primary_Extension" depends="init" description="jar the Primary_Extension" >
28+
<jar jarfile="${dist}/libs/Primary_Extension.jar">
29+
<fileset dir="${src}/Primary_Extension/bin" />
30+
<fileset dir="${src}/HTML_Renderer/bin" />
31+
</jar>
32+
</target>
33+
34+
<target name="signJars" depends="coreJar,Primary_Extension">
35+
<!-- Create the distribution directory -->
36+
<mkdir dir="${dist}/libs"/>
37+
38+
<signjar
39+
alias="myself"
40+
keystore="build_resources/testKeystore"
41+
storepass="gggnnn"
42+
lazy="true"
43+
destDir="${dist}/libs"
44+
>
45+
<path>
46+
<fileset dir="${build}/libs/" includes="*.jar" />
47+
<fileset dir="${src}/XAMJ_Build/ext/" includes="*.jar" />
48+
<fileset dir="${src}/Platform_Core/lib/" includes="*.jar" />
49+
</path>
50+
</signjar>
51+
52+
<signjar
53+
alias="myself"
54+
keystore="build_resources/testKeystore"
55+
storepass="gggnnn"
56+
lazy="true"
57+
destDir="${dist}/"
58+
>
59+
<path>
60+
<fileset dir="${build}/" includes="core.jar" />
61+
</path>
62+
</signjar>
63+
</target>
64+
65+
<target name="dist" depends="signJars" description="generate the distribution" >
66+
<copy file="build_resources/gngr.jnlp" todir="${dist}/" />
67+
<copy file="build_resources/gngr_libs.jnlp" todir="${dist}/" />
68+
<exec executable="./build_resources/makeUno.sh" vmlauncher="false" resolveexecutable="true">
69+
<arg line="build_resources/ ${build} ${dist}" />
70+
</exec>
71+
</target>
72+
73+
<target name="clean" description="clean up" >
74+
<delete dir="${dist}"/>
75+
</target>
76+
</project>

build_resources/flat-extensions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
gngr-extension.properties

build_resources/gngr.jnlp

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<jnlp
3+
spec="6.0+"
4+
>
5+
<information>
6+
<title>gngr</title>
7+
<vendor>gngr.info</vendor>
8+
9+
<offline-allowed/>
10+
11+
<!--
12+
<shortcut online="false" install="false">
13+
<desktop/>
14+
<menu submenu="ggg"/>
15+
</shortcut>
16+
-->
17+
</information>
18+
19+
<security>
20+
<all-permissions/>
21+
</security>
22+
23+
<resources>
24+
<j2se version="1.8+" />
25+
26+
<!-- we have to use jnlp namespace for the property, as per: http://stackoverflow.com/q/19400725/161257 -->
27+
<property name="jnlp.ext.files" value="libs/Primary_Extension.jar" />
28+
29+
<jar href="core.jar" main="true"/>
30+
31+
<extension name="gngr_libs" href="gngr_libs.jnlp" />
32+
33+
</resources>
34+
35+
<application-desc
36+
name="gngr"
37+
main-class="org.lobobrowser.main.EntryPoint"
38+
/>
39+
</jnlp>

build_resources/gngr_libs.jnlp

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<jnlp
3+
spec="6.0+"
4+
codebase="libs"
5+
>
6+
<information>
7+
<title>libs component</title>
8+
<vendor>gngr.info</vendor>
9+
<offline-allowed/>
10+
</information>
11+
<resources>
12+
<jar href="h2-1.4.180.jar" />
13+
<jar href="javatuples-1.2.jar" />
14+
<jar href="jooq-3.5.0-SNAPSHOT.jar" />
15+
16+
<jar href="antlr-runtime-3.5.2.jar" />
17+
<jar href="cssparser-0.9.14.jar" />
18+
<jar href="jlfgr-1_0.jar" />
19+
<jar href="js.jar" />
20+
<jar href="jstyleparser-1.17.jar" />
21+
<jar href="sac.jar" />
22+
<jar href="slf4j-api-1.7.7.jar" />
23+
<jar href="h2-1.4.180.jar" />
24+
<jar href="javatuples-1.2.jar" />
25+
<jar href="jooq-3.5.0-SNAPSHOT.jar" />
26+
27+
</resources>
28+
<component-desc/>
29+
</jnlp>
30+

build_resources/makeUno.sh

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
#!/bin/zsh
2+
3+
if [[ $# -lt 3 ]] then
4+
echo Too few arguments;
5+
exit;
6+
fi
7+
8+
_absolute_path () {
9+
echo -n `readlink -f $1`
10+
}
11+
12+
BUILD_RESOURCES_DIR=$(_absolute_path $1)
13+
BUILD_DIR=$(_absolute_path $2)
14+
DIST_DIR=$(_absolute_path $3)
15+
16+
echo Build Res dir : $BUILD_RESOURCES_DIR
17+
echo Build dir : $BUILD_DIR
18+
echo Dist dir : $DIST_DIR
19+
20+
set -e
21+
22+
ASSEMBLY_DIR=$BUILD_DIR/unoAssemblyDir
23+
24+
_expandJar () {
25+
jarFile=$1
26+
basename=`basename -s .jar $jarFile`
27+
subdir="uno\$\$\$$basename"
28+
mkdir $ASSEMBLY_DIR/$subdir
29+
( cd $ASSEMBLY_DIR/$subdir; jar xf $jarFile )
30+
echo $basename >> $ASSEMBLY_DIR/unoConfig
31+
}
32+
33+
rm -rf $ASSEMBLY_DIR
34+
mkdir $ASSEMBLY_DIR
35+
(cd $ASSEMBLY_DIR; jar xf $BUILD_RESOURCES_DIR/uno_0.0.2.jar)
36+
cp $BUILD_RESOURCES_DIR/flat-extensions $ASSEMBLY_DIR/
37+
echo org.lobobrowser.main.EntryPoint >> $ASSEMBLY_DIR/unoConfig
38+
_expandJar $BUILD_DIR/core.jar
39+
for jarFile in $DIST_DIR/libs/*.jar
40+
do
41+
_expandJar $jarFile
42+
done
43+
(cd $DIST_DIR; jar cfe gngr.jar uno.Uno -C $ASSEMBLY_DIR ./)
44+
rm -r $ASSEMBLY_DIR
45+
echo Jar created at $DIST_DIR/gngr.jar

0 commit comments

Comments
 (0)