gonative-cli 2.1.0 → 2.1.2
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/Gemfile.lock +2 -3
- data/lib/gonative/plugins/ios/release.rb +26 -2
- data/lib/gonative/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 073e0214b6ad0ada956f93e770130ee06608c61793a59c54a11c5722b5ca71be
|
|
4
|
+
data.tar.gz: 6c38a76729e16b26c75d27313bf447914e1ddc4e0f026c447d85b1baa2e1e501
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2815121dab597534abcd5ea731307debd50191f14e331a5a24125453e590d6c9dbd933e3eb5699b0be3ba1eabf173de7d020fe606c2f6a53a81bc66ecf4b8e85
|
|
7
|
+
data.tar.gz: f6abe9f73f0d6cbe32c21f0788e9b6efe7625f97c77f39a29ac1fd3d7619103666d20d1e6339a74e16bb7aac0249d8dc44f7747f88d4f39cfb7792f26896327f
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
gonative-cli (2.
|
|
4
|
+
gonative-cli (2.1.2)
|
|
5
5
|
activesupport (~> 6.0)
|
|
6
6
|
aws-sdk-s3 (~> 1)
|
|
7
7
|
cocoapods (~> 1.10)
|
|
@@ -38,7 +38,7 @@ GEM
|
|
|
38
38
|
bigdecimal
|
|
39
39
|
jmespath (~> 1, >= 1.6.1)
|
|
40
40
|
logger
|
|
41
|
-
aws-sdk-kms (1.
|
|
41
|
+
aws-sdk-kms (1.124.0)
|
|
42
42
|
aws-sdk-core (~> 3, >= 3.244.0)
|
|
43
43
|
aws-sigv4 (~> 1.5)
|
|
44
44
|
aws-sdk-s3 (1.220.0)
|
|
@@ -100,7 +100,6 @@ GEM
|
|
|
100
100
|
ffi (>= 1.15.0)
|
|
101
101
|
logger
|
|
102
102
|
ffi (1.17.4-arm64-darwin)
|
|
103
|
-
ffi (1.17.4-x86_64-darwin)
|
|
104
103
|
fourflusher (2.3.1)
|
|
105
104
|
fuzzy_match (2.0.4)
|
|
106
105
|
gh_inspector (1.1.3)
|
|
@@ -71,6 +71,16 @@ module GoNative
|
|
|
71
71
|
Utils::UI.info "Signing frameworks with identity: #{identity}"
|
|
72
72
|
|
|
73
73
|
Dir.glob(File.join(frameworks_dir, '*.xcframework')).each do |xcframework_path|
|
|
74
|
+
name = File.basename(xcframework_path, '.xcframework')
|
|
75
|
+
|
|
76
|
+
unless name.end_with?('Plugin')
|
|
77
|
+
Utils::UI.info "Skipping #{File.basename(xcframework_path)} (dependency)"
|
|
78
|
+
# Strip any stale signature: Xcode hard-fails on an invalid seal,
|
|
79
|
+
# but accepts unsigned binary targets.
|
|
80
|
+
system "codesign --remove-signature #{Shellwords.escape(xcframework_path)} 2>/dev/null"
|
|
81
|
+
next
|
|
82
|
+
end
|
|
83
|
+
|
|
74
84
|
Dir.glob(File.join(xcframework_path, '**', '*.framework')).each do |framework_path|
|
|
75
85
|
Utils::UI.info "Signing #{File.basename(framework_path)}"
|
|
76
86
|
sign_command = [
|
|
@@ -84,6 +94,18 @@ module GoNative
|
|
|
84
94
|
system(sign_command) or
|
|
85
95
|
raise Error, "Failed to sign #{framework_path}"
|
|
86
96
|
end
|
|
97
|
+
|
|
98
|
+
Utils::UI.info "Signing #{File.basename(xcframework_path)}"
|
|
99
|
+
sign_xcframework_command = [
|
|
100
|
+
'codesign',
|
|
101
|
+
'--sign', Shellwords.escape(identity),
|
|
102
|
+
'--timestamp',
|
|
103
|
+
'--force',
|
|
104
|
+
Shellwords.escape(xcframework_path)
|
|
105
|
+
].join(' ')
|
|
106
|
+
|
|
107
|
+
system(sign_xcframework_command) or
|
|
108
|
+
raise Error, "Failed to sign #{xcframework_path}"
|
|
87
109
|
end
|
|
88
110
|
end
|
|
89
111
|
|
|
@@ -137,9 +159,11 @@ module GoNative
|
|
|
137
159
|
|
|
138
160
|
FileUtils.rm_f(temp_zip)
|
|
139
161
|
|
|
140
|
-
# Create zip from Frameworks/ directory
|
|
162
|
+
# Create zip from Frameworks/ directory.
|
|
163
|
+
# -y stores symlinks as symlinks: macOS/Catalyst framework slices use
|
|
164
|
+
# Versions/A symlink layouts, and materializing them breaks codesign seals.
|
|
141
165
|
FileUtils.cd(frameworks_dir) do
|
|
142
|
-
system "zip -
|
|
166
|
+
system "zip -Xqry #{Shellwords.escape(temp_zip)} #{Shellwords.escape("#{name}.xcframework")}" or
|
|
143
167
|
raise Error, "Failed to zip #{name}.xcframework"
|
|
144
168
|
end
|
|
145
169
|
|
data/lib/gonative/version.rb
CHANGED