motion-sparkle-sandbox 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/motion/project/project.rb +11 -3
- data/motion-sparkle-sandbox.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c72c1a939e68d9f00d0e7c6ebfd92a2888fc59d1d501320a462051852df7c31
|
4
|
+
data.tar.gz: 852d394ff99e98478aab7837089016a5b3b8aaa8e1becc8e8c78ad600eef4d6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83183707c96424775e8c654504aa145a14b105ef444e42f5e3f4a3978a227012da6e6ecfc026cefc1607775249fbe44a4361e082857382fc48ed59aa98184a1c
|
7
|
+
data.tar.gz: 1488d6f6193b0332f8bbdee270f963b946da7e7b0d34fc20d4ad2bbf747f58d1b304030c1808b34b28ea126468f45a57a94f5863028122adde73a92571afe1c4
|
@@ -29,7 +29,6 @@ module Motion::Project
|
|
29
29
|
end
|
30
30
|
|
31
31
|
class Builder
|
32
|
-
|
33
32
|
# if we're using the sandboxed version of Sparkle, then we need to copy the
|
34
33
|
# xpc services to the proper folder and sign them. This has to be done
|
35
34
|
# before we sign the app itself
|
@@ -37,9 +36,18 @@ module Motion::Project
|
|
37
36
|
def codesign_with_sparkle(config, platform)
|
38
37
|
if App.config.embedded_frameworks.any? {|item| item.to_s.include?('Sparkle.framework')}
|
39
38
|
bundle_path = App.config.app_bundle('MacOSX')
|
39
|
+
|
40
40
|
if File.directory?(App.config.sparkle.sparkle_xpc_path)
|
41
|
+
App.info 'Sparkle', 'Removing unnecessary executables...'
|
42
|
+
sparkle_path = File.join(bundle_path, "Frameworks/Sparkle.framework")
|
43
|
+
['Resources/Autoupdate', 'Resources/Updater.app'].each do |item|
|
44
|
+
bundle = File.join(sparkle_path, item)
|
45
|
+
FileUtils.rm_r(bundle) if File.exist?(bundle)
|
46
|
+
end
|
47
|
+
|
41
48
|
xpc_path = File.join(bundle_path, "XPCServices")
|
42
49
|
App.info 'Sparkle', "Copying XPCServices to #{xpc_path}"
|
50
|
+
|
43
51
|
FileUtils.mkdir_p(xpc_path)
|
44
52
|
`cp -R #{App.config.sparkle.sparkle_xpc_path}/*.xpc "#{xpc_path}"`
|
45
53
|
|
@@ -48,12 +56,12 @@ module Motion::Project
|
|
48
56
|
results = `#{App.config.sparkle.sparkle_vendor_path}/codesign_xpc "#{App.config.codesign_certificate}" "#{File.expand_path(path)}" 2>&1`
|
49
57
|
end
|
50
58
|
end
|
51
|
-
end
|
59
|
+
end
|
60
|
+
|
52
61
|
codesign_without_sparkle(config, platform)
|
53
62
|
end
|
54
63
|
|
55
64
|
alias_method "codesign_without_sparkle", "codesign"
|
56
65
|
alias_method "codesign", "codesign_with_sparkle"
|
57
66
|
end
|
58
|
-
|
59
67
|
end
|
@@ -8,7 +8,7 @@ $:.unshift File.expand_path('../lib', __FILE__)
|
|
8
8
|
|
9
9
|
Gem::Specification.new do |spec|
|
10
10
|
spec.name = 'motion-sparkle-sandbox'
|
11
|
-
spec.version = '0.
|
11
|
+
spec.version = '0.8.0'
|
12
12
|
spec.date = Date.today
|
13
13
|
spec.summary = 'Sparkle (sandboxed) integration for Rubymotion projects'
|
14
14
|
spec.description = "motion-sparkle-sandbox makes it easy to use the sandboxed version of Sparkle in your RubyMotion OS X apps"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: motion-sparkle-sandbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brett Walker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: motion-sparkle-sandbox makes it easy to use the sandboxed version of
|
14
14
|
Sparkle in your RubyMotion OS X apps
|