- File -> Export
- Java -> Runnable JAR file
- Runnable Jar File Specification
- Launch configuration: Select BreakoutServer from list
- Export destination: save to desktop as "BreakoutServer.jar"
- Library handling: Extract required libraries into generated JAR
- Save as ANT script (uncheck)
- Main Class: Select BreakoutServer.jar
- Arguments to Main: leave empty
- Custom Icon: Add /resources/BreakoutLogo.icns
- Use Macintosh Menu Bar (uncheck)
- Anti-alias Text (check)
- Anti-alias Graphics (check)
- JVM Version: 1.5+
- Add librxtxSerial.jnilib to Additional Files and Resources
- Type: APPL (default)
- Version: 0.2.3
- Signature: ???? (default)
- Identifier: com.breakoutjs
- Get-Info String: 0.2.3 Copyright Breakout Authors
- Allow Mixed Localizations (check)
- Development Region: English (default)
- Info Dictionary Version: 6.0 (default)
- Navigate to: Breakout Server.app/Contents/MacOS/
- lipo JavaApplicationStub -remove x86_64 -output JavaApplicationStub
32 and 64 bit versions unfortunately require 2 separate programs.
- Download exewrap096
- Copy /build/BreakoutServer.jar, /resources/rxtx_win_32bit/rxtxSerial.dll and /resources/BreakoutLogo.ico to the exewrap096 folder.
- Run: exewrap.exe -g -i BreakoutLogo.ico -o "Breakout Server32.exe" -v 0.2.3.0 BreakoutServer.jar
- Include the 32 bit version of rxtxSerial.dll with Breakout Server32.exe when distributing the app
- Download launch4j
- Copy /build/BreakoutServer.jar, /resources/rxtx_win_64_bit/rxtxSerial.dll and /resources/BreakoutLogo.ico to a new folder.
- Copy /resources/config.xml to same folder.
- Open the Launch4j executable and load config.xml
- Under the Basic tab, uncheck
Dont' wrap the jar, launch only
- Click the gear icon to build the wrapper.
- Click the play icon to build the exe file.
- Include the 64 bit version of rxtxSerial.dll with Breakout Server64.exe when distributing the app
Include librxtxSerial.so and /resources/BreakoutLogo_512.png with BreakoutServer.jar
You may need to run: sudo apt-get install librxtx-java instead of copying librxtxSerial.so