]> git.xonotic.org Git - xonotic/xonotic.git/commitdiff
Fix macOS SDL2 framework permissions master
authorbones_was_here <bones_was_here@xonotic.au>
Fri, 22 Mar 2024 03:26:31 +0000 (13:26 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Fri, 22 Mar 2024 03:26:31 +0000 (13:26 +1000)
misc/tools/all/release.subr

index 55b1b409770f7e4d345944c7ab16de9d24c51b7a..54f7c8c5530d5f2760750a499641175b8080f25a 100644 (file)
@@ -345,6 +345,10 @@ case "$cmd" in
                        # YET SDL2/ WAS ADDED TO ALL THE INCLUDES, WHY?!?
                        # OLD VERSIONS WITHOUT IT WORKED
                        verbose sed -i "s/#include <SDL2\//#include </g" SDL2/SDL2.framework/Versions/Current/Headers/*.h
                        # YET SDL2/ WAS ADDED TO ALL THE INCLUDES, WHY?!?
                        # OLD VERSIONS WITHOUT IT WORKED
                        verbose sed -i "s/#include <SDL2\//#include </g" SDL2/SDL2.framework/Versions/Current/Headers/*.h
+                       # The dirs are extracted with 700 permissions which breaks the rsync updater
+                       find SDL2 -type d -exec chmod 755 {} \;
+                       # macOS prefers dylibs be marked executable (this one has no file extension)
+                       verbose chmod 755 SDL2/SDL2.framework/Versions/Current/SDL2
                )
                cp -R "$d0/misc/builddeps/osx/SDL2/SDL2.framework" Xonotic/Xonotic.app/Contents/Frameworks/
                ;;
                )
                cp -R "$d0/misc/builddeps/osx/SDL2/SDL2.framework" Xonotic/Xonotic.app/Contents/Frameworks/
                ;;