diff options
| author | nippy <nippy@nippy-Mac-mini.lan> | 2026-08-29 15:37:04 +0200 |
|---|---|---|
| committer | nippy <nippy@nippy-Mac-mini.lan> | 2026-08-29 15:37:04 +0200 |
| commit | 5f5e4462249d628b5207b82a61800df2a504c1ae (patch) | |
| tree | c45190a430c763e0c2b1b1bfcefa59ca067ca945 /raveswitch | |
| parent | 2798c425d46182f05e6aea510123d5077c132e39 (diff) | |
| download | RaveOS-PKGBUILD-5f5e4462249d628b5207b82a61800df2a504c1ae.tar.gz RaveOS-PKGBUILD-5f5e4462249d628b5207b82a61800df2a504c1ae.zip | |
fix
Diffstat (limited to 'raveswitch')
| -rw-r--r-- | raveswitch/PKGBUILD | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/raveswitch/PKGBUILD b/raveswitch/PKGBUILD index 3a41487..d55bc51 100644 --- a/raveswitch/PKGBUILD +++ b/raveswitch/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: nippy <nippy@tuta.io> pkgname=raveswitch pkgver=0.4.1 -pkgrel=2 +pkgrel=3 pkgdesc="A modern GTK4-based window switcher and application launcher for Hyprland" arch=('x86_64' 'aarch64') conflicts=('hyprshell') @@ -20,11 +20,19 @@ prepare() { # dep-crates/hyprland-rs is vendored without a README.md, but its own # src/lib.rs does include_str!("../README.md") -- create a stub so the # build doesn't fail on a missing doc-comment source file. + mkdir -p dep-crates/hyprland-rs [ -f dep-crates/hyprland-rs/README.md ] || echo "# hyprland-rs (vendored)" > dep-crates/hyprland-rs/README.md # crates/config-edit-lib embeds assets/logo.png via include_bytes!, but - # the repo only ships assets/raveicon.png -- reuse it as the logo. - [ -f assets/logo.png ] || cp assets/raveicon.png assets/logo.png - cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" + # the repo only ships assets/raveicon.png -- reuse it or create fallback. + mkdir -p assets + if [ ! -f assets/logo.png ]; then + if [ -f assets/raveicon.png ]; then + cp assets/raveicon.png assets/logo.png + else + touch assets/logo.png + fi + fi + cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" || cargo fetch } build() { |