parent
83a9f87fe1
commit
89249e1854
@ -0,0 +1,6 @@ |
|||||||
|
app.mainjar=${jar.name} |
||||||
|
app.version=1.0 |
||||||
|
app.preferences.id=${application.title} |
||||||
|
app.mainclass=${main.class} |
||||||
|
app.classpath= |
||||||
|
${launcher.jvmargs} |
Binary file not shown.
@ -0,0 +1,6 @@ |
|||||||
|
app.mainjar=${jar.name} |
||||||
|
app.version=1.0 |
||||||
|
app.preferences.id=${application.title} |
||||||
|
app.mainclass=${main.class} |
||||||
|
app.classpath= |
||||||
|
${launcher.jvmargs} |
Binary file not shown.
Binary file not shown.
After Width: | Height: | Size: 9.9 KiB |
@ -0,0 +1,7 @@ |
|||||||
|
app.mainjar=${jar.name} |
||||||
|
app.version=1.0 |
||||||
|
app.id=${application.title} |
||||||
|
app.preferences.id=${application.title} |
||||||
|
app.mainclass=${main.class} |
||||||
|
app.classpath= |
||||||
|
${launcher.jvmargs} |
Binary file not shown.
After Width: | Height: | Size: 9.9 KiB |
@ -0,0 +1,7 @@ |
|||||||
|
app.mainjar=${jar.name} |
||||||
|
app.version=1.0 |
||||||
|
app.id=${application.title} |
||||||
|
app.preferences.id=${application.title} |
||||||
|
app.mainclass=${main.class} |
||||||
|
app.classpath= |
||||||
|
${launcher.jvmargs} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +0,0 @@ |
|||||||
The MinGW binutils were built on Mac OS X 10.4 by Peter Centgraf |
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,23 +0,0 @@ |
|||||||
Copyright (c) 2004, 2007 Grzegorz Kowal |
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy |
|
||||||
of this software and associated documentation files (the "Software"), to deal |
|
||||||
in the Software without restriction, including without limitation the rights |
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
||||||
copies of the Software, and to permit persons to whom the Software is |
|
||||||
furnished to do so, subject to the following conditions: |
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in |
|
||||||
all copies or substantial portions of the Software. |
|
||||||
|
|
||||||
Except as contained in this notice, the name(s) of the above copyright holders |
|
||||||
shall not be used in advertising or otherwise to promote the sale, use or other |
|
||||||
dealings in this Software without prior written authorization. |
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
|
||||||
THE SOFTWARE. |
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,12 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> |
|
||||||
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> |
|
||||||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"> |
|
||||||
<security> |
|
||||||
<requestedPrivileges> |
|
||||||
<requestedExecutionLevel level="asInvoker" uiAccess="false"/> |
|
||||||
<!-- <requestedExecutionLevel level="highestAvailable" uiAccess="false"/> --> |
|
||||||
<!-- <requestedExecutionLevel level="requireAdministrator" uiAccess="false"/> --> |
|
||||||
</requestedPrivileges> |
|
||||||
</security> |
|
||||||
</trustInfo> |
|
||||||
</assembly> |
|
@ -1,14 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> |
|
||||||
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> |
|
||||||
<dependency> |
|
||||||
<dependentAssembly> |
|
||||||
<assemblyIdentity |
|
||||||
type="win32" |
|
||||||
name="Microsoft.Windows.Common-Controls" |
|
||||||
version="6.0.0.0" |
|
||||||
processorArchitecture="X86" |
|
||||||
publicKeyToken="6595b64144ccf1df" |
|
||||||
language="*" /> |
|
||||||
</dependentAssembly> |
|
||||||
</dependency> |
|
||||||
</assembly> |
|
@ -1,25 +0,0 @@ |
|||||||
MinGW - Licensing Terms |
|
||||||
|
|
||||||
Various pieces distributed with MinGW come with its own copyright and license: |
|
||||||
|
|
||||||
Basic MinGW runtime |
|
||||||
MinGW base runtime package is uncopyrighted and placed in the public domain. |
|
||||||
This basically means that you can do what you want with the code. |
|
||||||
|
|
||||||
w32api |
|
||||||
You are free to use, modify and copy this package. |
|
||||||
No restrictions are imposed on programs or object files compiled with this library. |
|
||||||
You may not restrict the the usage of this library. |
|
||||||
You may distribute this library as part of another package or as a modified package |
|
||||||
if and only if you do not restrict the usage of the portions consisting |
|
||||||
of this (optionally modified) library. |
|
||||||
If distributed as a modified package then this file must be included. |
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful, |
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty |
|
||||||
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||||
|
|
||||||
MinGW profiling code |
|
||||||
MinGW profiling code is distributed under the GNU General Public License. |
|
||||||
|
|
||||||
The development tools such as GCC, GDB, GNU Make, etc all covered by GNU General Public License. |
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,157 @@ |
|||||||
|
/* |
||||||
|
* Copyright (c) 2009-2015 jMonkeyEngine |
||||||
|
* All rights reserved. |
||||||
|
* |
||||||
|
* Redistribution and use in source and binary forms, with or without |
||||||
|
* modification, are permitted provided that the following conditions are |
||||||
|
* met: |
||||||
|
* |
||||||
|
* * Redistributions of source code must retain the above copyright |
||||||
|
* notice, this list of conditions and the following disclaimer. |
||||||
|
* |
||||||
|
* * Redistributions in binary form must reproduce the above copyright |
||||||
|
* notice, this list of conditions and the following disclaimer in the |
||||||
|
* documentation and/or other materials provided with the distribution. |
||||||
|
* |
||||||
|
* * Neither the name of 'jMonkeyEngine' nor the names of its contributors |
||||||
|
* may be used to endorse or promote products derived from this software |
||||||
|
* without specific prior written permission. |
||||||
|
* |
||||||
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
||||||
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED |
||||||
|
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
||||||
|
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR |
||||||
|
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
||||||
|
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
||||||
|
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
||||||
|
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF |
||||||
|
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING |
||||||
|
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
||||||
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
||||||
|
*/ |
||||||
|
package com.jme3.gde.desktop.executables; |
||||||
|
|
||||||
|
import java.io.BufferedInputStream; |
||||||
|
import java.io.BufferedOutputStream; |
||||||
|
import java.io.File; |
||||||
|
import java.io.FileOutputStream; |
||||||
|
import java.io.IOException; |
||||||
|
import java.net.HttpURLConnection; |
||||||
|
import java.net.MalformedURLException; |
||||||
|
import java.net.URL; |
||||||
|
import java.util.concurrent.Callable; |
||||||
|
import java.util.logging.Level; |
||||||
|
import java.util.logging.Logger; |
||||||
|
import java.util.regex.Matcher; |
||||||
|
import java.util.regex.Pattern; |
||||||
|
import org.netbeans.api.progress.ProgressHandle; |
||||||
|
import org.netbeans.api.progress.ProgressHandleFactory; |
||||||
|
import org.openide.util.RequestProcessor; |
||||||
|
|
||||||
|
/** |
||||||
|
* Downloads Oracle JRE runtimes for a specific platform (windows-i586, |
||||||
|
* windows-x64, linux-i586, linux-x64, maxosx-x64), uses the platform being run |
||||||
|
* on to determine version to download. |
||||||
|
* |
||||||
|
* @author normenhansen |
||||||
|
*/ |
||||||
|
public class JreDownloader { |
||||||
|
|
||||||
|
private static final Logger logger = Logger.getLogger(JreDownloader.class.getName()); |
||||||
|
private static final RequestProcessor processor = new RequestProcessor("JRE Downloader", 1); |
||||||
|
|
||||||
|
/** |
||||||
|
* Download a specific platforms JRE to the location specified, a tar.gz |
||||||
|
* file will be downloaded so the location parameter should end with tar.gz |
||||||
|
* |
||||||
|
* @param platform The platform to download for (windows-i586, windows-x64, |
||||||
|
* linux-i586, linux-x64, maxosx-x64) |
||||||
|
* @param location The absolute file path to download to. |
||||||
|
*/ |
||||||
|
public static void downloadJre(String platform, String location) { |
||||||
|
String property = System.getProperty("java.runtime.version"); |
||||||
|
Matcher m = Pattern.compile("(\\d+)\\.(\\d+)\\.(\\d+)_(\\d+)\\-b(\\d+)").matcher(property); |
||||||
|
if (m.matches()) { |
||||||
|
// "http://download.oracle.com/otn-pub/java/jdk/${jv.minor}u${jv.update}-b${jv.build}/jre-${jv.minor}u${jv.update}-${platform.durl}.tar.gz";
|
||||||
|
String urlString = "http://download.oracle.com/otn-pub/java/jdk/" + m.group(2) + "u" + m.group(4) + "-b" + m.group(5) + "/jre-" + m.group(2) + "u" + m.group(4) + "-" + platform + ".tar.gz"; |
||||||
|
attemptDownload(urlString, new File(location)); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
private static void attemptDownload(String newUrl, File dest) { |
||||||
|
logger.log(Level.INFO, "Attempt to download JRE from {0}", newUrl); |
||||||
|
try { |
||||||
|
HttpURLConnection connection = (HttpURLConnection) new URL(newUrl).openConnection(); |
||||||
|
connection.setRequestProperty("Cookie", "gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie"); |
||||||
|
connection.setAllowUserInteraction(false); |
||||||
|
connection.setInstanceFollowRedirects(true); |
||||||
|
connection.connect(); |
||||||
|
int status = connection.getResponseCode(); |
||||||
|
if (status == HttpURLConnection.HTTP_OK) { |
||||||
|
downloadFile(connection, dest); |
||||||
|
} else if (status == HttpURLConnection.HTTP_MOVED_TEMP || status == HttpURLConnection.HTTP_MOVED_PERM || status == HttpURLConnection.HTTP_SEE_OTHER) { |
||||||
|
handleRedirect(connection, dest); |
||||||
|
} else { |
||||||
|
logger.log(Level.WARNING, "Download of JRE from {0} failed", newUrl); |
||||||
|
} |
||||||
|
} catch (MalformedURLException ex) { |
||||||
|
logger.log(Level.SEVERE, "{0}", ex); |
||||||
|
} catch (IOException ex) { |
||||||
|
logger.log(Level.SEVERE, "{0}", ex); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
private static void handleRedirect(HttpURLConnection conn, File dest) { |
||||||
|
String newUrl = conn.getHeaderField("Location"); |
||||||
|
logger.log(Level.INFO, "JRE download redirected to {0}", newUrl); |
||||||
|
conn.disconnect(); |
||||||
|
attemptDownload(newUrl, dest); |
||||||
|
} |
||||||
|
|
||||||
|
private static void downloadFile(final HttpURLConnection connection, final File dest) { |
||||||
|
logger.log(Level.INFO, "Downloading JRE from {0}", connection.getURL()); |
||||||
|
Callable task = new Callable() { |
||||||
|
|
||||||
|
public Object call() throws Exception { |
||||||
|
long length = connection.getContentLengthLong(); |
||||||
|
ProgressHandle progress = ProgressHandleFactory.createHandle("Downloading JRE to " + dest.getName()); |
||||||
|
progress.start((int) length); |
||||||
|
BufferedInputStream in = null; |
||||||
|
BufferedOutputStream out = null; |
||||||
|
try { |
||||||
|
in = new BufferedInputStream(connection.getInputStream()); |
||||||
|
out = new BufferedOutputStream(new FileOutputStream(dest)); |
||||||
|
int input = in.read(); |
||||||
|
int i = 0; |
||||||
|
while (input != -1) { |
||||||
|
out.write(input); |
||||||
|
input = in.read(); |
||||||
|
progress.progress(i); |
||||||
|
i++; |
||||||
|
} |
||||||
|
} catch (IOException ex) { |
||||||
|
logger.log(Level.SEVERE, "{0}", ex); |
||||||
|
} finally { |
||||||
|
try { |
||||||
|
if (in != null) { |
||||||
|
in.close(); |
||||||
|
} |
||||||
|
} catch (IOException ex) { |
||||||
|
logger.log(Level.SEVERE, "{0}", ex); |
||||||
|
} |
||||||
|
try { |
||||||
|
if (out != null) { |
||||||
|
out.close(); |
||||||
|
} |
||||||
|
} catch (IOException ex) { |
||||||
|
logger.log(Level.SEVERE, "{0}", ex); |
||||||
|
} |
||||||
|
connection.disconnect(); |
||||||
|
progress.finish(); |
||||||
|
} |
||||||
|
return null; |
||||||
|
} |
||||||
|
}; |
||||||
|
processor.submit(task); |
||||||
|
} |
||||||
|
} |
Binary file not shown.
@ -0,0 +1,238 @@ |
|||||||
|
<target name="-desktop-deployment" depends="-create-launcher-jvmargs, -test-platforms-enabled, -windows-x86-app, -windows-x64-app, -linux-x86-app, -linux-x64-app, -macosx-x64-app"/> |
||||||
|
|
||||||
|
<target name="-windows-x86-app" if="is.windows-x86.app.enabled"> |
||||||
|
<echo>Windows 32bit Application Creation</echo> |
||||||
|
<copy file="resources/desktop-deployment/windows-x86/package.cfg" tofile="resources/desktop-deployment/windows-x86/_package.cfg"> |
||||||
|
<filterchain> |
||||||
|
<replacestring from="$${main.class}" to="${main.class}"/> |
||||||
|
<replacestring from="$${launcher.jvmargs}" to="${launcher.jvmargs}"/> |
||||||
|
<replacestring from="$${application.title}" to="${application.title}"/> |
||||||
|
<replacestring from="$${jar.name}" to="${application.title}.jar"/> |
||||||
|
</filterchain> |
||||||
|
</copy> |
||||||
|
|
||||||
|
<zip destfile="${dist.dir}/${application.title}-Windows-x86.zip"> |
||||||
|
<zipfileset file="resources/desktop-deployment/windows-x86/stub.exe" filemode="755" fullpath="${application.title}/${application.title}.exe"/> |
||||||
|
<zipfileset file="resources/desktop-deployment/windows-x86/_package.cfg" fullpath="${application.title}/app/package.cfg"/> |
||||||
|
<zipfileset file="resources/desktop-deployment/windows-x86/icon.ico" fullpath="${application.title}/${application.title}.ico"/> |
||||||
|
<zipfileset file="${dist.jar}" prefix="${application.title}/app"/> |
||||||
|
<zipfileset dir="${dist.dir}/lib" prefix="${application.title}/app/lib"/> |
||||||
|
</zip> |
||||||
|
<delete file="resources/desktop-deployment/windows-x86/_package.cfg"/> |
||||||
|
<antcall target="-package-windows-x86-jre"/> |
||||||
|
</target> |
||||||
|
|
||||||
|
<target name="-package-windows-x86-jre" if="is.bundle.jre.enabled"> |
||||||
|
<untar src="resources/desktop-deployment/jre-windows-x86.tar.gz" dest="build/jre" compression="gzip"/> |
||||||
|
<dirset dir="build/jre" id="dirId-windows-x86"> |
||||||
|
<include name="jre*"/> |
||||||
|
</dirset> |
||||||
|
<property name= "dirName-windows-x86" refid= "dirId-windows-x86"/> |
||||||
|
<zip destfile="${dist.dir}/${application.title}-Windows-x86.zip" update="true"> |
||||||
|
<zipfileset dir="build/jre/${dirName-windows-x86}" prefix="${application.title}/runtime/jre"/> |
||||||
|
</zip> |
||||||
|
<delete dir="build/jre"/> |
||||||
|
</target> |
||||||
|
|
||||||
|
<target name="-windows-x64-app" if="is.windows-x64.app.enabled"> |
||||||
|
<echo>Windows 64bit Application Creation</echo> |
||||||
|
<copy file="resources/desktop-deployment/windows-x64/package.cfg" tofile="resources/desktop-deployment/windows-x64/_package.cfg"> |
||||||
|
<filterchain> |
||||||
|
<replacestring from="$${main.class}" to="${main.class}"/> |
||||||
|
<replacestring from="$${launcher.jvmargs}" to="${launcher.jvmargs}"/> |
||||||
|
<replacestring from="$${application.title}" to="${application.title}"/> |
||||||
|
<replacestring from="$${jar.name}" to="${application.title}.jar"/> |
||||||
|
</filterchain> |
||||||
|
</copy> |
||||||
|
|
||||||
|
<zip destfile="${dist.dir}/${application.title}-Windows-x64.zip"> |
||||||
|
<zipfileset file="resources/desktop-deployment/windows-x64/stub.exe" filemode="755" fullpath="${application.title}/${application.title}.exe"/> |
||||||
|
<zipfileset file="resources/desktop-deployment/windows-x64/_package.cfg" fullpath="${application.title}/app/package.cfg"/> |
||||||
|
<zipfileset file="resources/desktop-deployment/windows-x64/icon.ico" fullpath="${application.title}/${application.title}.ico"/> |
||||||
|
<zipfileset file="${dist.jar}" prefix="${application.title}/app"/> |
||||||
|
<zipfileset dir="${dist.dir}/lib" prefix="${application.title}/app/lib"/> |
||||||
|
</zip> |
||||||
|
<delete file="resources/desktop-deployment/windows-x64/_package.cfg"/> |
||||||
|
<antcall target="-package-windows-x64-jre"/> |
||||||
|
</target> |
||||||
|
|
||||||
|
<target name="-package-windows-x64-jre" if="is.bundle.jre.enabled"> |
||||||
|
<untar src="resources/desktop-deployment/jre-windows-x64.tar.gz" dest="build/jre" compression="gzip"/> |
||||||
|
<dirset dir="build/jre" id="dirId-windows-x64"> |
||||||
|
<include name="jre*"/> |
||||||
|
</dirset> |
||||||
|
<property name= "dirName-windows-x64" refid= "dirId-windows-x64"/> |
||||||
|
<zip destfile="${dist.dir}/${application.title}-Windows-x64.zip" update="true"> |
||||||
|
<zipfileset dir="build/jre/${dirName-windows-x64}" prefix="${application.title}/runtime/jre"/> |
||||||
|
</zip> |
||||||
|
<delete dir="build/jre"/> |
||||||
|
</target> |
||||||
|
|
||||||
|
<target name="-linux-x86-app" if="is.linux-x86.app.enabled"> |
||||||
|
<echo>Linux 32bit Application Creation</echo> |
||||||
|
<copy file="resources/desktop-deployment/linux-x86/package.cfg" tofile="resources/desktop-deployment/linux-x86/_package.cfg"> |
||||||
|
<filterchain> |
||||||
|
<replacestring from="$${main.class}" to="${main.class}"/> |
||||||
|
<replacestring from="$${launcher.jvmargs}" to="${launcher.jvmargs}"/> |
||||||
|
<replacestring from="$${application.title}" to="${application.title}"/> |
||||||
|
<replacestring from="$${jar.name}" to="${application.title}.jar"/> |
||||||
|
</filterchain> |
||||||
|
</copy> |
||||||
|
|
||||||
|
<zip destfile="${dist.dir}/${application.title}-Linux-x86.zip"> |
||||||
|
<zipfileset file="resources/desktop-deployment/linux-x86/stub" filemode="755" fullpath="${application.title}/${application.title}"/> |
||||||
|
<zipfileset file="resources/desktop-deployment/linux-x86/_package.cfg" fullpath="${application.title}/app/package.cfg"/> |
||||||
|
<zipfileset file="${dist.jar}" prefix="${application.title}/app"/> |
||||||
|
<zipfileset dir="${dist.dir}/lib" prefix="${application.title}/app/lib"/> |
||||||
|
</zip> |
||||||
|
<delete file="resources/desktop-deployment/linux-x86/_package.cfg"/> |
||||||
|
<antcall target="-package-linux-x86-jre"/> |
||||||
|
</target> |
||||||
|
|
||||||
|
<target name="-package-linux-x86-jre" if="is.bundle.jre.enabled"> |
||||||
|
<untar src="resources/desktop-deployment/jre-linux-x86.tar.gz" dest="build/jre" compression="gzip"/> |
||||||
|
<dirset dir="build/jre" id="dirId-linux-x86"> |
||||||
|
<include name="jre*"/> |
||||||
|
</dirset> |
||||||
|
<property name= "dirName-linux-x86" refid= "dirId-linux-x86"/> |
||||||
|
<zip destfile="${dist.dir}/${application.title}-Linux-x86.zip" update="true"> |
||||||
|
<zipfileset dir="build/jre/${dirName-linux-x86}" excludes ="bin/*" prefix="${application.title}/runtime/jre"/> |
||||||
|
<zipfileset dir="build/jre/${dirName-linux-x86}" includes ="bin/*" filemode="755" prefix="${application.title}/runtime/jre"/> |
||||||
|
</zip> |
||||||
|
<delete dir="build/jre"/> |
||||||
|
</target> |
||||||
|
|
||||||
|
<target name="-linux-x64-app" if="is.linux-x64.app.enabled"> |
||||||
|
<echo>Linux 64bit Application Creation</echo> |
||||||
|
<copy file="resources/desktop-deployment/linux-x64/package.cfg" tofile="resources/desktop-deployment/linux-x64/_package.cfg"> |
||||||
|
<filterchain> |
||||||
|
<replacestring from="$${main.class}" to="${main.class}"/> |
||||||
|
<replacestring from="$${launcher.jvmargs}" to="${launcher.jvmargs}"/> |
||||||
|
<replacestring from="$${application.title}" to="${application.title}"/> |
||||||
|
<replacestring from="$${jar.name}" to="${application.title}.jar"/> |
||||||
|
</filterchain> |
||||||
|
</copy> |
||||||
|
|
||||||
|
<zip destfile="${dist.dir}/${application.title}-Linux-x64.zip"> |
||||||
|
<zipfileset file="resources/desktop-deployment/linux-x64/stub" filemode="755" fullpath="${application.title}/${application.title}"/> |
||||||
|
<zipfileset file="resources/desktop-deployment/linux-x64/_package.cfg" fullpath="${application.title}/app/package.cfg"/> |
||||||
|
<zipfileset file="${dist.jar}" prefix="${application.title}/app"/> |
||||||
|
<zipfileset dir="${dist.dir}/lib" prefix="${application.title}/app/lib"/> |
||||||
|
</zip> |
||||||
|
<delete file="resources/desktop-deployment/linux-x64/_package.cfg"/> |
||||||
|
<antcall target="-package-linux-x64-jre"/> |
||||||
|
</target> |
||||||
|
|
||||||
|
<target name="-package-linux-x64-jre" if="is.bundle.jre.enabled"> |
||||||
|
<untar src="resources/desktop-deployment/jre-linux-x64.tar.gz" dest="build/jre" compression="gzip"/> |
||||||
|
<dirset dir="build/jre" id="dirId-linux-x64"> |
||||||
|
<include name="jre*"/> |
||||||
|
</dirset> |
||||||
|
<property name= "dirName-linux-x64" refid= "dirId-linux-x64"/> |
||||||
|
<zip destfile="${dist.dir}/${application.title}-Linux-x64.zip" update="true"> |
||||||
|
<zipfileset dir="build/jre/${dirName-linux-x64}" excludes ="bin/*" prefix="${application.title}/runtime/jre"/> |
||||||
|
<zipfileset dir="build/jre/${dirName-linux-x64}" includes ="bin/*" filemode="755" prefix="${application.title}/runtime/jre"/> |
||||||
|
</zip> |
||||||
|
<delete dir="build/jre"/> |
||||||
|
</target> |
||||||
|
|
||||||
|
<target name="-macosx-x64-app" if="is.macosx-x64.app.enabled"> |
||||||
|
<echo>MacOSX Application Creation</echo> |
||||||
|
<loadresource property="jfxdeploy.jvmargs"> |
||||||
|
<propertyresource name="run.jvmargs"/> |
||||||
|
<filterchain> |
||||||
|
<tokenfilter> |
||||||
|
<filetokenizer/> |
||||||
|
<replacestring from=" " to="</string><string>"/> |
||||||
|
</tokenfilter> |
||||||
|
</filterchain> |
||||||
|
</loadresource> |
||||||
|
<antcall target="-update-macosx-x64-plist-with-runtime"/> |
||||||
|
<antcall target="-update-macosx-x64-plist-without-runtime"/> |
||||||
|
<zip destfile="${dist.dir}/${application.title}-MacOSX.zip"> |
||||||
|
<zipfileset file="resources/desktop-deployment/macosx-x64/stub" filemode="755" fullpath="${application.title}.app/Contents/MacOS/JavaAppLauncher"/> |
||||||
|
<zipfileset file="resources/desktop-deployment/macosx-x64/_Info.plist" fullpath="${application.title}.app/Contents/Info.plist"/> |
||||||
|
<zipfileset file="resources/desktop-deployment/macosx-x64/icon.icns" fullpath="${application.title}.app/Contents/Resources/GenericApp.icns"/> |
||||||
|
<zipfileset file="${dist.jar}" prefix="${application.title}.app/Contents/Java"/> |
||||||
|
<zipfileset dir="${dist.dir}/lib" prefix="${application.title}.app/Contents/Java/lib"/> |
||||||
|
</zip> |
||||||
|
<delete file="resources/desktop-deployment/macosx-x64/_Info.plist"/> |
||||||
|
<antcall target="-package-macosx-x64-jre"/> |
||||||
|
</target> |
||||||
|
|
||||||
|
<target name="-update-macosx-x64-plist-with-runtime" if="is.bundle.jre.enabled"> |
||||||
|
<!--key>JVMRuntime</key> |
||||||
|
<string>jdk1.8.0_31.jdk</string--> |
||||||
|
<copy file="resources/desktop-deployment/macosx-x64/Info.plist" tofile="resources/desktop-deployment/macosx-x64/_Info.plist"> |
||||||
|
<filterchain> |
||||||
|
<replacestring from="$${main.class}" to="${main.class}"/> |
||||||
|
<replacestring from="$${run.jvmargs}" to="${jfxdeploy.jvmargs}"/> |
||||||
|
<replacestring from="$${application.title}" to="${application.title}"/> |
||||||
|
<replacestring from="$${jfxdeploy.jvmargs}" to="-Xnoagent"/> |
||||||
|
<replacestring from="$${jar.name}" to="${application.title}.jar"/> |
||||||
|
<replacestring from="<!--jvmruntime-->" to="<key>JVMRuntime</key> <string>jre.jre</string>"/> |
||||||
|
</filterchain> |
||||||
|
</copy> |
||||||
|
</target> |
||||||
|
|
||||||
|
<target name="-update-macosx-x64-plist-without-runtime" unless="is.bundle.jre.enabled"> |
||||||
|
<copy file="resources/desktop-deployment/macosx-x64/Info.plist" tofile="resources/desktop-deployment/macosx-x64/_Info.plist"> |
||||||
|
<filterchain> |
||||||
|
<replacestring from="$${main.class}" to="${main.class}"/> |
||||||
|
<replacestring from="$${run.jvmargs}" to="${jfxdeploy.jvmargs}"/> |
||||||
|
<replacestring from="$${application.title}" to="${application.title}"/> |
||||||
|
<replacestring from="$${jfxdeploy.jvmargs}" to="-Xnoagent"/> |
||||||
|
<replacestring from="$${jar.name}" to="${application.title}.jar"/> |
||||||
|
</filterchain> |
||||||
|
</copy> |
||||||
|
</target> |
||||||
|
|
||||||
|
<target name="-package-macosx-x64-jre" if="is.bundle.jre.enabled"> |
||||||
|
<untar src="resources/desktop-deployment/jre-macosx-x64.tar.gz" dest="build/jre" compression="gzip"/> |
||||||
|
<dirset dir="build/jre" id="dirId-macosx-x64"> |
||||||
|
<include name="jre*"/> |
||||||
|
</dirset> |
||||||
|
<property name= "dirName-macosx-x64" refid= "dirId-macosx-x64"/> |
||||||
|
<zip destfile="${dist.dir}/${application.title}-MacOSX.zip" update="true"> |
||||||
|
<zipfileset dir="build/jre/${dirName-macosx-x64}/Contents/Home" excludes ="bin/*" prefix="${application.title}.app/Contents/PlugIns/jre.jre/Contents/Home/jre"/> |
||||||
|
<zipfileset dir="build/jre/${dirName-macosx-x64}/Contents/Home" includes ="bin/*" filemode="755" prefix="${application.title}.app/Contents/PlugIns/jre.jre/Contents/Home/jre"/> |
||||||
|
<zipfileset file="build/jre/${dirName-macosx-x64}/Contents/Info.plist" fullpath="${application.title}.app/Contents/PlugIns/jre.jre/Contents/Info.plist"/> |
||||||
|
<zipfileset dir="build/jre/${dirName-macosx-x64}/Contents/MacOS" prefix="${application.title}.app/Contents/PlugIns/jre.jre/Contents/MacOS"/> |
||||||
|
</zip> |
||||||
|
<delete dir="build/jre"/> |
||||||
|
</target> |
||||||
|
|
||||||
|
<target name="-test-platforms-enabled"> |
||||||
|
<condition property="is.windows-x86.app.enabled"> |
||||||
|
<istrue value="${windows-x86.app.enabled}"/> |
||||||
|
</condition> |
||||||
|
<condition property="is.windows-x64.app.enabled"> |
||||||
|
<istrue value="${windows-x64.app.enabled}"/> |
||||||
|
</condition> |
||||||
|
<condition property="is.linux-x86.app.enabled"> |
||||||
|
<istrue value="${linux-x86.app.enabled}"/> |
||||||
|
</condition> |
||||||
|
<condition property="is.linux-x64.app.enabled"> |
||||||
|
<istrue value="${linux-x64.app.enabled}"/> |
||||||
|
</condition> |
||||||
|
<condition property="is.macosx-x64.app.enabled"> |
||||||
|
<istrue value="${macosx-x64.app.enabled}"/> |
||||||
|
</condition> |
||||||
|
<condition property="is.bundle.jre.enabled"> |
||||||
|
<istrue value="${bundle.jre.enabled}"/> |
||||||
|
</condition> |
||||||
|
</target> |
||||||
|
|
||||||
|
<target name="-create-launcher-jvmargs"> |
||||||
|
<script language="javascript"> |
||||||
|
<![CDATA[ |
||||||
|
var args = project.getProperty("run.jvmargs"); |
||||||
|
var res = args.split(" "); |
||||||
|
var out = ""; |
||||||
|
for (var i = 1; i < res.length+1; i++) { |
||||||
|
out = out + "jvmarg." + i + "=" + res[i-1] + "\n"; |
||||||
|
} |
||||||
|
project.setProperty("launcher.jvmargs", out); |
||||||
|
]]> |
||||||
|
</script> |
||||||
|
</target> |
@ -1,25 +0,0 @@ |
|||||||
<target name="-launch4j-exe" depends="-test-launch4j-exe-enabled" if="is.launch4j.exe.enabled"> |
|
||||||
<echo>Windows EXE Creation</echo> |
|
||||||
<taskdef classname="net.sf.launch4j.ant.Launch4jTask" classpath="${libs.launch4j.classpath}" name="launch4j"/> |
|
||||||
<copy file="resources/launch4j/winapp-config.xml" tofile="launch4j-config.xml" overwrite="true"> |
|
||||||
<filterchain> |
|
||||||
<replacestring from="$${dist.dir}" to="${dist.dir}"/> |
|
||||||
<replacestring from="$${dist.jar}" to="${dist.jar}"/> |
|
||||||
<replacestring from="$${main.class}" to="${main.class}"/> |
|
||||||
<replacestring from="$${run.jvmargs}" to="${run.jvmargs}"/> |
|
||||||
<replacestring from="$${application.title}" to="${application.title}"/> |
|
||||||
</filterchain> |
|
||||||
</copy> |
|
||||||
<launch4j configFile="launch4j-config.xml"/> |
|
||||||
<delete file="launch4j-config.xml"/> |
|
||||||
<zip destfile="${dist.dir}/${application.title}-Windows.zip"> |
|
||||||
<zipfileset file="${dist.dir}/${application.title}.exe" prefix=""/> |
|
||||||
<zipfileset dir="${dist.dir}/lib" prefix="lib/"/> |
|
||||||
</zip> |
|
||||||
<delete file="${dist.dir}/${application.title}.exe"/> |
|
||||||
</target> |
|
||||||
<target name="-test-launch4j-exe-enabled"> |
|
||||||
<condition property="is.launch4j.exe.enabled"> |
|
||||||
<istrue value="${launch4j.exe.enabled}"/> |
|
||||||
</condition> |
|
||||||
</target> |
|
@ -1,22 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8"?> |
|
||||||
<!-- |
|
||||||
To change this template, choose Tools | Templates |
|
||||||
and open the template in the editor. |
|
||||||
--> |
|
||||||
<!DOCTYPE library PUBLIC "-//NetBeans//DTD Library Declaration 1.0//EN" "http://www.netbeans.org/dtds/library-declaration-1_0.dtd"> |
|
||||||
<library version="1.0"> |
|
||||||
<name>launch4j</name> |
|
||||||
<type>j2se</type> |
|
||||||
<localizing-bundle>com.jme3.gde.desktop.executables.Bundle</localizing-bundle> |
|
||||||
<volume> |
|
||||||
<type>classpath</type> |
|
||||||
<resource>jar:nbinst://com.jme3.gde.desktop.executables/libs/launch4j.jar!/</resource> |
|
||||||
<resource>jar:nbinst://com.jme3.gde.desktop.executables/libs/xstream.jar!/</resource> |
|
||||||
</volume> |
|
||||||
<volume> |
|
||||||
<type>src</type> |
|
||||||
</volume> |
|
||||||
<volume> |
|
||||||
<type>javadoc</type> |
|
||||||
</volume> |
|
||||||
</library> |
|
@ -1,19 +0,0 @@ |
|||||||
|
|
||||||
<target name="-linux-launcher" depends="-test-linux-launcher-enabled" if="is.linux.launcher.enabled"> |
|
||||||
<echo>Linux Launcher Creation</echo> |
|
||||||
<echo file="${application.title}.sh">#!/bin/sh |
|
||||||
java JVMARGS -jar ${application.title}.jar |
|
||||||
</echo> |
|
||||||
<replace file="${application.title}.sh" token="JVMARGS" value="${run.jvmargs}"/> |
|
||||||
<zip destfile="${dist.dir}/${application.title}-Linux.zip"> |
|
||||||
<zipfileset file="${application.title}.sh" filemode="755" prefix=""/> |
|
||||||
<zipfileset file="${dist.jar}" prefix=""/> |
|
||||||
<zipfileset dir="${dist.dir}/lib" prefix="lib/"/> |
|
||||||
</zip> |
|
||||||
<delete file="${application.title}.sh"/> |
|
||||||
</target> |
|
||||||
<target name="-test-linux-launcher-enabled"> |
|
||||||
<condition property="is.linux.launcher.enabled"> |
|
||||||
<istrue value="${linux.launcher.enabled}"/> |
|
||||||
</condition> |
|
||||||
</target> |
|
Binary file not shown.
@ -1,36 +0,0 @@ |
|||||||
<target name="-mac-app" depends="-test-mac-app-enabled" if="is.mac.app.enabled"> |
|
||||||
<echo>MacOSX Application Creation</echo> |
|
||||||
<!--replace --> |
|
||||||
<loadresource property="jfxdeploy.jvmargs"> |
|
||||||
<propertyresource name="run.jvmargs"/> |
|
||||||
<filterchain> |
|
||||||
<tokenfilter> |
|
||||||
<filetokenizer/> |
|
||||||
<replacestring from=" " to="</string><string>"/> |
|
||||||
</tokenfilter> |
|
||||||
</filterchain> |
|
||||||
</loadresource> |
|
||||||
<copy file="resources/macapp/Info.plist" tofile="resources/macapp/_Info.plist"> |
|
||||||
<filterchain> |
|
||||||
<replacestring from="$${main.class}" to="${main.class}"/> |
|
||||||
<replacestring from="$${run.jvmargs}" to="${jfxdeploy.jvmargs}"/> |
|
||||||
<replacestring from="$${application.title}" to="${application.title}"/> |
|
||||||
<replacestring from="$${jfxdeploy.jvmargs}" to="-Xnoagent"/> |
|
||||||
<replacestring from="$${jar.name}" to="${application.title}.jar"/> |
|
||||||
</filterchain> |
|
||||||
</copy> |
|
||||||
<zip destfile="${dist.dir}/${application.title}-MacOSX.zip"> |
|
||||||
<zipfileset file="resources/macapp/osx-stub" filemode="755" fullpath="${application.title}.app/Contents/MacOS/JavaAppLauncher"/> |
|
||||||
<zipfileset file="resources/macapp/_Info.plist" fullpath="${application.title}.app/Contents/Info.plist"/> |
|
||||||
<zipfileset file="resources/macapp/osx-icon.icns" fullpath="${application.title}.app/Contents/Resources/GenericApp.icns"/> |
|
||||||
<zipfileset file="${dist.jar}" prefix="${application.title}.app/Contents/Java"/> |
|
||||||
<zipfileset dir="${dist.dir}/lib" prefix="${application.title}.app/Contents/Java/lib"/> |
|
||||||
</zip> |
|
||||||
<delete file="resources/macapp/_Info.plist"/> |
|
||||||
</target> |
|
||||||
|
|
||||||
<target name="-test-mac-app-enabled"> |
|
||||||
<condition property="is.mac.app.enabled"> |
|
||||||
<istrue value="${mac.app.enabled}"/> |
|
||||||
</condition> |
|
||||||
</target> |
|
Binary file not shown.
Before Width: | Height: | Size: 64 KiB |
@ -1,49 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8"?> |
|
||||||
<!-- |
|
||||||
To change this template, choose Tools | Templates |
|
||||||
and open the template in the editor. |
|
||||||
--> |
|
||||||
|
|
||||||
<launch4jConfig> |
|
||||||
<headerType>gui</headerType> |
|
||||||
<outfile>${dist.dir}/${application.title}.exe</outfile> |
|
||||||
<jar>${dist.jar}</jar> |
|
||||||
<errTitle>${application.title}</errTitle> |
|
||||||
<icon>resources/launch4j/win-icon.ico</icon> |
|
||||||
<chdir>.</chdir> |
|
||||||
<customProcName>true</customProcName> |
|
||||||
<singleInstance> |
|
||||||
<mutexName>${main.class}</mutexName> |
|
||||||
<windowTitle>${application.title}</windowTitle> |
|
||||||
</singleInstance> |
|
||||||
<jre> |
|
||||||
<!-- Specify one of the following or both --> |
|
||||||
<!--path>bundled JRE path</path--> |
|
||||||
<minVersion>1.5.0</minVersion> |
|
||||||
<opt>${run.jvmargs} -Xnoagent</opt> |
|
||||||
</jre> |
|
||||||
<!--splash> |
|
||||||
<file>file</file> |
|
||||||
<waitForWindow>true|false</waitForWindow> |
|
||||||
<timeout>seconds [60]</timeout> |
|
||||||
<timeoutErr>true|false</timeoutErr> |
|
||||||
</splash--> |
|
||||||
<!--versionInfo> |
|
||||||
<fileVersion>x.x.x.x</fileVersion> |
|
||||||
<txtFileVersion>text</txtFileVersion> |
|
||||||
<fileDescription>text</fileDescription> |
|
||||||
<copyright>text</copyright> |
|
||||||
<productVersion>x.x.x.x</productVersion> |
|
||||||
<txtProductVersion>text</txtProductVersion> |
|
||||||
<productName>text</productName> |
|
||||||
<companyName>text</companyName> |
|
||||||
<internalName>filename</internalName> |
|
||||||
<originalFilename>filename.exe</originalFilename> |
|
||||||
</versionInfo--> |
|
||||||
<!--messages> |
|
||||||
<startupErr>text</startupErr> |
|
||||||
<bundledJreErr>text</bundledJreErr> |
|
||||||
<jreVersionErr>text</jreVersionErr> |
|
||||||
<launcherErr>text</launcherErr> |
|
||||||
</messages--> |
|
||||||
</launch4jConfig> |
|
Loading…
Reference in new issue