Browse Source

macOS 10.8 compat

works_for_me
Volker Birk 2 years ago
parent
commit
fa28fa7bfe
3 changed files with 8 additions and 2 deletions
  1. +2
    -0
      README.md
  2. +4
    -0
      pEpMacOSAdapter.xcodeproj/project.pbxproj
  3. +2
    -2
      pEpMacOSAdapter/pEpUpdater.mm

+ 2
- 0
README.md View File

@ -11,6 +11,8 @@ This adapter will sport three main features:
PER_MACHINE_DIRECTORY="/Library/Application Support/pEp"
PER_USER_DIRECTORY=$HOME/.pEp
This software is supporting macOS 10.8 and later.
## Build
- set Header Search Paths and Library Search Paths to include and use Boost static libraries


+ 4
- 0
pEpMacOSAdapter.xcodeproj/project.pbxproj View File

@ -498,6 +498,7 @@
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
HEADER_SEARCH_PATHS = (
"$(inherited)",
/Users/vb/dev/boost_1_72_0,
/opt/local/include,
);
@ -507,6 +508,7 @@
/Users/vb/dev/boost_1_72_0/stage/lib,
/opt/local/lib,
);
MACOSX_DEPLOYMENT_TARGET = 10.8;
PRODUCT_BUNDLE_IDENTIFIER = pEp.foundation.pEpMacOSAdapter;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;
@ -523,6 +525,7 @@
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
HEADER_SEARCH_PATHS = (
"$(inherited)",
/Users/vb/dev/boost_1_72_0,
/opt/local/include,
);
@ -532,6 +535,7 @@
/Users/vb/dev/boost_1_72_0/stage/lib,
/opt/local/lib,
);
MACOSX_DEPLOYMENT_TARGET = 10.8;
PRODUCT_BUNDLE_IDENTIFIER = pEp.foundation.pEpMacOSAdapter;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;


+ 2
- 2
pEpMacOSAdapter/pEpUpdater.mm View File

@ -39,7 +39,7 @@ DownloadNotification _subscriber = nil;
- (void)updateAll:(NSTimer*)timer
{
// update all registered products
NSLog(@"pEpMacOSAdapter: update all registered products");
NSFileManager *localFileManager=[NSFileManager new];
NSDirectoryEnumerator *dirEnum = [localFileManager enumeratorAtPath:self.configPath];
@ -81,7 +81,7 @@ DownloadNotification _subscriber = nil;
try {
NSFileManager *localFileManager=[NSFileManager new];
NSString* cwd = localFileManager.currentDirectoryPath;
NSString* tmp = localFileManager.temporaryDirectory.path;
NSString* tmp = NSTemporaryDirectory();
[localFileManager changeCurrentDirectoryPath:tmp];
std::string _filename;


Loading…
Cancel
Save