wtapack 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/wtapack/CodeSigner.h +1 -0
- data/ext/wtapack/CodeSigner.m +7 -1
- data/ext/wtapack/main.m +3 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 329103f00dd3f7890f5e0eaa96211176219a063f
|
4
|
+
data.tar.gz: 09d6beead84b9a57330ea164dbf22074c6a353a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 409e5dc0e40b54549ffc2238d29cc01fe176fc368591ee0f785d38c2d2ec5f7c6754c4851e704b44935162998cfb0e5d89c714d2be053b4a13f426cd406543ad
|
7
|
+
data.tar.gz: c6743f24d7b4d96e1cbc4144a94a012ee49aee53a30375e151880e0230b09e76a701e4990915c0a4bb34af36765c1813f992deb47cd72b6b19868834154b6c93
|
data/ext/wtapack/CodeSigner.h
CHANGED
data/ext/wtapack/CodeSigner.m
CHANGED
@@ -32,7 +32,7 @@ void validateSigningIdentity(NSString* identity);
|
|
32
32
|
if (!result)
|
33
33
|
{
|
34
34
|
NSString* signingIdentity = [self signingIdentity];
|
35
|
-
result = [NSString stringWithFormat:@"/usr/bin/codesign --force --
|
35
|
+
result = [NSString stringWithFormat:@"/usr/bin/codesign --force --sign %@ --resource-rules=\"%%@\" --entitlements \"%%@\" \"%%@\"", signingIdentity];
|
36
36
|
|
37
37
|
objc_setAssociatedObject(self, @selector(codesignFormatString), result, OBJC_ASSOCIATION_COPY_NONATOMIC);
|
38
38
|
}
|
@@ -94,6 +94,12 @@ void validateSigningIdentity(NSString* identity);
|
|
94
94
|
fprintf(stdout, "%s", codesignOuput.UTF8String);
|
95
95
|
}
|
96
96
|
}
|
97
|
+
|
98
|
+
+ (void)reset
|
99
|
+
{
|
100
|
+
objc_setAssociatedObject(self, @selector(codesignFormatString), nil, OBJC_ASSOCIATION_COPY_NONATOMIC);
|
101
|
+
objc_setAssociatedObject(self, @selector(signingIdentity), nil, OBJC_ASSOCIATION_COPY_NONATOMIC);
|
102
|
+
}
|
97
103
|
@end
|
98
104
|
|
99
105
|
// It turned out the Rakefile already does the below, so no point in doing it twice.
|
data/ext/wtapack/main.m
CHANGED
@@ -178,6 +178,7 @@ int main(int argc, const char* argv[]) {
|
|
178
178
|
|
179
179
|
// Code signing
|
180
180
|
[CodeSigner signBinary:extensionURL];
|
181
|
+
extensionProfileManager = nil;
|
181
182
|
});
|
182
183
|
|
183
184
|
// Code signing of frameworks. We don't care if this call fails, because many apps don't
|
@@ -219,6 +220,8 @@ int main(int argc, const char* argv[]) {
|
|
219
220
|
|
220
221
|
// Clean up after ourselves
|
221
222
|
[fm removeItemAtURL:tmpDirURL error:NULL];
|
223
|
+
mainProfileManager = nil;
|
224
|
+
[CodeSigner reset];
|
222
225
|
}
|
223
226
|
#ifndef WTA_STANDALONE
|
224
227
|
return rb_int2inum(0);
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wtapack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Thompson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake-compiler
|