download to /tmp

works_for_me
Volker Birk 3 years ago
parent 80f657a995
commit b02840c27c

@ -23,6 +23,8 @@
35F0698B247E31B100543884 /* libcryptopp.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 35F0698A247E31B100543884 /* libcryptopp.dylib */; };
35F0698E247E327600543884 /* libboost_regex.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 35F06988247E318F00543884 /* libboost_regex.dylib */; };
35F0698F247E329400543884 /* libcryptopp.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 35F0698A247E31B100543884 /* libcryptopp.dylib */; };
35F06991247F00E500543884 /* public.der in Resources */ = {isa = PBXBuildFile; fileRef = 35F06990247F00E500543884 /* public.der */; };
35F06993247F013300543884 /* public.der in Resources */ = {isa = PBXBuildFile; fileRef = 35F06990247F00E500543884 /* public.der */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
@ -69,6 +71,7 @@
35F0697B247DC95A00543884 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
35F06988247E318F00543884 /* libboost_regex.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libboost_regex.dylib; path = ../boost_1_72_0/stage/lib/libboost_regex.dylib; sourceTree = "<group>"; };
35F0698A247E31B100543884 /* libcryptopp.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libcryptopp.dylib; path = ../../../../opt/local/lib/libcryptopp.dylib; sourceTree = "<group>"; };
35F06990247F00E500543884 /* public.der */ = {isa = PBXFileReference; lastKnownFileType = file; path = public.der; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@ -110,6 +113,7 @@
35DC18C9244DA19100FB2002 = {
isa = PBXGroup;
children = (
35F06990247F00E500543884 /* public.der */,
35380AD4247BBB03004A08A6 /* downloadclient.xcodeproj */,
35DC18D4244DA19100FB2002 /* pEpMacOSAdapter */,
35F06978247DC95A00543884 /* pEpUpdater Test */,
@ -260,6 +264,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
35F06991247F00E500543884 /* public.der in Resources */,
35380AE7247BD13A004A08A6 /* README.md in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
@ -268,6 +273,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
35F06993247F013300543884 /* public.der in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@ -472,6 +478,7 @@
"$(inherited)",
"@executable_path/../Frameworks",
"@loader_path/../Frameworks",
"/Users/vb/dev/boost_1_72_0/stage/lib\n/Users/vb/dev/boost_1_72_0/stage/lib\n/Users/vb/dev/boost_1_72_0/stage/lib",
);
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
@ -492,6 +499,7 @@
"$(inherited)",
"@executable_path/../Frameworks",
"@loader_path/../Frameworks",
"/Users/vb/dev/boost_1_72_0/stage/lib\n/Users/vb/dev/boost_1_72_0/stage/lib\n/Users/vb/dev/boost_1_72_0/stage/lib",
);
LIBRARY_SEARCH_PATHS = (
"$(inherited)",

@ -30,7 +30,7 @@ static const double CYCLE = 7200.0; // 7200 seconds = 2 hours
{
// update all registered products
NSFileManager *localFileManager=[[NSFileManager alloc] init];
NSFileManager *localFileManager=[NSFileManager new];
NSDirectoryEnumerator *dirEnum = [localFileManager enumeratorAtPath:self.configPath];
NSString *configFile;
@ -70,7 +70,13 @@ static const double CYCLE = 7200.0; // 7200 seconds = 2 hours
keyfile += ".der";
try {
NSFileManager *localFileManager=[NSFileManager new];
NSString* cwd = localFileManager.currentDirectoryPath;
NSString* tmp = localFileManager.temporaryDirectory.path;
[localFileManager changeCurrentDirectoryPath:tmp];
pEp::UpdateClient::update(p, keyfile);
[localFileManager changeCurrentDirectoryPath:cwd];
}
catch (std::exception& e) {
NSLog(@"pEpMacOSAdapter: %s", e.what());

Binary file not shown.
Loading…
Cancel
Save