roku_builder 4.22.1 → 4.22.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4e254e28ba3fddc22a7578a793813f98038f8f6436c44f909900ea71028f233e
4
- data.tar.gz: 40b2d0b27529a797a34b567354a859d870d496e3fe63b17612c5af1d38342347
3
+ metadata.gz: 4655c4f0480c5e46c9064eb0f441bd0b9d09c43ea4b5b513ef0e657326be3bc4
4
+ data.tar.gz: 8b0ad7dc350ed4111835fcd1c87cb7e7f223ab19885c2b5e956fc5ecdc3723ca
5
5
  SHA512:
6
- metadata.gz: 15a804bfc305022817923fcd6dcb643a2d6d080a8d39d1697ceb51f559669d443255d82c9d187cf17603b7a4083d430612870b70de8e42c052c0a3ec0999ca49
7
- data.tar.gz: 36bef8ba56d9a908ea4e01e6202f7f5d5b734321cf4b640f52c3c1e129b1e1b85067359a5a8e353932f6c51298a7296a02e18a2094c835581dca20b8a5efb2a5
6
+ metadata.gz: 5ef232bda81b19899c4d17b0ebcd09e85632dc1cf76aea11d385fb69e64479f03e252e7bf538550207e40cd7523eb7c50e0fc8d3a1e292c795060bef1384b040
7
+ data.tar.gz: 4d11c0926d97572f11c40353926c6749e10172aa5e3b1c5e7db4386030e0664dac37e925fbab41c820e460b14a633db4e99ca3d814a38aa9a1c231b33c9e2fcd
data/bin/roku CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  $:.unshift File.join(File.dirname(__FILE__), "..", "lib")
5
5
 
6
- #require "byebug"
6
+ require "byebug"
7
7
  require "rubygems"
8
8
  require "bundler/setup"
9
9
  require "roku_builder"
@@ -120,6 +120,7 @@ module RokuBuilder
120
120
  def file_path(type)
121
121
  file = @config.send(type)[:file]
122
122
  file ||= Manifest.new(config: @config).build_version
123
+ file ||= SecureRandom.uuid
123
124
  file = file+".zip" unless file.end_with?(".zip")
124
125
  File.join(@config.send(type)[:folder], file)
125
126
  end
@@ -61,22 +61,15 @@ module RokuBuilder
61
61
  out[:file] ||= "key_"+dev_id+".pkg"
62
62
  @config.out = out
63
63
 
64
- Dir.mktmpdir { |dir|
65
- config_copy = @config.dup
66
- config_copy.root_dir = dir
67
- Manifest.generate({config: config_copy, attributes: {}})
68
- Dir.mkdir(File.join(dir, "source"))
69
- File.open(File.join(dir, "source", "main.brs"), "w") do |io|
70
- io.puts "sub main()"
71
- io.puts " print \"Load\""
72
- io.puts "end sub"
73
- end
74
- loader = Loader.new(config: config_copy)
75
- options[:current] = true
76
- loader.sideload(options: options)
77
- sign_package(app_name_version: "key_"+dev_id, password: password, stage: options[:stage])
78
- @logger.unknown("Keyed PKG: #{File.join(@config.out[:folder], @config.out[:file])}")
79
- }
64
+ config_copy = @config.dup
65
+ config_copy.root_dir = ""
66
+ config_copy.in[:folder] = File.dirname(__FILE__)
67
+ config_copy.in[:file] = "key_template.zip"
68
+ loader = Loader.new(config: config_copy)
69
+ options[:in] = true
70
+ loader.sideload(options: options)
71
+ sign_package(app_name_version: "key_"+dev_id, password: password, stage: options[:stage])
72
+ @logger.unknown("Keyed PKG: #{File.join(@config.out[:folder], @config.out[:file])}")
80
73
  end
81
74
 
82
75
  # Sets the key on the roku device
@@ -2,5 +2,5 @@
2
2
 
3
3
  module RokuBuilder
4
4
  # Version of the RokuBuilder Gem
5
- VERSION = "4.22.1"
5
+ VERSION = "4.22.2"
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roku_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.22.1
4
+ version: 4.22.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - greeneca
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-30 00:00:00.000000000 Z
11
+ date: 2021-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip
@@ -490,6 +490,7 @@ files:
490
490
  - lib/roku_builder/plugins/indentation_inspector.rb
491
491
  - lib/roku_builder/plugins/inspector.rb
492
492
  - lib/roku_builder/plugins/inspector_config.json
493
+ - lib/roku_builder/plugins/key_template.zip
493
494
  - lib/roku_builder/plugins/line_inspector.rb
494
495
  - lib/roku_builder/plugins/linker.rb
495
496
  - lib/roku_builder/plugins/loader.rb