comparison Building.html @ 27:404eb7e57fe6

Standardize things for Linux packaging.
author David Barts <n5jrn@me.com>
date Fri, 25 Dec 2020 18:58:45 -0800
parents
children
comparison
equal deleted inserted replaced
26:9bf3d8de6904 27:404eb7e57fe6
1 <!DOCTYPE html>
2 <!-- Skeleton or template web page, in the standard style. -->
3 <html>
4 <head>
5 <meta http-equiv="content-type" content="text/html; charset=UTF-8">
6 <title>Building ImagePrep</title>
7 <style>
8 html { font-family: "TeX Gyre Schola", serif; }
9 h1, h2, h3, h4, h5, h6 { font-family: "Avenir Next", sans-serif; }
10 pre, code, kbd, samp { font-family: "Menlo", monospace; ; font-size: 85%; }
11 </style>
12 </head>
13 <body>
14 <h1>Building ImagePrep</h1>
15 <p>ImagePrep is a pure Java application. As such it is easy to build:</p>
16 <ol>
17 <li>Install prerequisites:</li>
18 <ol type="a">
19 <li><a href="https://ant.apache.org/">Apache Ant</a></li>
20 <li><a href="http://launch4j.sourceforge.net/">Launch4j</a>, if you are
21 building on Windows</li>
22 <li>Java JDK 1.8 or better (see notes below).</li>
23 <li><a href="https://kotlinlang.org/">Kotlin</a></li>
24 </ol>
25 <li>Type <code>ant clean</code> to be sure you’re starting with a clean
26 slate.</li>
27 <li>Use one of the following commands:</li>
28 <ol type="a">
29 <li><code>ant jar</code> — to build a “fat JAR” containing the
30 application (and the Kotlin runtime)</li>
31 <li><code>ant macapp</code> — to build a Macintosh application</li>
32 <li><code>ant deb</code> — to build a Debian package for the Gnome
33 desktop</li>
34 <li><code>ant winapp</code> — to build a Windows application (requires <a
35 href="http://launch4j.sourceforge.net/">Launch4j</a>)</li>
36 </ol>
37 </ol>
38 <h2>Which Version of Java to Use?</h2>
39 <p>In short, Java 1.8. Most systems don’t yet have OpenJDK 11 or greater
40 installed, so using a compiler newer than 1.8 is asking for trouble. All
41 code <em>should</em> build on OpenJDK 11 or greater, with the exception
42 of the OS-dependent code for the Macintosh (which will have to be recoded
43 to use the <code>java.awt.Desktop</code> class). The latter would be a
44 net win, as it is portable, and would spell the death of the only bit of
45 OS-dependent Kotlin code in this application.</p>
46 <p></p>
47 <ol>
48 <ol type="a">
49 </ol>
50 </ol>
51 </body>
52 </html>