A fast file manager for Windows and macOS that never freezes: tabs, dual panes, archives as folders, Quick Look-style previews. A File Explorer and Finder alternative written in Rust.
Rust archive-managerdesktop-appdual-paneexplorer-alternativefile-browserfile-explorerfile-managerfluent-designgpu-acceleratedgpuimacosmicaproductivityquick-lookrustrust-guitabswindowswindows-11windows-explorer
Fetch the icon crate when a clean Mac lacks it in build.sh
gelenmedya7167dbb4ca47
diff --git a/macos/build.sh b/macos/build.shindex 6bc28eb5..f3066629 100755--- a/macos/build.sh+++ b/macos/build.sh@@ -57,7 +57,16 @@ ficp "$ICNS" "$APP/Contents/Resources/AppIcon.icns"# The Lucide icons the interface draws (the set the Windows app uses, from gpui-kit-assets).-LUCIDE="$(ls -d "${CARGO_HOME:-$HOME/.cargo}"/registry/src/*/gpui-kit-assets-0.9.0/assets/icons | head -1)"+# That crate belongs to the Windows workspace, not rf-mac, so a Mac that never built the+# workspace lacks it: cargo fetches it then (issue 760).+lucide() { ls -d "${CARGO_HOME:-$HOME/.cargo}"/registry/src/*/gpui-kit-assets-0.9.0/assets/icons 2>/dev/null | head -1 || true; }+LUCIDE="$(lucide)"+if [ -z "$LUCIDE" ]; then+ echo "fetching gpui-kit-assets (the icons) with cargo..."+ cargo fetch --locked --manifest-path Cargo.toml --target "$(rustc -vV | sed -n 's/^host: //p')"+ LUCIDE="$(lucide)"+ [ -n "$LUCIDE" ] || { echo "gpui-kit-assets-0.9.0 is not in cargo's registry; run: cargo fetch" >&2; exit 1; }+fimkdir -p "$APP/Contents/Resources/icons"grep -v '^#' macos/icons.txt | while read -r name; do[ -n "$name" ] && cp "$LUCIDE/$name.svg" "$APP/Contents/Resources/icons/"