Skip to content

Disable ProGuard for desktop release and add application icon#4776

Merged
jamesarich merged 2 commits intomainfrom
fix/disable-proguard
Mar 13, 2026
Merged

Disable ProGuard for desktop release and add application icon#4776
jamesarich merged 2 commits intomainfrom
fix/disable-proguard

Conversation

@jamesarich
Copy link
Copy Markdown
Collaborator

This pull request makes improvements to the Meshtastic Desktop application's build configuration and user interface, focusing on packaging and branding. The main changes include disabling Proguard for release builds, setting platform-specific app icons for installers, and updating the app window to display the icon.

Packaging and build configuration:

  • Disabled Proguard for release builds by setting isEnabled to false in desktop/build.gradle.kts, which prevents code obfuscation and simplifies debugging.
  • Added platform-specific app icon settings for macOS, Windows, and Linux native distributions in desktop/build.gradle.kts, ensuring the application uses the correct icon in installers.

User interface and branding:

  • Imported painterResource in desktop/src/main/kotlin/org/meshtastic/desktop/Main.kt to enable loading the app icon.
  • Updated the main application window to display the app icon using painterResource("icon.png").

This commit disables ProGuard obfuscation/optimization for the desktop release build type while retaining the reference to the configuration file.

Specific changes:
- Set `isEnabled.set(false)` within the `buildTypes.release.proguard` configuration in `desktop/build.gradle.kts`.

Signed-off-by: James Rich <[email protected]>
This commit adds a new application icon and configures the desktop build and runtime to use it across macOS, Windows, and Linux.

Specific changes include:
- Added `icon.png` to the desktop resource directory.
- Updated `build.gradle.kts` to set the `iconFile` for macOS, Windows, and Linux native distributions.
- Updated `Main.kt` to set the window icon using the new resource.

Signed-off-by: James Rich <[email protected]>
@github-actions github-actions bot added the bugfix PR tag label Mar 13, 2026
@jamesarich jamesarich merged commit aacf5c6 into main Mar 13, 2026
5 checks passed
@jamesarich jamesarich deleted the fix/disable-proguard branch March 13, 2026 04:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix PR tag

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant