Skip to content

Commit

Permalink
#1287 remove support for older macOS versions
Browse files Browse the repository at this point in the history
  • Loading branch information
koekeishiya committed Sep 21, 2022
1 parent fe1e4dd commit 5bdfc62
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/sa.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@
static char osax_payload_dir[MAXLEN];
static char osax_payload_contents_dir[MAXLEN];
static char osax_payload_contents_macos_dir[MAXLEN];
static char osax_info_plist[MAXLEN];
static char osax_sdefn_file[MAXLEN];
static char osax_payload_plist[MAXLEN];
static char osax_bin_loader[MAXLEN];
static char osax_bin_payload[MAXLEN];
static char osax_bin_mach_loader[MAXLEN];

Expand Down Expand Up @@ -61,11 +58,7 @@ static void scripting_addition_set_path(void)
snprintf(osax_payload_contents_dir, sizeof(osax_payload_contents_dir), "%s/%s", osax_payload_dir, "Contents");
snprintf(osax_payload_contents_macos_dir, sizeof(osax_payload_contents_macos_dir), "%s/%s", osax_payload_contents_dir, "MacOS");

snprintf(osax_info_plist, sizeof(osax_info_plist), "%s/%s", osax_contents_dir, "Info.plist");
snprintf(osax_sdefn_file, sizeof(osax_sdefn_file), "%s/%s", osax_contents_res_dir, "yabai.sdef");

snprintf(osax_payload_plist, sizeof(osax_payload_plist), "%s/%s", osax_payload_contents_dir, "Info.plist");
snprintf(osax_bin_loader, sizeof(osax_bin_loader), "%s/%s", osax_contents_macos_dir, "loader");
snprintf(osax_bin_mach_loader, sizeof(osax_bin_mach_loader), "%s/%s", osax_contents_macos_dir, "mach_loader");
snprintf(osax_bin_payload, sizeof(osax_bin_payload), "%s/%s", osax_payload_contents_macos_dir, "payload");
}
Expand Down Expand Up @@ -100,12 +93,6 @@ static void scripting_addition_prepare_binaries(void)
{
char cmd[MAXLEN];

snprintf(cmd, sizeof(cmd), "%s %s", "chmod +x", osax_bin_loader);
system(cmd);

snprintf(cmd, sizeof(cmd), "%s %s %s", "codesign -f -s -", osax_bin_loader, "2>/dev/null");
system(cmd);

snprintf(cmd, sizeof(cmd), "%s %s", "chmod +x", osax_bin_mach_loader);
system(cmd);

Expand Down

0 comments on commit 5bdfc62

Please sign in to comment.