You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: MagiskOnWSA/scripts/build.sh
+11-3Lines changed: 11 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -685,7 +685,7 @@ fi
685
685
# Install Houdini files only for x64 architecture using local files
686
686
if [ "$ARCH"="x64" ];then
687
687
echo"Installing Houdini files from local libhoudini folder (Many Thanks to SupremeGamers)"
688
-
HOUDINI_LOCAL_PATH="../libhoudini"
688
+
HOUDINI_LOCAL_PATH="$(realpath ../libhoudini)"
689
689
690
690
# Verify local Houdini files exist
691
691
if [ !-d"$HOUDINI_LOCAL_PATH" ];then
@@ -767,7 +767,11 @@ if [ "$ARCH" = "x64" ]; then
767
767
# Copy all ARM library files from libhoudini/lib64/arm64 to vendor/lib64/arm64
768
768
if [ -d"$HOUDINI_LOCAL_PATH/lib64/arm64" ];then
769
769
echo"Copying ARM libraries to vendor/lib64/arm64..."
770
-
sudo cp -r "$HOUDINI_LOCAL_PATH/lib64/arm64/"*"$VENDOR_MNT/lib64/arm64/"2>/dev/null ||echo"Warning: No files found in $HOUDINI_LOCAL_PATH/lib64/arm64 or copy failed"
770
+
if [ "$(ls -A "$HOUDINI_LOCAL_PATH/lib64/arm64"2>/dev/null)" ];then
771
+
sudo cp -r "$HOUDINI_LOCAL_PATH/lib64/arm64/"*"$VENDOR_MNT/lib64/arm64/"||echo"Warning: Copy failed for $HOUDINI_LOCAL_PATH/lib64/arm64"
772
+
else
773
+
echo"Warning: No files found in $HOUDINI_LOCAL_PATH/lib64/arm64"
774
+
fi
771
775
772
776
# Set permissions and ownership for all files in vendor/lib64/arm64
# Copy all files from libhoudini/lib/arm to vendor/lib/arm
783
787
if [ -d"$HOUDINI_LOCAL_PATH/lib/arm" ];then
784
788
echo"Copying ARM libraries from libhoudini/lib/arm to vendor/lib/arm..."
785
-
sudo cp -r "$HOUDINI_LOCAL_PATH/lib/arm/"*"$VENDOR_MNT/lib/arm/"2>/dev/null ||echo"Warning: No files found in $HOUDINI_LOCAL_PATH/lib/arm or copy failed"
789
+
if [ "$(ls -A "$HOUDINI_LOCAL_PATH/lib/arm"2>/dev/null)" ];then
790
+
sudo cp -r "$HOUDINI_LOCAL_PATH/lib/arm/"*"$VENDOR_MNT/lib/arm/"||echo"Warning: Copy failed for $HOUDINI_LOCAL_PATH/lib/arm"
791
+
else
792
+
echo"Warning: No files found in $HOUDINI_LOCAL_PATH/lib/arm"
793
+
fi
786
794
787
795
# Set permissions and ownership for all files in vendor/lib/arm
0 commit comments