<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
	<id>https://game.etao.net/w/index.php?action=history&amp;feed=atom&amp;title=BuildStendhalOnMacOsX</id>
	<title>BuildStendhalOnMacOsX - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://game.etao.net/w/index.php?action=history&amp;feed=atom&amp;title=BuildStendhalOnMacOsX"/>
	<link rel="alternate" type="text/html" href="https://game.etao.net/w/index.php?title=BuildStendhalOnMacOsX&amp;action=history"/>
	<updated>2026-05-06T01:03:52Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://game.etao.net/w/index.php?title=BuildStendhalOnMacOsX&amp;diff=101&amp;oldid=prev</id>
		<title>imported&gt;Knlg42：​创建页面，内容为“Building Stendhal is very simple if you use ant and you satisfy the dependencies.  == But first... are you sure that you don&#039;t want to use an IDE? == This guide is a…”</title>
		<link rel="alternate" type="text/html" href="https://game.etao.net/w/index.php?title=BuildStendhalOnMacOsX&amp;diff=101&amp;oldid=prev"/>
		<updated>2020-04-20T13:23:18Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“Building Stendhal is very simple if you use ant and you satisfy the dependencies.  == But first... are you sure that you don&amp;#039;t want to use an IDE? == This guide is a…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Building Stendhal is very simple if you use ant and you satisfy the dependencies.&lt;br /&gt;
&lt;br /&gt;
== But first... are you sure that you don&amp;#039;t want to use an IDE? ==&lt;br /&gt;
This guide is aimed at those who just want to play the latest version of the game before it is officially released.&lt;br /&gt;
If you intend to do modifications to the game, it is recommended that you follow [[Configure a development environment (IDE)]] instead.&lt;br /&gt;
&lt;br /&gt;
==Get brew to make it easier==&lt;br /&gt;
&lt;br /&gt;
With [http://brew.sh Brew] you can install the stuff you need that Apple didn’t. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;/usr/bin/ruby -e &amp;quot;$(curl -fsSL &amp;lt;nowiki&amp;gt;https://raw.githubusercontent.com/Homebrew/install/master/install&amp;lt;/nowiki&amp;gt;)&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Get the source Stendhal code ==&lt;br /&gt;
&lt;br /&gt;
First of all, you need to get the Stendhal source code. There are two ways:&lt;br /&gt;
&lt;br /&gt;
* Download the source distribution at https://arianne-project.org/download/stendhal-src.tar.gz Use &amp;lt;code&amp;gt;gunzip -cstendhal-&amp;#039;&amp;#039;version&amp;#039;&amp;#039;-src.tar.gz | tar xopf -&amp;lt;/code&amp;gt; to unpack it.&lt;br /&gt;
* Alternatively you can clone the git repository to get the latest development version: &amp;lt;code&amp;gt;brew install git&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;git clone &amp;lt;nowiki&amp;gt;https://github.com/arianne/stendhal.git&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
&lt;br /&gt;
These are the requirements needed to build Stendhal:&lt;br /&gt;
&lt;br /&gt;
* OpenJDK or Oracle JDK 1.7 &amp;#039;&amp;#039;or higher&amp;#039;&amp;#039; e.g.: &lt;br /&gt;
&lt;br /&gt;
Download Oracle JDK from [http://www.oracle.com/technetwork/java/javase/downloads/index.html Oracle website]. &lt;br /&gt;
You need to accept license agreement to be able to download the file. Make sure you select the Mac OS X platform.&lt;br /&gt;
Double-click the downloaded file &amp;#039;*.dmg&amp;#039; and follow the on-screen installation.&lt;br /&gt;
&lt;br /&gt;
Verify that the system is now using JDK &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;java -version&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* ant &amp;lt;br&amp;gt;http://ant.apache.org or e.g.:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;brew install ant&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Building with ant==&lt;br /&gt;
&lt;br /&gt;
 cd stendhal-&amp;#039;&amp;#039;version&amp;#039;&amp;#039; &lt;br /&gt;
 ant clean &amp;amp;&amp;amp;  ant dist&lt;br /&gt;
&lt;br /&gt;
This will create the binaries you should be already familiar with, such as:&lt;br /&gt;
&lt;br /&gt;
===Client files===&lt;br /&gt;
:build/stendhal-&amp;#039;&amp;#039;version&amp;#039;&amp;#039;.zip&lt;br /&gt;
:build/stendhal-FULL-&amp;#039;&amp;#039;version&amp;#039;&amp;#039;.zip&lt;br /&gt;
&lt;br /&gt;
===Server files===&lt;br /&gt;
:build/stendhal-server-&amp;#039;&amp;#039;version&amp;#039;&amp;#039;.zip&lt;br /&gt;
&lt;br /&gt;
===Source files===&lt;br /&gt;
:build/stendhal-src-&amp;#039;&amp;#039;version&amp;#039;&amp;#039;.tar.gz&lt;br /&gt;
&lt;br /&gt;
== Building just the jar files ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; If you are unsure, follow the instructions described in the previous section (ant dist) to get a working system with all the files in the correct directory structure.&lt;br /&gt;
&lt;br /&gt;
To only build the jar files, without putting them together inside a zip, you just write&lt;br /&gt;
 ant&lt;br /&gt;
&lt;br /&gt;
This will build a full set of JAR files at stendhal-&amp;#039;&amp;#039;version&amp;#039;&amp;#039;/build/lib folder:&lt;br /&gt;
&lt;br /&gt;
===Client files===&lt;br /&gt;
:build/lib/stendhal-&amp;#039;&amp;#039;version&amp;#039;&amp;#039;.jar&lt;br /&gt;
:build/lib/stendhal-data-&amp;#039;&amp;#039;version&amp;#039;&amp;#039;.jar&lt;br /&gt;
:build/lib/stendhal-sound-data-&amp;#039;&amp;#039;version&amp;#039;&amp;#039;.jar&lt;br /&gt;
&lt;br /&gt;
===Server files===&lt;br /&gt;
:build/lib/stendhal-server-&amp;#039;&amp;#039;version&amp;#039;&amp;#039;.jar&lt;br /&gt;
:build/lib/stendhal-xmlconf-&amp;#039;&amp;#039;version&amp;#039;&amp;#039;.jar&lt;br /&gt;
:build/lib/stendhal-maps-&amp;#039;&amp;#039;version&amp;#039;&amp;#039;.jar&lt;br /&gt;
&lt;br /&gt;
== Finally ==&lt;br /&gt;
When you have successfully built Stendhal please read the install documentation. It is available on the Wiki at [[InstallingStendhal]].&lt;br /&gt;
&lt;br /&gt;
In the future if you wish to just create the client and server jars (not zips and all release packages) then &lt;br /&gt;
 ant clean compile&lt;br /&gt;
will suffice. Remember to &amp;quot;ant clean&amp;quot; before you &amp;quot;ant build&amp;quot; everytime - this is done automatically if you &amp;quot;ant dist&amp;quot;, however.&lt;br /&gt;
&lt;br /&gt;
[[Category:Stendhal]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Knlg42</name></author>
	</entry>
</feed>