|
From: Michael B. <Mic...@gm...> - 2007-02-23 07:11:26
|
Tobias Bender wrote:
> Here is the icon, which has to be unpacked and placed in ${basedir}
>
> Tobias
>
> On 18.02.2007, at 21:05, Tobias Bender wrote:
>
>> I have finished modifying the makefile, for generation of a mac os x
>> application bundle. Therefore I have used the jarbundler ant task [
>> http://informagen.com/JarBundler/ ], which is GPL licensed and
>> comparable to jsmooth.
>> As provisional icon I have used the mounted-armed Dragoon. As
>> mentioned before, I will replace this, if there is a special freecol
>> icon.
>>
>> Are there any plans to store the freecol.log and the freecol
>> savegames in $HOME/.freecol?
>>
>> Here are the additions to build.xml:
>>
>>
>> --- build.xml 2007-02-18 18:29:39.000000000 +0100
>> +++ build.mac.xml 2007-02-18 18:33:07.000000000 +0100
>> @@ -19,7 +19,6 @@
>> </path>
>>
>> -
>> <!-- TASK DEFINITIONS -->
>> <taskdef name="jsmoothgen"
>> classname="net.charabia.jsmoothgen.ant.JSmoothGen"
>> @@ -30,6 +29,15 @@
>>
>> classpath="${freecol.build.dir}/jars/standalone-compiler.jar"
>> />
>> + <!--JarBundler is a feature-rich Ant task which will create a
>> Mac OS X
>> + application bundle from a list of Jar files and a main class
>> name.
>> + (GPL-Software) -> http://informagen.com/JarBundler/
>> + Download and place jarbundler.jar into
>> ${freecol.build.dir}/jars-->
>> + <taskdef name="jarbundler"
>> + classname="net.sourceforge.jarbundler.JarBundler"
>> + classpath="${freecol.build.dir}/jars/jarbundler.jar"
>> + />
>> +
>> <target name="init" unless="TSTAMP">
>> <tstamp/>
>> </target>
>> @@ -185,6 +193,58 @@
>> <delete quiet="true" dir="${freecol.release.dir}/${freecol.name}"/>
>> <delete quiet="true"
>> file="${freecol.release.dir}/installer.jsmooth"/>
>>
>> + <!-- Mac OS X -->
>> + <jarbundler dir="${freecol.release.dir}"
>> + name="FreeCol"
>> + mainclass="net.sf.freecol.FreeCol"
>> + version="${freecol.version}"
>> + vmoptions="-Xmx256M"
>> + icon="${basedir}/FreeCol.icns"
>> + jvmversion="1.5+"
>> + arguments="--windowed --freecol-data
>> FreeCol.app/Contents/Resources/">
>> +
>> + <!--
>> + TODO: Where should I place the icon file?
>> + Replace the value of the icon-attribute with the future
>> icon path
>> + -->
>> +
>> + <jarfilelist dir="${basedir}" files="FreeCol.jar" />
>> +
>> + <jarfileset dir="${basedir}/jars/">
>> + <include name="**/*.jar" />
>> + <exclude name="**/CVS" />
>> + </jarfileset>
>> +
>> + <resourcefileset dir="${basedir}/data">
>> + <exclude name="**/CVS" />
>> + </resourcefileset>
>> + </jarbundler>
>> +
>> + <tar
>> destfile="${freecol.release.dir}/${freecol.release.name}-mac.tar.bz2"
>> compression="bzip2">
>> + <tarfileset dir="${freecol.release.dir}" mode="755"
>> + includes="FreeCol.app/Contents/MacOS/JavaApplicationStub"
>> + excludes="**/freecol*" />
>> + <tarfileset dir="${freecol.release.dir}">
>> + <include name="FreeCol.app/**"/>
>> + <exclude name="**/freecol*"/>
>> + <exclude
>> name="FreeCol.app/Contents/MacOS/JavaApplicationStub"/>
>> + </tarfileset>
>> + </tar>
>> +
>> + <tar
>> destfile="${freecol.release.dir}/${freecol.release.name}-mac.tar.gz"
>> compression="gzip">
>> + <tarfileset dir="${freecol.release.dir}" mode="755"
>> + includes="FreeCol.app/Contents/MacOS/JavaApplicationStub"
>> + excludes="**/freecol*" />
>> + <tarfileset dir="${freecol.release.dir}">
>> + <include name="FreeCol.app/**"/>
>> + <exclude name="**/freecol*"/>
>> + <exclude
>> name="FreeCol.app/Contents/MacOS/JavaApplicationStub"/>
>> + </tarfileset>
>> + </tar>
>> +
>> + <delete quiet="true" dir="${freecol.release.dir}/FreeCol.app"/>
>> + <!-- Mac OS X -->
>> +
>> <echo message="" />
>> <echo message="-------------------------------------------------"/>
>> <echo message="Distribution files created:"/>
>>
>> <build.xml.patch>
>>
>>
>> Tobias
>>
>>
>> On 18.02.2007, at 17:05, Michael Burschik wrote:
>>
>>> Tobias Bender wrote:
>>>> Hi.
>>>>
>>>> Thanks for your answer anyways. I think I have solved the problem
>>>> by telling the packagebundler, that FreeCol is an exclusive
>>>> java-1.5+ thing.
>>>>
>>>> Is there an "official" FreeCol Icon, which I can add to the bundle?
>>>>
>>>> Tobias
>>>>
>>>>
>>>> On 18.02.2007, at 16:19, Michael Burschik wrote:
>>>>
>>>>> Tobias Bender wrote:
>>>>>> Hi.
>>>>>> Im trying to build a double clickable java bundle for mac os x.
>>>>>> Therefore I have created another ant-task. But after executing
>>>>>> FreeCol, the following exception will be thrown:
>>>>>>
>>>>>> Am I doing something wrong when executing /ant dist? /The number
>>>>>> I have entered was: 0.5.3, 0.5.4 or nothing.
>>>>>>
>>>>>> Thanks in advance for help.
>>>>>> Tobias
>>>>>>
>>>>>>
>>>>> Sorry, I can't help you here. We know that there are several
>>>>> issues with Mac OS that are not reproducible on other operating
>>>>> systems. Unfortunately, only a few of us have access to Mac OS, so
>>>>> there isn't much we can do to help you.
>>>>>
>>>>> Regards
>>>>>
>>>>> Michael
>>>>>
>>>>
>>> As far as I know, there is no official FreeCol icon, but you had
>>> better check with Stian Grenborgen. He is better informed on who is
>>> working on what, etc.
>>>
>>> Regards
>>>
>>> Michael
>>>
Thanks for your work. I'm sorry I did not reply earlier, but I am pretty
busy this week. I will try to commit your changes during the weekend.
Regards
Michael
|