This document describes how you can build a branded/skinned version of Spark. The instructions assume that you have Apache Ant and install4j installed on your computer.
Original source: Re: Change Name ’ Spark"??? - posted by Rob Alexander:
Below is what I recommend you change in the source code for your customized version of Spark. The source code repository for Spark is located at GitHub - igniterealtime/Spark: Cross-platform real-time collaboration client optimized for business and organizations.
When replacing Spark with your custom application name, only do so where it is a potentially user-facing label, not where it is anything Java-related. If your custom application name has more than one word (such as WGU Messenger), then for the value of things like installer.app_short_name, SHORT_NAME, and file names use hyphens instead of spaces (such as WGU-Messenger). Do not use underscores, since that will break Openfire’s Spark updater service.
In the following files, find and replace “Spark” (case sensitive) with your custom application name:
** **src\java\org\jivesoftware\resource\default.properties (also enter your server name for the value of HOST_NAME)
src\java\org\jivesoftware\resource\spark.properties (also replace “1.0” in “Version 1.0 Release” with the version of Spark you’re building)
**src\plugins\fastpath\src\resources\fastpath.properties **(also replace “1.0” in “Version 1.0 Release” with the version of Spark you’re building)
In the src\resources\images folder - replace the following files:
spark_100.jpg (100 x 100)
spark.png (244 x 188)
away.png (16 x 16)
DoNotDisturb.png (16 x 16)
From a command line, run “ant release” in the build directory.
Run startup.bat from the target\build\bin directory to make sure your customized Spark is functional.
Run spark.install4j from the build\installer directory and make the following customizations to the project in install4j:
In “General Settings”, go to the “Compiler Variables” tab to change the VERSION_REVISION to the correct number and find and replace “Spark” with your custom application name. Then go to the “Media File Options” tab to replace “spark” with $.
In “Launchers”, rename the Spark launcher to $, then right-click that launcher and click “Edit Launcher”. Then go to “Executable info” to replace “Spark” with $. Then go to “Windows version info” to replace “Spark” with $.
In “Installer”, go to the “Actions” tab to set the Target file for the desktop link to $.
In “Media”, right-click on the Windows media file and click “Edit Media File”. Then go to “Installer options” to replace “Spark” with $. Then go to “Bundled JRE” to choose the JRE to bundle (make sure you choose Java 1.6 or above, or else Spark won’t exit gracefully on Windows shut down).
I think (read that exactly as it is, I am guessing) that this doc might give you a hand:
And don’t worry, you aren’t the only village idiot around these parts. I thought source code compiled itself for a long time… then I realised it was mostly text, and it does need some sort of program to do so.
For those who are doing a Mac version as well, you need to replace the message.icns file in the src\resources\images file with your program icons. Otherwise, when you install the version on OS X it will continue to show the Spark icon.
Remove/disable for users “Plugins” download and install from Spark>Plugins)
Remove/disable for users “Languages” (Actions>Language)
Remove “User Guide” “Spark Forums” “Check for Updates” (Help> User Guide, Spark Forums, Check for Updates)
I also need to have automatic log off feature from Openfire Server after a specified amount of idle time.
The above changes are necessary for a system administrator to avoid unnecessary support request and avoid out of context questions from end users. We are committed to provide reliable solutions to our end users and make their work environment as sooth as possible. That doesn’t mean that we need to spend our valuable time on a paranoid/digger from messing up things by providing too much details of the tool. Too much information and unnecessary features are always trouble for any system administrator.
I would really appreciate your help on this and I’m sure all us will benefit once we are able to make the above changes.
This is maybe a silly question but is install4j not a free application? according to their site, a single windows-based license runs for ~$400 US. Is this right? Is there a feature limited free version? What are the limitations of the trial version?
Jonny, I installed the fully-featured free trial version, but whenever programs created with it were launched it would say something like “created with a trial version of install4j”. So, my employer bought me a license for the Windows version.