Mercurial > dwindows
comparison 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 |
comparison
equal
deleted
inserted
replaced
2121:7ce8ecb79d4b | 2122:7ba8c8ff548f |
---|---|
12145 { | 12145 { |
12146 char pathbuf[PATH_MAX+1] = { 0 }; | 12146 char pathbuf[PATH_MAX+1] = { 0 }; |
12147 size_t len = (size_t)(app - pathcopy); | 12147 size_t len = (size_t)(app - pathcopy); |
12148 | 12148 |
12149 if(len > 0) | 12149 if(len > 0) |
12150 { | |
12150 strncpy(_dw_bundle_path, pathcopy, len + 4); | 12151 strncpy(_dw_bundle_path, pathcopy, len + 4); |
12152 strcat(_dw_bundle_path, "/Contents/Resources"); | |
12153 } | |
12151 *app = 0; | 12154 *app = 0; |
12152 | 12155 |
12153 getcwd(pathbuf, PATH_MAX); | 12156 getcwd(pathbuf, PATH_MAX); |
12154 | 12157 |
12155 /* If run from a bundle the path seems to be / */ | 12158 /* If run from a bundle the path seems to be / */ |