wixgem 0.15.0 → 0.16.0
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 +4 -4
- data/lib/wixgem.rb +7 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c6c4bf74500b9f10eec0c52a9a283d029d70ded
|
4
|
+
data.tar.gz: 2b625201bff5d279c7a96c43df6e21ce5b75fafd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60dcb625ecc13322753115c515c8558d5dc4da2d26111046e95012db57d94d8ba67cc791a1e6f7f3f94aee5310515fb3fe5e34946014f1b8ef1e50dda34c42ba
|
7
|
+
data.tar.gz: 5cc1bf1ea120eb9aeb47cd7d61335d1e45a230346f0fd20d00f15826c9c544243fd21039035741b0eba78a3f0d03bb0151fdba876ecf9d840dd0f08ceaab5898
|
data/lib/wixgem.rb
CHANGED
@@ -3,6 +3,10 @@ require 'SecureRandom'
|
|
3
3
|
require 'tmpdir.rb'
|
4
4
|
|
5
5
|
class Wix
|
6
|
+
def self.initialize
|
7
|
+
@install_path = ''
|
8
|
+
@debug = false
|
9
|
+
end
|
6
10
|
def self.install_path=(path)
|
7
11
|
@install_path = path
|
8
12
|
end
|
@@ -106,7 +110,7 @@ class Wix
|
|
106
110
|
end
|
107
111
|
|
108
112
|
def self.create_wxs_file(wxs_file, input, ext)
|
109
|
-
@debug = input[:debug] if(input.kind_of?(Hash) && input.has_key?(:debug))
|
113
|
+
@debug = input[:debug] if(!@debug && input.kind_of?(Hash) && input.has_key?(:debug))
|
110
114
|
|
111
115
|
template_option = "-template product"
|
112
116
|
template_option = "-template module" unless(ext == ".msi")
|
@@ -190,9 +194,9 @@ class Wix
|
|
190
194
|
wxs_file = "#{basename}.wxs"
|
191
195
|
Dir.chdir(dir) do |current_dir|
|
192
196
|
create_wxs_file(wxs_file, input, ext)
|
193
|
-
|
197
|
+
create_output(wxs_file, output_absolute_path)
|
194
198
|
end
|
195
|
-
FileUtils.cp(wxs_file, output_absolute_path.
|
199
|
+
FileUtils.cp("#{dir}/#{wxs_file}", "#{output_absolute_path}.wxs") if(@debug)
|
196
200
|
end
|
197
201
|
pdb_file = output_absolute_path.gsub(ext,'.wixpdb')
|
198
202
|
FileUtils.rm(pdb_file) if(File.exists?(pdb_file))
|