adsedare 0.0.4 → 0.0.6
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/lib/adsedare/export_options.rb +1 -1
- data/lib/adsedare/keychain.rb +14 -3
- data/lib/adsedare/version.rb +1 -1
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f6d62902a49a3f9ae322a91a6409eafe479b473251f1fbfa3ced67fbfbd3683
|
4
|
+
data.tar.gz: 2d8bf85017eea5e2f54d67b021f53c3546cd332bf3f08e0cba9366fa137a05af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e012d0c7ef9ccdb72467abdcaa1a7d0df15c9adfb1aabf7bad3630c29e6177a0743f27c206891e20e53a969610fa8174e92f445c302384874c7d57275e2e37b
|
7
|
+
data.tar.gz: 99c7b3a952de4ec42926655452a161c11fbae9b842fcdaa58a7c73943e6ed53d7948a5d5047134c20beac6a14224a99154bed7245c83c2f005765224e6e9ab98
|
@@ -21,7 +21,7 @@ module Adsedare
|
|
21
21
|
raise "Project path is not set" unless project_path
|
22
22
|
raise "Export path is not set" unless export_path
|
23
23
|
|
24
|
-
logger.info "Creating export options for project
|
24
|
+
logger.info "Creating export options for project"
|
25
25
|
|
26
26
|
project = Xcodeproj::Project.open(project_path)
|
27
27
|
export_options = {
|
data/lib/adsedare/keychain.rb
CHANGED
@@ -47,6 +47,12 @@ module Adsedare
|
|
47
47
|
return
|
48
48
|
end
|
49
49
|
|
50
|
+
status = system("security list-keychains -d user -s #{keychain_path}")
|
51
|
+
unless status
|
52
|
+
logger.error "Failed to add keychain to search list"
|
53
|
+
return
|
54
|
+
end
|
55
|
+
|
50
56
|
APPLE_CERTS.each do |cert|
|
51
57
|
logger.info "Downloading certificate '#{cert}'"
|
52
58
|
|
@@ -92,8 +98,8 @@ module Adsedare
|
|
92
98
|
return
|
93
99
|
end
|
94
100
|
|
95
|
-
install_certificate(ad_hoc_private_key, keychain_path, ad_hoc_key_password, "priv")
|
96
101
|
install_certificate(ad_hoc_certificate, keychain_path, "", "cert")
|
102
|
+
install_certificate(ad_hoc_private_key, keychain_path, ad_hoc_key_password, "priv")
|
97
103
|
|
98
104
|
if make_default
|
99
105
|
status = system("security default-keychain -d user -s #{keychain_path}")
|
@@ -122,8 +128,13 @@ module Adsedare
|
|
122
128
|
end
|
123
129
|
|
124
130
|
logger.info "Keychain created at '#{keychain_path}'"
|
125
|
-
end
|
126
131
|
|
132
|
+
status = system("security find-identity -p codesigning")
|
133
|
+
unless status
|
134
|
+
logger.error "Failed to find codesigning identity"
|
135
|
+
return
|
136
|
+
end
|
137
|
+
end
|
127
138
|
private
|
128
139
|
|
129
140
|
def install_certificate(certificate_path, keychain_path, certificate_password = "", certificate_type = "cert")
|
@@ -132,7 +143,7 @@ module Adsedare
|
|
132
143
|
|
133
144
|
status = system("security import #{certificate_path} -k #{keychain_path} -t #{certificate_type} -A -P #{certificate_password} -T /usr/bin/codesign -T /usr/bin/security -T /usr/bin/productbuild")
|
134
145
|
unless status
|
135
|
-
logger.
|
146
|
+
logger.warn "Failed to install certificate '#{certificate_name}' to keychain '#{keychain_path}'"
|
136
147
|
return
|
137
148
|
end
|
138
149
|
|
data/lib/adsedare/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adsedare
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- alexstrnik
|
8
|
+
autorequire:
|
8
9
|
bindir: exe
|
9
10
|
cert_chain: []
|
10
|
-
date: 2025-05-
|
11
|
+
date: 2025-05-05 00:00:00.000000000 Z
|
11
12
|
dependencies:
|
12
13
|
- !ruby/object:Gem::Dependency
|
13
14
|
name: rake
|
@@ -129,6 +130,7 @@ licenses:
|
|
129
130
|
metadata:
|
130
131
|
homepage_uri: https://github.com/AlexStrNik/AdSedare
|
131
132
|
source_code_uri: https://github.com/AlexStrNik/AdSedare
|
133
|
+
post_install_message:
|
132
134
|
rdoc_options: []
|
133
135
|
require_paths:
|
134
136
|
- lib
|
@@ -143,7 +145,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
143
145
|
- !ruby/object:Gem::Version
|
144
146
|
version: '0'
|
145
147
|
requirements: []
|
146
|
-
rubygems_version: 3.
|
148
|
+
rubygems_version: 3.0.3.1
|
149
|
+
signing_key:
|
147
150
|
specification_version: 4
|
148
151
|
summary: A cross-platform library for seamless, pain-free iOS ad-hoc distribution.
|
149
152
|
test_files: []
|