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

LosslessCut-linux-x64.tar.bz2 is shipped without the program's icon.svg #2249

Closed
4 tasks done
AnthillSudoku opened this issue Nov 23, 2024 · 9 comments
Closed
4 tasks done

Comments

@AnthillSudoku
Copy link

The fewer issues I have to read, the more new features I will have time to implement, so I ask that you please try these things first

Description

LosslessCut icon is available at icon.svg, but LosslessCut-linux-x64.tar.bz2at releases does not include it.

It would be nice to have it inside the bz2 file, so users can easily make a *.desktop launcher with the icon

Thanks for the app

@mifi
Copy link
Owner

mifi commented Nov 28, 2024

how would users easily make a .desktop launcher with the icon? can't they just download it here from github?

@AnthillSudoku
Copy link
Author

They first have to find that the icon is in the repository and where it is. If a user download a program, why the icon is not included?
It's not a external plugin, it's the main icon, and LosslessCut is not a program that runs on terminal.

Do the windows or mac version not provides an icon with the program installer?

@mifi
Copy link
Owner

mifi commented Nov 28, 2024

The icon should already be included here:

"icon": "icon-build/app-512.png",

I don’t know how else to expose it.

@AnthillSudoku
Copy link
Author

That's the source code, not the releases.

I am speaking about LosslessCut-linux-arm64.tar.bz2 (as stated in the first message).

There is no icon in there

@mifi
Copy link
Owner

mifi commented Nov 28, 2024

Oh, could be a bug in electron builder then, or a misconfiguration. Is it the same with appimage/snap?

@AnthillSudoku
Copy link
Author

appimage

if I extract the appimage version:

./LosslessCut-linux-x86_64.AppImage --appimage-extract

in the main folder there is losslesscut.png, it's a link that point to

usr/share/icons/hicolor/0x0/apps/losslesscut.png

snap

sorry, I have never used snap, so I have no idea

@mifi
Copy link
Owner

mifi commented Nov 28, 2024

So it means that the configuration here is correct because the icon does get included in the appimage:

"icon": "icon-build/app-512.png",

unfortunately it's not clear to me how to include the icon for the tar.bz2 package, as I cannot find an electron-builder option for that. so i'm going to close this but feel free to suggest how or create a PR for it.

somewhat related: electron-userland/electron-builder#5294 and #2237

@mifi mifi closed this as not planned Won't fix, can't repro, duplicate, stale Nov 28, 2024
@AnthillSudoku
Copy link
Author

Could the icon's section at Electron Builder manual help you?

https://www.electron.build/icons

@mifi
Copy link
Owner

mifi commented Nov 28, 2024

as i've alreeady set icon to icon-build/app-512.png, for linux (see above) I don't know what else to do.
the icon is being auto generated at build time:

await svg2png(srcIcon, './icon-build/app-512.png', 512, 512);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants