mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 08:12:28 +00:00
do not follow symlinks when compressing MacPass.app
This commit is contained in:
@@ -4,11 +4,11 @@ xcode_scheme: MacPass
|
|||||||
language: objective-c
|
language: objective-c
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- carthage bootstrap --platform Mac
|
- carthage bootstrap --platform macOS
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- cd ./build/Build/Products/Release
|
- cd ./build/Build/Products/Release
|
||||||
- zip -9r MacPass-continuous.zip MacPass.app
|
- zip -9ry MacPass-continuous.zip MacPass.app
|
||||||
- cd -
|
- cd -
|
||||||
- mv ./build/Build/Products/Release/MacPass-continuous.zip .
|
- mv ./build/Build/Products/Release/MacPass-continuous.zip .
|
||||||
|
|
||||||
|
|||||||
@@ -412,11 +412,10 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGrou
|
|||||||
[self saveDocument] is enqued so that dataOfType is called too late to actually save teh database.
|
[self saveDocument] is enqued so that dataOfType is called too late to actually save teh database.
|
||||||
hence we need to get the ok from the NSDocument about the save, otherwise the lock fails!
|
hence we need to get the ok from the NSDocument about the save, otherwise the lock fails!
|
||||||
*/
|
*/
|
||||||
if(self.lockedForFileChange) {
|
// only lock if we do not have user interaction that cannot be dismissed!
|
||||||
// we have user interaction that cannot be dismissed, instead ignore locking!
|
if(!self.lockedForFileChange) {
|
||||||
return;
|
|
||||||
}
|
|
||||||
[self saveDocumentWithDelegate:self didSaveSelector:@selector(_lockDatabaseForDocument:didSave:contextInfo:) contextInfo:NULL];
|
[self saveDocumentWithDelegate:self didSaveSelector:@selector(_lockDatabaseForDocument:didSave:contextInfo:) contextInfo:NULL];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)_lockDatabaseForDocument:(NSDocument *)document didSave:(BOOL)didSave contextInfo:(void *)contextInfo {
|
- (void)_lockDatabaseForDocument:(NSDocument *)document didSave:(BOOL)didSave contextInfo:(void *)contextInfo {
|
||||||
|
|||||||
Reference in New Issue
Block a user