![]() |
Developers »
Create Installation Packages For Different Platforms |
|
Creating FreeGuide installer packagesThis page tells you how to make installers (EXEs for Windows, RPMs, debs etc for Linux). You need to run "ant" in the FreeGuide root source directory (the one containing the file build.xml) first. It will prepare some files by setting their version number, compile the application and all the plugins, and pack things into JAR files. WindowsFor building windows package you need to have the NSIS tool for creating windows installers - NSIS. There are two version of the Windows package - one including the XMLTV grabbers and one without XMLTV. The two alternative scripts for creating the Windows installer are in: build/install/windows/freeguide-without-xmltv.nsi and build/install/windows/freeguide-with-xmltv.nsi (These are relative to the root "freeguide-tv" directory, which contains the build.xml file.) Once NSIS is installed, you can compile these scripts by right-clicking them in Windows Explorer and selecting "Compile NSIS Script". The installer will be built and put inside dist/windows/. You will need to create this directory first. The version containing the XMLTV grabbers (the xmltv.exe file) is approx 7MB, whereas the version without XMLTV is less than 1MB. Linux .deb[Can someone contribute these instructions?] Linux .rpmTo make an RPM of FreeGuide, run this in the root directory: ant dist-rpm Get in touch with the developers if this fails. Linux .tar.gzTo make a .tar.gz file containing every file installed by the RPM or deb installers, run this in the root directory: ant dist-tgz Get in touch with the developers if this fails. Mac OS XThis assumes that you have got xmltv working somehow. Creating the Package How to create a Mac OS X Application Bundle. Download and install the latest version of XCode from Apple Developer's website. Download and extract the Freeguide source code you wish to create the package from. Load the Jar Bundler App, which can be found in the following path after Xcode has been installed /Developer/Applications/Java Tools/ For the main class, choose the startup.jar file from the Freeguide source directory. Under class path and files, choose all of the files found in the lib directory that is under the Freeguide source directory. For the command line options enter the following:
Then check off use Macintosh Menu Bar. In the JVM Version, select 1.5+ for the best results. In the arguments to commandline dialog box, enter the following:
In the JVM Version dialog box, if you want Freeguide to use the Macintosh menu bar, select version 1.4+ of the JVM, otherwise choose any JVM. Under the Properties Dialog box. Check Set Working Directory to inside Application Package Select choose icon and choose a "provided" icns file or make your own. make your own icons coming soon Then select create application. Choose a file name, I would suggest Freeguide. Remember the location where the app bundle is created, because you will need to enter into its directory structure like so: cd "PATH_TO_APP_BUNDLE/Freeguide.app/Contents/MacOS/" then copy the doc files from the source tarball to the path stated above like so cp -RLv FREEGUIDE_SOURCE/doc . Configuring the Package Coming soon... TODOs
Notes I do not believe this creates universal java apps. |
If you would like to help improve this site, please Contact Us and we will give you the password to edit pages. | |
Page last modified on June 03, 2008 PmWiki Info | - - - () - |