Add apple.py, fix some global initialization on iOS, and add some missing bundle-related files.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4524 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
Cory McWilliams 2023-10-16 13:57:40 +00:00
parent 11929e8c68
commit b3a1f17452
5 changed files with 1670 additions and 2 deletions

View File

@ -661,7 +661,9 @@ out/tildefriends-%.app/tildefriends: out/%/tildefriends out/tildefriends-%.app/I
iossimdebug-app: out/tildefriends-iossimdebug.app/tildefriends
iossimrelease-app: out/tildefriends-iossimrelease.app/tildefriends
.PHONY: iossimdebug-app iossimrelease-app
iosdebug-app: out/tildefriends-iosdebug.app/tildefriends
iosrelease-app: out/tildefriends-iosrelease.app/tildefriends
.PHONY: iossimdebug-app iossimrelease-app iosdebug-app iosrelease-app
iossimdebuggo: out/tildefriends-iossimdebug.app/tildefriends
xcrun simctl install booted out/tildefriends-iossimdebug.app/

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>application-identifier</key>
<string>EDVXQ27EB5.com.unprompted.tildefriends</string>
<key>com.apple.developer.team-identifier</key>
<string>EDVXQ27EB5</string>
<key>get-task-allow</key>
<true/>
</dict>
</plist>

View File

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>rules</key>
<dict>
<key>.*</key>
<true/>
<key>Info.plist</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>10</real>
</dict>
<key>ResourceRules.plist</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>100</real>
</dict>
</dict>
</dict>
</plist>

View File

@ -568,6 +568,7 @@ static int _tf_command_usage(const char* file, int argc, char* argv[])
}
return 0;
}
#endif
static void _backtrace_error(void* data, const char* message, int errnum)
{
@ -582,7 +583,7 @@ static void _error_handler(int sig)
_exit(1);
}
int main(int argc, char* argv[])
static void _startup(int argc, char* argv[])
{
bool tracking = false;
for (int i = 1; i < argc; i++)
@ -635,6 +636,12 @@ int main(int argc, char* argv[])
perror("signal");
}
}
}
#if !TARGET_OS_IPHONE
int main(int argc, char* argv[])
{
_startup(argc, argv);
int result = 0;
if (argc >= 2)
@ -662,6 +669,7 @@ done:
void tf_run_thread_start(const char* zip_path)
{
_startup(0, NULL);
uv_thread_t* thread = tf_malloc(sizeof(uv_thread_t));
tf_run_thread_data_t* data = tf_malloc(sizeof(tf_run_thread_data_t));
tf_run_args_t args =

1621
tools/apple.py Normal file

File diff suppressed because it is too large Load Diff