glitter 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -10
- data/lib/glitter/cli.rb +6 -4
- data/lib/glitter/release.rb +5 -1
- data/lib/glitter/templates/appcast.xml.erb +1 -1
- data/lib/glitter/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 933224f234e6c794b126b62e609a7fc997cca493
|
4
|
+
data.tar.gz: 473fa43aee7d10e862be6e22a143cd704419c26a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c81aa3d6de7b3bde56b491a3b05161c2be49711ab63193b391599d2346278552d2e0f415f7c479af325e8e5b77103e5fd5b43eda513a5b897ea52761b6f56d5c
|
7
|
+
data.tar.gz: 581c3f5f89da167e88fb526045fc7a49135879063f7f8d04bc7f1f75c490218347e18639a64b2959d0a51b89c73d808b72849fe5d80628bf847c09849fbad222
|
data/README.md
CHANGED
@@ -42,16 +42,17 @@ Glitter also supports the concepts of release channels, which makes it possible
|
|
42
42
|
|
43
43
|
More complex installers may need to push more than one asset up to the web. For example, a .NET application will have a setup.exe installer that runs either a 64-bit or 32-bit MSI installer. To that, provide multiple paths to the CLI. *The first asset will be interpolated into the appcast.xml file*, so make sure its your setup file. Everything else will simply tag along for the ride.
|
44
44
|
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
45
|
+
```sh
|
46
|
+
$ AWS_ACCESS_KEY_ID=secret_access_key \
|
47
|
+
AWS_SECRET_ACCESS_KEY=access_key_id \
|
48
|
+
AWS_BUCKET_NAME=my-app-bucket \
|
49
|
+
glitter push my-app.exe my-app-64-bit.msi my-app-32-bit.msi -v 1.2.5 -c "win-edge" \
|
50
|
+
-n 'Added some really cool stuff to the mix!'
|
51
|
+
|
52
|
+
Pushing app my-app.dmg to https://s3.amazonaws.com/win-edge/1.2.5/my-app.dmg
|
53
|
+
Updated head https://s3.amazonaws.com/win-edge/my-app.exe to https://s3.amazonaws.com/win-edge/1.2.5/my-app.exe
|
54
|
+
# ...
|
55
|
+
```
|
55
56
|
|
56
57
|
Remember, you'll only want one main installation or package file per channel. If you need multiple installers or packages, consider setting up different channels.
|
57
58
|
|
data/lib/glitter/cli.rb
CHANGED
@@ -4,12 +4,14 @@ module Glitter
|
|
4
4
|
# Command line interface for cutting glitter builds
|
5
5
|
class CLI < Thor
|
6
6
|
desc "push", "pushes a build to a channel with release notes."
|
7
|
-
method_option :version,
|
8
|
-
method_option :channel,
|
9
|
-
method_option :notes,
|
10
|
-
method_option :force,
|
7
|
+
method_option :version, :type => :string, :aliases => "-v", :required => true
|
8
|
+
method_option :channel, :type => :string, :aliases => "-c", :required => true
|
9
|
+
method_option :notes, :type => :string, :aliases => "-n"
|
10
|
+
method_option :force, :type => :boolean, :aliases => "-f"
|
11
|
+
method_option :bundle_version, :type => :string, :aliases => "-b"
|
11
12
|
def push(executable_path, *asset_paths)
|
12
13
|
release = Release::Sparkle.new(channel, options.version)
|
14
|
+
release.bundle_version = options.bundle_version
|
13
15
|
release.notes = options.notes
|
14
16
|
release.executable = File.open executable_path
|
15
17
|
# For more complex releases, additional assets may need to go out with the build.
|
data/lib/glitter/release.rb
CHANGED
@@ -70,7 +70,7 @@ module Glitter
|
|
70
70
|
# lives inside of a channel.
|
71
71
|
class Sparkle < Base
|
72
72
|
attr_accessor :notes, :executable, :filename
|
73
|
-
attr_writer :published_at
|
73
|
+
attr_writer :published_at, :bundle_version
|
74
74
|
|
75
75
|
# Yeah, lets publish this shiz NOW.
|
76
76
|
def published_at
|
@@ -85,6 +85,10 @@ module Glitter
|
|
85
85
|
super(*args)
|
86
86
|
end
|
87
87
|
|
88
|
+
def bundle_version
|
89
|
+
@bundle_version || @version
|
90
|
+
end
|
91
|
+
|
88
92
|
private
|
89
93
|
# Generates an HTML file of the release notes.
|
90
94
|
def notes_asset
|
@@ -14,7 +14,7 @@
|
|
14
14
|
]]>
|
15
15
|
</description>
|
16
16
|
<pubDate><%= published_at.strftime("%a, %d %b %Y %H:%M:%S %z") %></pubDate>
|
17
|
-
<enclosure url="<%= executable_asset.url %>" sparkle:version="<%=
|
17
|
+
<enclosure url="<%= executable_asset.url %>" sparkle:version="<%= bundle_version %>" sparkle:shortVersionString="<%= version %>" length="<%= FileTest.size executable.path %>" type="application/octet-stream" />
|
18
18
|
</item>
|
19
19
|
</channel>
|
20
20
|
</rss>
|
data/lib/glitter/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glitter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brad Gessler, Thomas Hanley
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: s3
|
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
98
|
version: '0'
|
99
99
|
requirements: []
|
100
100
|
rubyforge_project: glitter
|
101
|
-
rubygems_version: 2.
|
101
|
+
rubygems_version: 2.1.10
|
102
102
|
signing_key:
|
103
103
|
specification_version: 4
|
104
104
|
summary: Publish Mac software updates with the Sparkle framework and Amazon S3.
|