Skip to content

Commit ce4ac59

Browse files
committed
Fix icon generation on Windows/macOS
1 parent d8c48a7 commit ce4ac59

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/build-tray.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@ jobs:
3939
sudo apt-get update
4040
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
4141
42+
- name: Install dependencies (Windows)
43+
if: matrix.platform == 'windows-latest'
44+
run: choco install rsvg-convert -y
45+
46+
- name: Install dependencies (macOS)
47+
if: matrix.platform == 'macos-latest'
48+
run: brew install librsvg
49+
4250
- name: Setup Rust
4351
uses: dtolnay/rust-toolchain@stable
4452
with:
@@ -60,16 +68,8 @@ jobs:
6068
6169
- name: Generate icons
6270
shell: bash
63-
run: |
64-
cd lgtv-tray-remote
65-
if command -v rsvg-convert &> /dev/null; then
66-
./generate-icons.sh
67-
elif command -v magick &> /dev/null; then
68-
magick -background none -resize 32x32 src-tauri/icons/icon.svg src-tauri/icons/32x32.png
69-
magick -background none -resize 128x128 src-tauri/icons/icon.svg src-tauri/icons/128x128.png
70-
magick -background none -resize 256x256 src-tauri/icons/icon.svg src-tauri/icons/128x128@2x.png
71-
magick -background none -resize 256x256 src-tauri/icons/icon.svg src-tauri/icons/icon.png
72-
fi
71+
working-directory: lgtv-tray-remote
72+
run: ./generate-icons.sh
7373

7474
- name: Install Tauri CLI
7575
run: cargo install tauri-cli

0 commit comments

Comments
 (0)