Skip to content

Commit

Permalink
bug: use POSIX compliant techniques for cpio and rm
Browse files Browse the repository at this point in the history
These changes are compatible with basic macOS implementations of cpio and rm

Signed-off-by: Paul Charlton <techguru@byiq.com>
  • Loading branch information
PaulCharlton committed Jul 4, 2024
1 parent 5f0814b commit 4636a74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit 4636a74

Please sign in to comment.