I'm running into an issue where my distributable w...
# compose-desktop
m
I'm running into an issue where my distributable works fine, but the release distributable runs into GTK issues due to a libfreetype error. Using LD_PRELOAD to use system libfreetype works fine, but this is obviously not an acceptable solution for end users. How can I fix my release builds?
m
If the distributable works fine and the release distributable doesn't, this sounds like a ProGuard problem. As a first try I'd switch off ProGuard and then try again with a newly generated distributable.
m
Disabling proguard does seem to fix it, what do I need to change to fix it with proguard enabled?
m
You have to check your ProGuard rules, which can be very tedious. In the ProGuard config block
Copy code
proguard {
    version.set("7.8.2")
    isEnabled.set(false)
    optimize.set(false)
    obfuscate.set(false)
    configurationFiles.from(project.file("compose-desktop.pro"))
}
I'd first try to enable ProGuard but keep
optimize
and
obfuscate
switched off. Maybe that helps already. If not, you have to check your individual ProGuards rules or disable ProGuard for release builds altogether like I do.