Skip to content

Commit 2babb96

Browse files
committed
2.0 public beta5
1: fix the issue where system apps injected before beta4 could not be launched or re-injected. 2: fix the the issue that could cause system apps injected in beta4 to crash.
1 parent bf79380 commit 2babb96

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

Bootstrap.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@
593593
"$(PROJECT_DIR)",
594594
"$(PROJECT_DIR)/basebin/common/lib",
595595
);
596-
MARKETING_VERSION = "2.0-beta4";
596+
MARKETING_VERSION = "2.0-beta5";
597597
OTHER_LDFLAGS = "";
598598
PRODUCT_BUNDLE_IDENTIFIER = com.roothide.Bootstrap;
599599
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -639,7 +639,7 @@
639639
"$(PROJECT_DIR)",
640640
"$(PROJECT_DIR)/basebin/common/lib",
641641
);
642-
MARKETING_VERSION = "2.0-beta4";
642+
MARKETING_VERSION = "2.0-beta5";
643643
OTHER_LDFLAGS = "";
644644
PRODUCT_BUNDLE_IDENTIFIER = com.roothide.Bootstrap;
645645
PRODUCT_NAME = "$(TARGET_NAME)";

Bootstrap/AppViewController.m

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,15 @@ - (void)switchChanged:(id)sender {
336336
return;
337337
}
338338

339+
if(![NSFileManager.defaultManager fileExistsAtPath:app.bundleURL.path]) {
340+
NSString* msg = [NSString stringWithFormat:@"%@\n\n%@",
341+
Localized(@"App bundle does not exist, try Bootstrap->[settings]->[rebuild icon cache] to fix it."),
342+
app.bundleURL.path];
343+
[AppDelegate showMesage:msg title:Localized(@"Error")];
344+
[switchInCell setOn:!enabled];
345+
return;
346+
}
347+
339348
if([app.bundleURL.path hasPrefix:@"/Applications/"])
340349
{
341350
NSString* resignedBundlePath = [jbroot(@"/.sysroot") stringByAppendingPathComponent:app.bundleURL.path];

0 commit comments

Comments
 (0)