raykit 0.0.382 → 0.0.383

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 +12 -12
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '009de6bc0eb245459023848f96351f101970de107de62dbb45eeb6b81aad7642'
4
- data.tar.gz: fcbb966d619d26fa436e528f7592b99abab1dc89546c15a7d7aa6e9b46ffcc5a
3
+ metadata.gz: b34bcd101a1b49102fb38240c82cdd09ca3193789f1d88311bc7abba30aac863
4
+ data.tar.gz: e17169d04531720df713e5bd9e187b8fe0c69e26df7ff3bf0b670ebbfa840243
5
5
  SHA512:
6
- metadata.gz: c167720fa6626bcaa8eb6131f9daa15e5d5c5b48069960b5ed10e1f1d201c3dd8fa8c0c09bbcaea271a4635c01fc2690e05c7b8db4a6c5704d1b651bd6c892a5
7
- data.tar.gz: 53ef5e43c879a3acff55c2c71b38940b16048f789d2abc7c2d63fa017d506d82b817248c8ea562d2e555a8ac1e160459db0b03ac9802d672633d7b5992468148
6
+ metadata.gz: a974d93f7957a69fbe2e5ca7d74e7701504c73878b2c363f67bb717bc3ce60204aa2231d93a5f9cfa5aae8e495fa6cad3802eda99f0a6a505de16812367384a3
7
+ data.tar.gz: 20635a7231a86a2ffbf3e2eb1b009405ca48854ae4d1799c1458ef364763148c2f6c1ff72eb228827726eacee5a43bc6d18737f8b36fb7590b06b38911aa5eec
@@ -1,17 +1,17 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Raykit
4
- class Installer
5
- def make_msi(wxs_file, source_dir, msi_filename)
6
- wxs_basename = "#{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 #{File.basename(wxs_file, ".wxs")}.wixobj")
11
- FileUtils.cp("#{wxs_basename}.msi", msi_filename)
12
- raise "#{msi_filename} does not exist" if !File.exists?(msi_filename)
13
- end
14
- end
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
15
  end
16
16
  end
17
-
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.382
4
+ version: 0.0.383
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow