motion-sparkle-sandbox 2.1.1 → 2.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a0f75f74b4b43e5f1527ba492fc237f2916f7d1a9fa31683dab77ba78abf6a1
|
4
|
+
data.tar.gz: '083d7da3e3fcd29313b9a9f3c2afc3dcf018762e721c6735221df7725658ac5a'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2532ad42784631b01067be9f5ea810da0dd91274ad0ffa76b3225da21aa492eead2949bc42b04fc6c3823cc74a2028931a48d6ce618e8955749886b18b2148ba
|
7
|
+
data.tar.gz: e35c4e0d8a592557a7a9bb1286a5392569a114baee0a457acf03f73e0dd98481dc2ddd9dfd47fb9a83cfdce95bd91a5b72ecc9f1c6f39f8b81612032201cb9af
|
@@ -19,7 +19,7 @@ module Motion
|
|
19
19
|
|
20
20
|
CLI_OPTIONS = {
|
21
21
|
account: '--account',
|
22
|
-
|
22
|
+
private_ed_key_file: '--ed-key-file',
|
23
23
|
download_url_prefix: '--download-url-prefix',
|
24
24
|
release_notes_url_prefix: '--release-notes-url-prefix',
|
25
25
|
full_release_notes_url: '--full-release-notes-url',
|
@@ -93,7 +93,7 @@ module Motion
|
|
93
93
|
args = []
|
94
94
|
|
95
95
|
account(args)
|
96
|
-
|
96
|
+
private_ed_key_file(args)
|
97
97
|
download_url_prefix(args)
|
98
98
|
release_notes_url_prefix(args)
|
99
99
|
full_release_notes_url(args)
|
@@ -127,12 +127,11 @@ module Motion
|
|
127
127
|
# -s <private-EdDSA-key> The private EdDSA string (128 characters). If not
|
128
128
|
# specified, the private EdDSA key will be read from
|
129
129
|
# the Keychain instead.
|
130
|
-
def
|
131
|
-
if cli_options[:
|
132
|
-
args << "-
|
133
|
-
elsif use_exported_private_key && File.exist?(private_key_path)
|
134
|
-
|
135
|
-
args << "-s=#{private_key}"
|
130
|
+
def private_ed_key_file(args)
|
131
|
+
if cli_options[:private_ed_key_file].present?
|
132
|
+
args << "--ed-key-file=#{cli_options[:private_ed_key_file]}"
|
133
|
+
elsif use_exported_private_key && File.exist?(@sparkle.private_key_path)
|
134
|
+
args << "--ed-key-file=#{@sparkle.private_key_path}"
|
136
135
|
end
|
137
136
|
end
|
138
137
|
|
@@ -40,10 +40,18 @@ module Motion
|
|
40
40
|
bundle_path = App.config.app_bundle('MacOSX')
|
41
41
|
sparkle_path = File.join(bundle_path, 'Frameworks', 'Sparkle.framework')
|
42
42
|
|
43
|
+
# strip out any header files, as they are not needed for a built product, and Xcode
|
44
|
+
# typically does this. Their permissions are set such that it conflicts
|
45
|
+
# with building the deltas. See https://github.com/sparkle-project/Sparkle/issues/1972
|
46
|
+
`rm -fr "#{sparkle_path}/Versions/B/PrivateHeaders"`
|
47
|
+
`rm "#{sparkle_path}/PrivateHeaders"`
|
48
|
+
`rm -fr "#{sparkle_path}/Versions/B/Headers"`
|
49
|
+
`rm "#{sparkle_path}/Headers"`
|
50
|
+
|
43
51
|
`/usr/bin/codesign -f -s "#{config.codesign_certificate}" -o runtime "#{sparkle_path}/Versions/B/Autoupdate"`
|
44
52
|
`/usr/bin/codesign -f -s "#{config.codesign_certificate}" -o runtime "#{sparkle_path}/Versions/B/Updater.app"`
|
45
|
-
`/usr/bin/codesign -f -s "#{config.codesign_certificate}" -o runtime "#{sparkle_path}/Versions/B/XPCServices/
|
46
|
-
`/usr/bin/codesign -f -s "#{config.codesign_certificate}" -o runtime --entitlements "./vendor/Pods/Sparkle/Entitlements/
|
53
|
+
`/usr/bin/codesign -f -s "#{config.codesign_certificate}" -o runtime "#{sparkle_path}/Versions/B/XPCServices/Installer.xpc"`
|
54
|
+
`/usr/bin/codesign -f -s "#{config.codesign_certificate}" -o runtime --entitlements "./vendor/Pods/Sparkle/Entitlements/Downloader.entitlements" "#{sparkle_path}/Versions/B/XPCServices/Downloader.xpc"` # rubocop:disable Layout/LineLength
|
47
55
|
|
48
56
|
`/usr/bin/codesign -f -s "#{config.codesign_certificate}" -o runtime "#{sparkle_path}"`
|
49
57
|
end
|
@@ -210,12 +210,12 @@ module Motion
|
|
210
210
|
# copy the release notes and zip archive into the releases_folder,
|
211
211
|
# where the appcast will get built
|
212
212
|
def copy_to_release
|
213
|
-
|
214
|
-
zip_file_path = (sparkle_release_path + zip_file)
|
213
|
+
destination_path = (project_path + releases_folder).realpath
|
214
|
+
zip_file_path = (sparkle_release_path + zip_file)
|
215
215
|
|
216
216
|
[release_notes_path, zip_file_path].each do |file|
|
217
|
-
FileUtils.cp(file, "#{
|
218
|
-
App.info 'Copied', "
|
217
|
+
FileUtils.cp(file, "#{destination_path}/")
|
218
|
+
App.info 'Copied', "#{destination_path}/#{file}"
|
219
219
|
end
|
220
220
|
end
|
221
221
|
|
data/spec/appcast_spec.rb
CHANGED
@@ -11,13 +11,13 @@ describe 'Appcast' do
|
|
11
11
|
it 'defaults to empty' do
|
12
12
|
args = @appcast.prepare_args
|
13
13
|
|
14
|
-
expect(args).to eq []
|
14
|
+
expect(args).to eq ['--account=ed25519']
|
15
15
|
end
|
16
16
|
|
17
17
|
it 'sets all command line options' do
|
18
18
|
expected_results = [
|
19
19
|
'--account=test1',
|
20
|
-
'-
|
20
|
+
'--ed-key-file=test2',
|
21
21
|
'--download-url-prefix=test3',
|
22
22
|
'--release-notes-url-prefix=test4',
|
23
23
|
'--full-release-notes-url=test5',
|
@@ -36,7 +36,7 @@ describe 'Appcast' do
|
|
36
36
|
]
|
37
37
|
|
38
38
|
@appcast.process_option(:account, 'test1')
|
39
|
-
@appcast.process_option(:
|
39
|
+
@appcast.process_option(:private_ed_key_file, 'test2')
|
40
40
|
@appcast.process_option(:download_url_prefix, 'test3')
|
41
41
|
@appcast.process_option(:release_notes_url_prefix, 'test4')
|
42
42
|
@appcast.process_option(:full_release_notes_url, 'test5')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: motion-sparkle-sandbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: '2.2'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brett Walker
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-
|
12
|
+
date: 2022-07-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: motion-cocoapods
|