From 66a350eb534aa30bfb89860be6a5c5e00dd3a7ae Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Sat, 8 Aug 2026 17:14:54 -0400 Subject: [PATCH] test --- scripts/lipo | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/lipo b/scripts/lipo index eea1eea..b27b8f2 100755 --- a/scripts/lipo +++ b/scripts/lipo @@ -1,15 +1,15 @@ #!/bin/sh -# Workaround for NixOS/nixpkgs#405066: frameworks copied from the Nix store -# stay read-only, so lipo can't write its temporary output file when Flutter -# thins them during the build. Make the framework writable before delegating -# to the real lipo. + for arg in "$@"; do case "$arg" in - */*.framework/*) + *.framework/*) fw_dir="${arg%.framework/*}.framework" - chmod -R +w "$fw_dir" 2>/dev/null + chmod -R u+w "$fw_dir" 2>/dev/null + ;; + *.lipo) + chmod u+w "$(dirname "$arg")" 2>/dev/null ;; esac done -exec /usr/bin/lipo "$@" +exec /usr/bin/lipo "$@" \ No newline at end of file