raykit 0.0.381 → 0.0.384

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/raykit/installer.rb +17 -0
  3. metadata +2 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 141e4af716dbbe6efdbd79a2046d5da3b16c32fd3b863dc3c0b4fd9335db79f2
4
- data.tar.gz: 8b5790cfac6c3020d36160797bf32c9066c72c8353c24b2ba351c6c2a76cdaf8
3
+ metadata.gz: f1a931c2fa0127f406b9783cd4688340759d581f321f8a02ff82bdfe613eb223
4
+ data.tar.gz: 3c7521121a2f58e04f03475e388e827b672b611d7121f6062f46663cce0fd457
5
5
  SHA512:
6
- metadata.gz: 114f6a4d311bed92745f71d58abfba95bda93d54406af0226b286471de1f30d46ef19708ab9e497be95fac89ecfee97aaa8273832c219719b74cfc45b2c83d53
7
- data.tar.gz: 5d1e195bc156531bd2d4198d4411c8e5a6987c66ec9ed8c5850fdedeac8f9e858e99251c393376d7e8b92ed4e1d7ce940d18191713241bd1191445c0567360f8
6
+ metadata.gz: '068863574bd1efb73b17ddd3207a5ed52b0fa45a30b8f28f12f17f0e2a6c2551251e947bd0a4d77bb66a6ecd5378d8a8fc2010aeac8f14b6db8ed6ea2bbfb36a'
7
+ data.tar.gz: 100815badb3e5537224cacc0091f8b51033bb5d280240c4b2fb05ffc977536b0b2db603bf762aeb7bca6a10080f5040bfac45f828c7be5ab12bc607c16d5747c
@@ -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("#{name}.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
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.381
4
+ version: 0.0.384
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