wixgem 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +16 -0
- data/lib/wixgem.rb +3 -4
- 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: 32d09a64e5c6af6cef3d7087c790ffcddde1d6d2
|
4
|
+
data.tar.gz: 89734c99879bf8e6e76824c29820d250ef2e04ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 312018600ffd2336032156d9990ad5556bdc38e7695cb81e204935e512f563928f14fa7b22a53a8df7f4a95bc9c46d6898cf58813c5731dde9d6f31553ddde8d
|
7
|
+
data.tar.gz: 1be9127097116cc6f367e435d8c020d5e4d1a32c91b1b21f3055ebe1e3e0ef5e2a8759b3ab4780e9c8cd1a2250b51cb3234a585679f89286cfaec55e215e176f
|
data/README.md
CHANGED
@@ -9,6 +9,22 @@ wixgem can be installed by the single command
|
|
9
9
|
## Usage
|
10
10
|
The wix toolset must be installed.
|
11
11
|
|
12
|
+
## Simple usage
|
13
|
+
|
14
|
+
``
|
15
|
+
require 'wixgem'
|
16
|
+
|
17
|
+
WIX_TOOLSET_ROOT='path to root of Wix toolset'
|
18
|
+
Wix.install_path = WIX_TOOLSET_ROOT
|
19
|
+
|
20
|
+
# Installation example
|
21
|
+
Wix.make_installation('wixgem_install_test1.msi', ['rakefile.rb']])
|
22
|
+
|
23
|
+
# Mergemodule example
|
24
|
+
Wix.make_mergemodule('wixgem_install_test1.msi', ['rakefile.rb']])
|
25
|
+
```
|
26
|
+
|
27
|
+
|
12
28
|
In a rakefile define an installation task:
|
13
29
|
|
14
30
|
```
|
data/lib/wixgem.rb
CHANGED
@@ -94,8 +94,8 @@ class Wix
|
|
94
94
|
files.each do |file|
|
95
95
|
if(File.file?(file))
|
96
96
|
install_path = file
|
97
|
-
if(input.kind_of?(Hash) && input.has_key?(:
|
98
|
-
input[:
|
97
|
+
if(input.kind_of?(Hash) && input.has_key?(:modify_file_paths))
|
98
|
+
input[:modify_file_paths].each { |regex, replacement_string| install_path = install_path.gsub(regex, replacement_string) }
|
99
99
|
end
|
100
100
|
|
101
101
|
install_path = "#{directory}/#{install_path}"
|
@@ -113,8 +113,7 @@ class Wix
|
|
113
113
|
|
114
114
|
stdout = %x[\"#{install_path}/bin/heat.exe\" dir . #{template_option} -cg InstallionFiles -gg -nologo -srd -o \"#{wxs_file}\"]
|
115
115
|
raise "#{stdout}\nFailed to generate .wxs file" unless(File.exists?(wxs_file))
|
116
|
-
|
117
|
-
|
116
|
+
|
118
117
|
product_name = File.basename(wxs_file, '.wxs')
|
119
118
|
product_name = input[:product_name] if(input.kind_of?(Hash) && input.has_key?(:product_name))
|
120
119
|
|