Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Commit

Permalink
v0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sohsatoh committed Apr 20, 2021
1 parent 9217a69 commit 08c5046
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 33 deletions.
8 changes: 0 additions & 8 deletions JBUCommandOutputViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,6 @@ - (void)setupView {
visualEffectView.frame = self.view.bounds;
[self.view addSubview:visualEffectView];

// UILabel *titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height / 6)];
// titleLabel.font = [UIFont fontWithName:@"HelveticaNeue-Bold" size:[UIFont labelFontSize]];
// titleLabel.textColor = [UIColor labelColor];
// titleLabel.textAlignment = NSTextAlignmentCenter;
// titleLabel.center = CGPointMake(self.view.frame.size.width / 2, self.view.frame.size.height / 2);
// titleLabel.text = @"Updating...";
// [self.view addSubview:titleLabel];

UILabel *titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 10, self.view.frame.size.width, self.view.frame.size.height / 6)];
titleLabel.font = [UIFont fontWithName:@"HelveticaNeue-Bold" size:[UIFont labelFontSize] * 1.5];
titleLabel.textColor = [UIColor labelColor];
Expand Down
2 changes: 1 addition & 1 deletion control
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: jp.soh.jailbreakupdatechecker
Name: JailbreakUpdateChecker
Version: 0.0.1
Version: 0.0.2
Architecture: iphoneos-arm
Description: Check for jailbreak updates
Maintainer: Soh Satoh
Expand Down
25 changes: 1 addition & 24 deletions runjbupdate/main.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,31 +20,8 @@ int main(int argc, char *argv[], char *envp[]) {
"DYLD_INSERT_LIBRARIES=/Library/MobileSubstrate/DynamicLibraries/JailbreakUpdateChecker.dylib",
NULL,
};
posix_spawn(&pid, "/usr/sbin/jbupdate", NULL, NULL, NULL, envp);

// No output can be retrieved by code below
// I'm not enthusiastic enough about this tweak to struggle with how to fix it.

// setvbuf(stdout, NULL, _IONBF, 0);

// char *cmd = "/usr/sbin/jbupdate 2>&1";

// char buf[BUFSIZE];
// FILE *fp;

// if ((fp = popen(cmd, "r")) == NULL) {
// NSLog(@"JailbreakUpdateChecker - Error opening pipe!\n");
// return -1;
// }

// while (fgets(buf, BUFSIZE, fp) != NULL) {
// NSLog(@"JailbreakUpdateChecker - %s", buf);
// }

// if (pclose(fp)) {
// NSLog(@"JailbreakUpdateChecker - Command not found or exited with error status\n");
// return -1;
// }
posix_spawn(&pid, "/usr/sbin/jbupdate", NULL, NULL, NULL, envp);

return 0;
}
Expand Down

0 comments on commit 08c5046

Please sign in to comment.