-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Labels
good first issueGood for newcomersGood for newcomerspriority: 3 lowAccepted but likely won't be worked onAccepted but likely won't be worked onscope: cliThe tauri-cli rust crate and @tauri-apps/cli npm packageThe tauri-cli rust crate and @tauri-apps/cli npm packagetype: feature request
Description
I have the use-case where I serve my front-end as a tauri app and also as a web-app with PWA support. Instead of maintaining two sets of icons, I would like to just generate one set that is used by everything. This is probably a pretty common use-case.
So it would be nice to have a way to define alternative icon formats, sizes and file-names, that are also generated by tauricon.
Currently, the files to be generated are defined here: https://github.com/tauri-apps/tauricon/blob/dev/src/helpers/tauricon.config.ts
Probably the easiest implementation would be to keep that same structure and provide it via the cli as a json file:
npx @tauri-apps/tauricon icons/logo.svg --target icons --extra icons/extra.jsonAnd then the icons/extra.json could be something like this:
[
{
"folder": "../frontend/src/assets/icons",
"prefix": "icon-",
"infix": true,
"suffix": ".png",
"sizes": [72, 96, 128, 144, 152, 192, 384, 512]
}
]What are your thoughts about that?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomerspriority: 3 lowAccepted but likely won't be worked onAccepted but likely won't be worked onscope: cliThe tauri-cli rust crate and @tauri-apps/cli npm packageThe tauri-cli rust crate and @tauri-apps/cli npm packagetype: feature request