Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(theming): add icon to Windows executable #470

Conversation

nozwock
Copy link
Contributor

@nozwock nozwock commented May 20, 2024

Fixes #462

  • Adds an icon resource to the windows executable using embed-resource.

The icon is just the logo-dark.png with a dark background and slightly curved borders. We should go with it unless we have a better design.

Copy link
Contributor

deepsource-io bot commented May 20, 2024

Here's the code health analysis summary for commits 1eefb01..9cc1799. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource Rust LogoRust❌ Failure
❗ 1 occurence introduced
View Check ↗
DeepSource Test coverage LogoTest coverage⚠️ Artifact not reportedTimed out: Artifact was never reportedView Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

@adhirajsinghchauhan
Copy link
Contributor

Thanks for this!

Related opinion: #197 (comment)

Since you're on Windows, could you post comparison sizes for both the debug & release builds?

@AnonymousWP AnonymousWP changed the title Add an icon to the windows executable feat(theming): add icon to Windows executable May 20, 2024
@AnonymousWP AnonymousWP added the enhancement New feature or request label May 20, 2024
@nozwock
Copy link
Contributor Author

nozwock commented May 20, 2024

@adhirajsinghchauhan The screenshot was from a VM.

The executables were built using x86_64-pc-windows-gnu, and so the sizes with it are:

407M	debug/uad-ng.exe
13M	release/uad-ng.exe

Not sure about msvc.

@nozwock
Copy link
Contributor Author

nozwock commented May 20, 2024

Something to note is that the icon size would be about 130KB instead of 400KB, if we were to reduce the max icon size from 256px to 128px. If you're concerned about size that is.

Also, here are the file sizes with x86_64-pc-windows-msvc:

path physical
C:\Users\user\Desktop\universal-android-debloater-next-generation\target\debug\uad-ng.exe 40.7 MiB
C:\Users\user\Desktop\universal-android-debloater-next-generation\target\release\uad-ng.exe 14.1 MiB

@adhirajsinghchauhan adhirajsinghchauhan requested a review from a team May 21, 2024 18:00
@adhirajsinghchauhan adhirajsinghchauhan merged commit 59a6605 into Universal-Debloater-Alliance:main May 21, 2024
9 of 12 checks passed
@nozwock nozwock deleted the win-executable-icon branch May 22, 2024 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Main icon for UAD
3 participants