raykit 0.0.380 → 0.0.383

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: 0d9a59e4ff1325cee028611d223c5d9e595db50088fd08291e0347e49708474d
4
- data.tar.gz: 1b359e702c0fee09b6414e51d91988090ba91d0eb8a6509e8cc6769aa1b15a17
3
+ metadata.gz: b34bcd101a1b49102fb38240c82cdd09ca3193789f1d88311bc7abba30aac863
4
+ data.tar.gz: e17169d04531720df713e5bd9e187b8fe0c69e26df7ff3bf0b670ebbfa840243
5
5
  SHA512:
6
- metadata.gz: 05dc9d70746eb0a20d3fe36ca22e19c9fb8d4d6a880d147d68dc3aef35bbc3d67917e4fd1c87503e375c441200c2c887ee409db9ba80290bc52465d72db2e50d
7
- data.tar.gz: 4e9f598fc21100cefe8fe444259c02b6e6376081209f6f662a300972c1bdf750f48438b5af76a2ffd8f566209d485deb470a843b0b77f3916792e9d77e4c6ff7
6
+ metadata.gz: a974d93f7957a69fbe2e5ca7d74e7701504c73878b2c363f67bb717bc3ce60204aa2231d93a5f9cfa5aae8e495fa6cad3802eda99f0a6a505de16812367384a3
7
+ data.tar.gz: 20635a7231a86a2ffbf3e2eb1b009405ca48854ae4d1799c1458ef364763148c2f6c1ff72eb228827726eacee5a43bc6d18737f8b36fb7590b06b38911aa5eec
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Raykit
4
+ class Installer
5
+ def self.make_msi(wxs_file, source_dir, msi_filename)
6
+ name = "#{File.basename(wxs_file, ".wxs")}"
7
+ FileUtils.cp(wxs_file, "#{source_dir}/#{File.basename(wxs_file)}")
8
+ Dir.chdir(source_dir) do
9
+ run("candle #{File.basename(wxs_file)}")
10
+ run("light #{name}.wixobj")
11
+ FileUtils.cp("#{wxs_basename}.msi", msi_filename)
12
+ raise "#{msi_filename} does not exist" if !File.exists?(msi_filename)
13
+ File.delete("#{name}.wixobj")
14
+ end
15
+ end
16
+ end
17
+ end
data/lib/raykit.rb CHANGED
@@ -13,7 +13,9 @@ PROJECT = Raykit::Project.new
13
13
  SECRETS = Raykit::Secrets.new
14
14
 
15
15
  REPOSITORIES = Raykit::Git::Repositories.new("#{Raykit::Environment.get_dev_dir("log")}/Raykit.Git.Repositories.json")
16
- GIT_DIRECTORY = Raykit::Git::Directory.new(Rake.application.original_dir) # if Dir.exist?(".git")
16
+ GIT_DIRECTORY = Raykit::Git::Directory.new(Rake.application.original_dir)
17
+
18
+ PUBLISH_DIR = Raykit::Environment::get_dev_dir("publish")
17
19
 
18
20
  # include Raykit::TopLevel to make run method accessible from the global scope
19
21
  module Raykit
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raykit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.380
4
+ version: 0.0.383
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow
@@ -103,6 +103,7 @@ files:
103
103
  - lib/raykit/git/files.rb
104
104
  - lib/raykit/git/repositories.rb
105
105
  - lib/raykit/git/repository.rb
106
+ - lib/raykit/installer.rb
106
107
  - lib/raykit/log.rb
107
108
  - lib/raykit/logevent.rb
108
109
  - lib/raykit/logging.rb