edvin / fxlauncher

Auto updating launcher for JavaFX Applications
Apache License 2.0
713 stars 110 forks source link

obfuscate main program #167

Open xLevision opened 5 years ago

xLevision commented 5 years ago

Hello,

I want to use Proguard to obfuscate my main application after building the Project. The problem is, the launcher will download every restart the obfuscated application, maybe because the app.xml in the launcher.

there is a way to fix that? Can i create or replace the app.xml in the launcher myself?

edvin commented 5 years ago

Yes, it's just a zip file, so you can open it and swap out the app.xml, or use the jar command to replace it :)

xLevision commented 5 years ago

Ok, i just have to generate a new checksum, with ur alogirithm, and replace it in the app.xml.

That will fix it?

edvin commented 5 years ago

You can do that, but you could also just make sure the obfuscation happens before you bundle the app.xml file in the launcher, so you don't need to fiddle with this at all.

xLevision commented 5 years ago

I have no idea how to do this, acutally i obfuscate with the Proguard GUI. So i have to build, take the jar and obfuscate.

edvin commented 5 years ago

Just do that before you run the create-manifest and embed-manifest-in-launcher step. Refer to the maven or gradle example project for more info and examples :)

xLevision commented 5 years ago

i´ll try it, thank you for reply!