You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Generate new certificates](#generate-new-certificates)
27
-
-[Use your existing certificates](#use-your-existing-certificates)
28
-
-[Notes about the public certificate](#notes-about-the-public-certificate)
29
-
-[Notes about the private certificate](#notes-about-the-private-certificate)
30
-
-[Warning regarding your private certificate](#warning-regarding-your-private-certificate)
31
-
-[Run `rake sparkle:setup` at any moment to make sure your config is OK](#run-rake-sparklesetup-at-any-moment-to-make-sure-your-config-is-ok)
32
14
-[Adding "Check for updates..." to the menu](#adding-check-for-updates-to-the-menu)
33
15
-[First publication](#first-publication)
34
16
-[Releasing updates](#releasing-updates)
35
-
-[1. Bump the version](#1-bump-the-version)
36
-
-[2. Build your app for release](#2-build-your-app-for-release)
37
-
-[3. Update your Release Notes](#3-update-your-release-notes)
38
-
-[4. Package the release](#4-package-the-release)
39
-
-[5. Upload](#5-upload)
40
17
-[Help, Limitations, Troubleshooting and Testing](#help-limitations-troubleshooting-and-testing)
41
18
-[Contributing](#contributing)
42
19
-[Credits](#credits)
43
20
44
21
## Overview
45
22
46
-
[Sparkle](http://sparkle.andymatuschak.org/) powers the "Check for updates" feature of countless Mac applications.
23
+
[Sparkle](https://sparkle-project.org) powers the "Check for updates" feature of countless Mac applications.
47
24
48
25
In a nutshell, when users click "Check for updates..." in an app, Sparkle checks for available updates against an XML file that you post somewhere on the web. That XML file contains information about your new release, such as the version number, the URL of the package and its digital signature. If there's a newer version available than the one that is currently running, it'll ask for permission to retrieve the package and replace the current app with the new release.
49
26
@@ -53,27 +30,34 @@ After building your app for release and running `rake sparkle:package`, all you
53
30
54
31
## Compatibility
55
32
56
-
### Mac OS X 10.10 and above
33
+
### Mac OS X 10.11 and above
57
34
58
-
* Use the latest version of **motion-sparkle-sandbox**
59
-
*You will need RubyMotion version 2.38 or above for Yosemite compatibility
60
-
*Sparkle only supports Mac OS X 10.10 Yosemite and above
35
+
- Use the latest version of **motion-sparkle-sandbox**
36
+
-You will need RubyMotion version 5.0 or above
37
+
-Sparkle 2 now requires Mac OS X 10.11 El Capitan) or later
61
38
62
39
## Installation
63
40
64
41
In your project's Gemfile, add:
42
+
65
43
```ruby
66
44
# Gemfile
67
45
68
-
gem 'motion-sparkle'
46
+
gem 'motion-sparkle-sandbox'
69
47
```
48
+
70
49
and then run
71
50
72
-
$ bundle install
51
+
```bash
52
+
bundle install
53
+
```
54
+
55
+
`motion-sparkle-sandbox` uses the version of [Sparkle 2 on Cocoapods.org](https://cocoapods.org/pods/Sparkle). This gem no longer includes a copy of Sparkle.
73
56
74
57
## Settings configuration
75
58
76
-
Configure Sparkle in your `Rakefile` using `motion-sparkle-sandbox`'s DSL:
59
+
Configure Sparkle 2 in your `Rakefile` using `motion-sparkle-sandbox`'s DSL:
60
+
77
61
```ruby
78
62
# Rakefile
79
63
@@ -110,32 +94,36 @@ end
110
94
111
95
To complete the configuration, run
112
96
113
-
$ rake sparkle:setup
114
-
97
+
```plaintext
98
+
rake sparkle:setup
99
+
```
115
100
116
101
If everything is OK, you should be informed that it's time to generate or configure your certificates.
117
102
118
103
## Certificate configuration
119
104
120
-
For security, Sparkle allows you to sign your releases with a private certificate before distribution: when the user tries to install an update, Sparkle will check the package using the signature provided in the XML file and the public certificate contained in the running application.
105
+
For security, Sparkle 2 allows you to sign your releases with a private certificate before distribution: when the user tries to install an update, Sparkle 2 will check the package using the signature provided in the XML file and the public certificate contained in the running application.
121
106
122
-
motion-sparkle-sandbox makes it very easy to handle this. In fact, after the first setup, it becomes completely transparent to you as all is handled when you run `rake sparkle:package`.
107
+
_Currently, `motion-sparkle-sandbox` does not support configuring `EdDSA` signatures, only `DSA`._
123
108
124
-
You have two options: have Sparkle generate the certificates for you, or follow the instructions to use your existing ones.
109
+
`motion-sparkle-sandbox` makes it very easy to handle this. In fact, after the first setup, it becomes completely transparent to you as all is handled when you run `rake sparkle:package`.
125
110
126
-
### Generate new certificates
111
+
You have two options: have Sparkle 2 generate the certificates for you, or follow the instructions to use your existing ones.
127
112
128
-
$ rake sparkle:setup_certificates
113
+
### Generate new certificates
129
114
115
+
```bash
116
+
rake sparkle:setup_certificates
117
+
```
130
118
131
119
### Use your existing certificates
132
120
133
121
By default, your certificates need to be placed in the following directories:
@@ -150,8 +138,9 @@ The private certificate cannot be renamed nor placed elsewhere. If you have an e
150
138
Be careful when handling the private certificate: you should never lose it nor share it. If you do, you'd lose the ability to sign your packages and users wouldn't be able to update your app. If someone takes it, they could sign the packages in your name and have your users install who knows what.
151
139
152
140
Tips:
153
-
* add it go your `.gitignore` or equivalent
154
-
* make a backup of it
141
+
142
+
- add it go your `.gitignore` or equivalent
143
+
- make a backup of it
155
144
156
145
### Run `rake sparkle:setup` at any moment to make sure your config is OK
157
146
@@ -161,7 +150,7 @@ When all is good, move forward. If you need help, you can always open an issue o
161
150
162
151
Sparkle makes it incredibly easy to add a "Check for updates" feature to your app.
163
152
164
-
Sparkle's `SUUpdater` class has a shared updater instance that can serve as a `target` for Sparkle actions. To launch the typical Sparkle flow, call the `checkForUpdates:` action.
153
+
Sparkle's `SUUpdater` class has a shared updater instance that can serve as a `target` for Sparkle actions. To launch the typical Sparkle 2 flow, call the `checkForUpdates:` action.
165
154
166
155
So, to launch the "Check for updates" flow, you can call `SUUpdater.new.checkForUpdates`.
167
156
@@ -170,6 +159,7 @@ Here's an example based on the RubyMotion default OS X app example, "Hello". You
170
159
This will add the classic "Check for updates..." entry on the menu; when the user clicks it, the nice default of experience of Sparkle will begin.
171
160
172
161
In `menu.rb`, right below the line that adds the "Preferences" item:
162
+
173
163
```ruby
174
164
sparkle = addItemWithTitle("Check for updates...", action:nil, keyEquivalent:'')
175
165
sparkle.setTarget SUUpdater.new
@@ -186,11 +176,15 @@ Note that packaging with motion-sparkle-sandbox only works with the `:release` t
186
176
187
177
Run the setup command again to make sure it's all good:
188
178
189
-
$ rake sparkle:setup
179
+
```bash
180
+
rake sparkle:setup
181
+
```
190
182
191
183
If you're ready to go, run the `sparkle:package` task:
192
184
193
-
$ rake sparkle:package
185
+
```bash
186
+
rake sparkle:package
187
+
```
194
188
195
189
This should create 3 files inside the `sparkle/release/` folder: a ZIP file of your app, an XML file and an HTML file with the release notes.
196
190
@@ -214,7 +208,9 @@ To do so, follow the same steps every time:
214
208
215
209
### 2. Build your app for release
216
210
217
-
$ rake build:release
211
+
```bash
212
+
rake build:release
213
+
```
218
214
219
215
### 3. Update your Release Notes
220
216
@@ -226,7 +222,9 @@ You can either change these files inside the `sparkle/config/` folder, or simply
226
222
227
223
Run the `sparkle:package` task and you'll be one step away from distribution.
228
224
229
-
$ rake sparkle:package
225
+
```bash
226
+
rake sparkle:package
227
+
```
230
228
231
229
### 5. Upload
232
230
@@ -236,18 +234,20 @@ Sparkle for the win.
236
234
237
235
## Help, Limitations, Troubleshooting and Testing
238
236
239
-
If you need further help, please open an [Issue on Github](https://github.com/digitalmoksha/motion-sparkle-sandbox/issues/).
237
+
If you run into difficulties using Sparkle 2, make sure you review the [documentation](https://sparkle-project.org/documentation/) on [sparkle-project.org](https://sparkle-project.org). You can also search and open issues on https://github.com/sparkle-project/Sparkle/issues
238
+
239
+
If you run into difficulties with `motion-sparkle-sandbox`, please open an [Issue on Github](https://github.com/digitalmoksha/motion-sparkle-sandbox/issues/).
240
+
240
241
241
242
Limitations:
242
243
243
-
* Only tested with Ruby 1.9.3-p448
244
-
* Only works with ZIP files
245
-
* Only works with :release build target
246
-
* The Sparkle framework is horrendously copied multiple times
244
+
- Only tested with Ruby 2.7.2
245
+
- Only works with ZIP files
246
+
- Only works with :release build target
247
247
248
-
To further troubleshoot your case, you clone/fork the repo and go through the tests and the code.
248
+
To further troubleshoot your case, you can clone/fork the repo and go through the tests and the code.
249
249
250
-
To test, you can just run `$ bundle install` at the source of the repo to install the development dependencies and the run `$ rake` to execute the tests.
250
+
To test, you can just run `bundle install` at the source of the repo to install the development dependencies and then run `rake spec` to execute the tests.
251
251
252
252
Test coverage currently only extends to configuration and certificate generation checking.
253
253
@@ -257,8 +257,6 @@ Please do help with comments, issues and pull requests! The gem's repository is
257
257
258
258
## Credits
259
259
260
-
Contributors: [View all on Github](https://github.com/digitalmoksha/motion-sparkle-sandbox/graphs/contributors)
261
-
262
-
Originally created by [Alexandre L. Solleiro](http://github.com/webcracy), and forked from [webcracy/motion-sparkle](https://github.com/webcracy/motion-sparkle)
263
-
264
-
Huge thanks to [andymatuschak/Sparkle](https://github.com/andymatuschak/Sparkle) for creating and continuing to maintain Sparkle!
260
+
- Contributors: [View all on Github](https://github.com/digitalmoksha/motion-sparkle-sandbox/graphs/contributors)
261
+
- Originally created by [Alexandre L. Solleiro](http://github.com/webcracy), and forked from [webcracy/motion-sparkle](https://github.com/webcracy/motion-sparkle)
262
+
- Huge thanks to [Andy Matuschak](https://andymatuschak.org) for creating Sparkle and to the [group of developers](https://github.com/orgs/sparkle-project/people) that maintain Sparkle!
0 commit comments