Regenerate icons with new tauri cli

This commit is contained in:
Mark Sinclair
2022-06-13 16:47:14 +01:00
parent 3b08078206
commit cd93891410
14 changed files with 2 additions and 15 deletions
+2 -15
View File
@@ -1,24 +1,11 @@
# Regenerating icons
> **Note**: This is likely to be temporary until `tauri icon` is put back into the CLI.
The Tauri Docs say to use the CLI to generate icons: https://tauri.studio/docs/api/cli/#icon. However `1.0.0-rc.X` appears to not have this command. `1.0.0-beta.6` does 🎉!
Do the following to regenerate the icons:
```
cd ~
git clone nym ...
cd nym
docker run -v "$(pwd)":/workspace -it node:16 /bin/bash
npm i -g @tauri-apps/cli@1.0.0-beta.6
cd /workspace/nym-wallet/src-tauri
tauri icon /workspace/assets/appicon/appicon.png
exit
cd nym-wallet
npx @tauri-apps/tauricon ../assets/appicon/appicon.png
```
Reasons to use docker:
- you can't destroy your dev environments `npm` cache
- if you mess it up, kill the container, try again
- inside the `src-tauri` directory, `node` will resolve to the nearest `node_modules` directory and you'll get the wrong `tauri` cli
Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 279 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB