Skip to content

Commit 83ce2b1

Browse files
author
chixiaoming
committed
Embed QLCARFiles QuickLook Plugin
1 parent 47b613d commit 83ce2b1

File tree

12 files changed

+276
-44
lines changed

12 files changed

+276
-44
lines changed

CARExtractor/CARExtractor.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168
);
169169
runOnlyForDeploymentPostprocessing = 0;
170170
shellPath = /bin/sh;
171-
shellScript = "mkdir -p \"${PROJECT_DIR}/../Products\";\ncp \"${TARGET_BUILD_DIR}/${TARGET_NAME}\" \"${PROJECT_DIR}/../Products/${TARGET_NAME}\"\n";
171+
shellScript = "mkdir -p \"${PROJECT_DIR}/../Products\";\nrm -f \"${PROJECT_DIR}/../Products/${TARGET_NAME}\";\ncp \"${TARGET_BUILD_DIR}/${TARGET_NAME}\" \"${PROJECT_DIR}/../Products/${TARGET_NAME}\"\n";
172172
};
173173
/* End PBXShellScriptBuildPhase section */
174174

CARExtractor/QLCARFiles

README_zh-Hans.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
### 下载地址:[百度网盘下载](http://pan.baidu.com/s/1i4T8seT)
66

77
## 系统要求
8-
* 软件最低支持OS X 10.8
9-
* 解压Assets.car文件需要OS X 10.10或以上版本的系统
8+
* OS X 10.14
109

1110

1211
## 使用说明

iOSImagesExtractor/iOSImagesExtractor.xcodeproj/project.pbxproj

Lines changed: 67 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10+
892829E22485EC1C009E0A31 /* QLCARFiles.qlgenerator in Resources */ = {isa = PBXBuildFile; fileRef = 892829E02485EC1C009E0A31 /* QLCARFiles.qlgenerator */; };
1011
8982EB4C2485060C00BCB558 /* CARExtractor in Resources */ = {isa = PBXBuildFile; fileRef = 8982EB4B2485060C00BCB558 /* CARExtractor */; };
12+
89A989562486368C009170D0 /* NSAlert+XM.m in Sources */ = {isa = PBXBuildFile; fileRef = 89A989552486368C009170D0 /* NSAlert+XM.m */; };
1113
C24D24F01B16047E00DDE534 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = C24D24EF1B16047E00DDE534 /* Images.xcassets */; };
1214
C24D25141B16051500DDE534 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = C24D25121B16051500DDE534 /* AppDelegate.m */; };
1315
C24D25151B16051500DDE534 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = C24D25131B16051500DDE534 /* main.m */; };
@@ -45,11 +47,36 @@
4547
remoteGlobalIDString = 8982EB232484F82200BCB558;
4648
remoteInfo = CARExtractor;
4749
};
50+
897AD2972485E812002D1D58 /* PBXContainerItemProxy */ = {
51+
isa = PBXContainerItemProxy;
52+
containerPortal = 897AD2922485E812002D1D58 /* QLCARFiles.xcodeproj */;
53+
proxyType = 2;
54+
remoteGlobalIDString = FA11D6741E7BF96900912157;
55+
remoteInfo = QLCARFiles;
56+
};
57+
897AD2992485E812002D1D58 /* PBXContainerItemProxy */ = {
58+
isa = PBXContainerItemProxy;
59+
containerPortal = 897AD2922485E812002D1D58 /* QLCARFiles.xcodeproj */;
60+
proxyType = 2;
61+
remoteGlobalIDString = 029425B6217D00FF00ED1FA5;
62+
remoteInfo = carDump;
63+
};
64+
897AD29B2485E84A002D1D58 /* PBXContainerItemProxy */ = {
65+
isa = PBXContainerItemProxy;
66+
containerPortal = 897AD2922485E812002D1D58 /* QLCARFiles.xcodeproj */;
67+
proxyType = 1;
68+
remoteGlobalIDString = FA11D6731E7BF96900912157;
69+
remoteInfo = QLCARFiles;
70+
};
4871
/* End PBXContainerItemProxy section */
4972

5073
/* Begin PBXFileReference section */
74+
892829E02485EC1C009E0A31 /* QLCARFiles.qlgenerator */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = QLCARFiles.qlgenerator; path = ../Products/QLCARFiles.qlgenerator; sourceTree = "<group>"; };
5175
89623989248508EE005E7EC9 /* CARExtractor.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = CARExtractor.xcodeproj; path = ../CARExtractor/CARExtractor.xcodeproj; sourceTree = "<group>"; };
76+
897AD2922485E812002D1D58 /* QLCARFiles.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = QLCARFiles.xcodeproj; path = ../CARExtractor/QLCARFiles/QLCARFiles.xcodeproj; sourceTree = "<group>"; };
5277
8982EB4B2485060C00BCB558 /* CARExtractor */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.executable"; name = CARExtractor; path = ../../Products/CARExtractor; sourceTree = "<group>"; };
78+
89A989542486368C009170D0 /* NSAlert+XM.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "NSAlert+XM.h"; sourceTree = "<group>"; };
79+
89A989552486368C009170D0 /* NSAlert+XM.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "NSAlert+XM.m"; sourceTree = "<group>"; };
5380
C24D24E51B16047E00DDE534 /* iOS Images Extractor.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "iOS Images Extractor.app"; sourceTree = BUILT_PRODUCTS_DIR; };
5481
C24D24E91B16047E00DDE534 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
5582
C24D24EF1B16047E00DDE534 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
@@ -108,9 +135,20 @@
108135
name = Products;
109136
sourceTree = "<group>";
110137
};
138+
897AD2932485E812002D1D58 /* Products */ = {
139+
isa = PBXGroup;
140+
children = (
141+
897AD2982485E812002D1D58 /* QLCARFiles.qlgenerator */,
142+
897AD29A2485E812002D1D58 /* carDump */,
143+
);
144+
name = Products;
145+
sourceTree = "<group>";
146+
};
111147
C24D24DC1B16047D00DDE534 = {
112148
isa = PBXGroup;
113149
children = (
150+
892829E02485EC1C009E0A31 /* QLCARFiles.qlgenerator */,
151+
897AD2922485E812002D1D58 /* QLCARFiles.xcodeproj */,
114152
89623989248508EE005E7EC9 /* CARExtractor.xcodeproj */,
115153
C24D24E71B16047E00DDE534 /* iOSImagesExtractor */,
116154
C24D24E61B16047E00DDE534 /* Products */,
@@ -235,6 +273,8 @@
235273
children = (
236274
C24D253C1B16058A00DDE534 /* XMDragView.h */,
237275
C24D253D1B16058A00DDE534 /* XMDragView.m */,
276+
89A989542486368C009170D0 /* NSAlert+XM.h */,
277+
89A989552486368C009170D0 /* NSAlert+XM.m */,
238278
);
239279
path = Views;
240280
sourceTree = "<group>";
@@ -295,6 +335,7 @@
295335
buildRules = (
296336
);
297337
dependencies = (
338+
897AD29C2485E84A002D1D58 /* PBXTargetDependency */,
298339
8962399024850902005E7EC9 /* PBXTargetDependency */,
299340
);
300341
name = iOSImagesExtractor;
@@ -333,6 +374,10 @@
333374
ProductGroup = 8962398A248508EE005E7EC9 /* Products */;
334375
ProjectRef = 89623989248508EE005E7EC9 /* CARExtractor.xcodeproj */;
335376
},
377+
{
378+
ProductGroup = 897AD2932485E812002D1D58 /* Products */;
379+
ProjectRef = 897AD2922485E812002D1D58 /* QLCARFiles.xcodeproj */;
380+
},
336381
);
337382
projectRoot = "";
338383
targets = (
@@ -349,13 +394,28 @@
349394
remoteRef = 8962398D248508EE005E7EC9 /* PBXContainerItemProxy */;
350395
sourceTree = BUILT_PRODUCTS_DIR;
351396
};
397+
897AD2982485E812002D1D58 /* QLCARFiles.qlgenerator */ = {
398+
isa = PBXReferenceProxy;
399+
fileType = wrapper.cfbundle;
400+
path = QLCARFiles.qlgenerator;
401+
remoteRef = 897AD2972485E812002D1D58 /* PBXContainerItemProxy */;
402+
sourceTree = BUILT_PRODUCTS_DIR;
403+
};
404+
897AD29A2485E812002D1D58 /* carDump */ = {
405+
isa = PBXReferenceProxy;
406+
fileType = "compiled.mach-o.executable";
407+
path = carDump;
408+
remoteRef = 897AD2992485E812002D1D58 /* PBXContainerItemProxy */;
409+
sourceTree = BUILT_PRODUCTS_DIR;
410+
};
352411
/* End PBXReferenceProxy section */
353412

354413
/* Begin PBXResourcesBuildPhase section */
355414
C24D24E31B16047D00DDE534 /* Resources */ = {
356415
isa = PBXResourcesBuildPhase;
357416
buildActionMask = 2147483647;
358417
files = (
418+
892829E22485EC1C009E0A31 /* QLCARFiles.qlgenerator in Resources */,
359419
C2CF8B821B17F7EC00AA92B1 /* MainMenu.xib in Resources */,
360420
C24D254B1B16110000DDE534 /* DCOAboutWindow.xib in Resources */,
361421
8982EB4C2485060C00BCB558 /* CARExtractor in Resources */,
@@ -380,7 +440,7 @@
380440
);
381441
runOnlyForDeploymentPostprocessing = 0;
382442
shellPath = /bin/sh;
383-
shellScript = "mkdir -p \"${PROJECT_DIR}/../Products\";\ncp -r \"${TARGET_BUILD_DIR}/${PRODUCT_NAME}.app\" \"${PROJECT_DIR}/../Products/${PRODUCT_NAME}.app\"\n";
443+
shellScript = "mkdir -p \"${PROJECT_DIR}/../Products\";\nrm -rf \"${PROJECT_DIR}/../Products/${PRODUCT_NAME}.app\";\ncp -r \"${TARGET_BUILD_DIR}/${PRODUCT_NAME}.app\" \"${PROJECT_DIR}/../Products/${PRODUCT_NAME}.app\"\n";
384444
};
385445
/* End PBXShellScriptBuildPhase section */
386446

@@ -393,6 +453,7 @@
393453
C24D25301B16053200DDE534 /* ZipArchive.m in Sources */,
394454
C24D252F1B16053200DDE534 /* zip.c in Sources */,
395455
C24D254D1B16110000DDE534 /* DCOTransparentScroller.m in Sources */,
456+
89A989562486368C009170D0 /* NSAlert+XM.m in Sources */,
396457
C24D25351B16054000DDE534 /* MainViewController.m in Sources */,
397458
C24D254E1B16110000DDE534 /* DCOTransparentScrollView.m in Sources */,
398459
C24D252E1B16053200DDE534 /* unzip.c in Sources */,
@@ -413,6 +474,11 @@
413474
name = CARExtractor;
414475
targetProxy = 8962398F24850902005E7EC9 /* PBXContainerItemProxy */;
415476
};
477+
897AD29C2485E84A002D1D58 /* PBXTargetDependency */ = {
478+
isa = PBXTargetDependency;
479+
name = QLCARFiles;
480+
targetProxy = 897AD29B2485E84A002D1D58 /* PBXContainerItemProxy */;
481+
};
416482
/* End PBXTargetDependency section */
417483

418484
/* Begin PBXVariantGroup section */

iOSImagesExtractor/iOSImagesExtractor/Classes/Main/App/AppDelegate.m

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ - (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
4848
NSArray *consV = [NSLayoutConstraint constraintsWithVisualFormat:@"V:|-0.0-[selfView]-0.0-|" options:0 metrics:nil views:views];
4949
[selfView.superview addConstraints:consV];
5050

51-
52-
51+
[self.mainVc checkForUpdates:NO];
5352
}
5453

5554
- (IBAction)showAboutWindow:(id)sender {
@@ -62,6 +61,10 @@ - (IBAction)showAboutWindow:(id)sender {
6261
[self.aboutWindowController showWindow:nil];
6362
}
6463

64+
- (void)application:(NSApplication *)sender openFiles:(NSArray<NSString *> *)filenames {
65+
NSLog(@"");
66+
}
67+
6568
- (void)applicationWillTerminate:(NSNotification *)aNotification {
6669
// Insert code here to tear down your application
6770
}

iOSImagesExtractor/iOSImagesExtractor/Classes/Main/Controllers/MainViewController.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,6 @@
1616

1717
@interface MainViewController : NSViewController
1818

19+
- (void)checkForUpdates:(BOOL)manualCheck;
20+
1921
@end

0 commit comments

Comments
 (0)