diff mac/dw.m @ 2122:7ba8c8ff548f

Mac: Files in the main bundle directory causes code signing to fail. Move the data directory to be in Contents/Resources on Mac.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 24 Jun 2020 02:27:28 +0000
parents 7ce8ecb79d4b
children 663467f6eee4
line wrap: on
line diff
--- a/mac/dw.m	Tue Jun 23 23:54:01 2020 +0000
+++ b/mac/dw.m	Wed Jun 24 02:27:28 2020 +0000
@@ -12147,7 +12147,10 @@
             size_t len = (size_t)(app - pathcopy);
 
             if(len > 0)
+            {
                 strncpy(_dw_bundle_path, pathcopy, len + 4);
+                strcat(_dw_bundle_path, "/Contents/Resources");
+            }
             *app = 0;
 
             getcwd(pathbuf, PATH_MAX);