fxlauncher icon indicating copy to clipboard operation
fxlauncher copied to clipboard

obfuscate main program

Open xLevision opened this issue 5 years ago • 6 comments

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?

xLevision avatar Jun 20 '19 10:06 xLevision

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 :)

edvin avatar Jun 20 '19 10:06 edvin

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

That will fix it?

xLevision avatar Jun 20 '19 10:06 xLevision

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.

edvin avatar Jun 20 '19 10:06 edvin

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.

xLevision avatar Jun 20 '19 10:06 xLevision

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 :)

edvin avatar Jun 20 '19 10:06 edvin

i´ll try it, thank you for reply!

xLevision avatar Jun 20 '19 10:06 xLevision