From 4636a743dbf90cc96706f0b687afe40fbb41f3ce Mon Sep 17 00:00:00 2001 From: Paul Charlton Date: Mon, 1 Jul 2024 17:47:25 +0700 Subject: [PATCH] bug: use POSIX compliant techniques for cpio and rm These changes are compatible with basic macOS implementations of cpio and rm Signed-off-by: Paul Charlton --- build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 93530b6..69bba98 100755 --- a/build.sh +++ b/build.sh @@ -99,7 +99,7 @@ fi echo "Copying files..." cp -r "$SRC"/* "$PACKAGE/" -rm "$PACKAGE/asahi_firmware" +rm -rf "$PACKAGE/asahi_firmware" cp -r "$AFW" "$PACKAGE/" if [ -r "$LOGO" ]; then cp "$LOGO" "$PACKAGE/logo.icns" @@ -122,7 +122,7 @@ echo "Extracting Python framework..." mkdir -p "$PACKAGE/Frameworks/Python.framework" 7z x -so "$DL/$PYTHON_PKG" Python_Framework.pkg/Payload | zcat | \ - cpio -i -D "$PACKAGE/Frameworks/Python.framework" + (cd "$PACKAGE/Frameworks/Python.framework"; cpio -i) cd "$PACKAGE/Frameworks/Python.framework/Versions/Current"