wixgem 0.107.0 → 0.108.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/example/example.msi +0 -0
- data/example/example.msm +0 -0
- data/lib/service.rb +2 -2
- data/lib/wixgem.rb +38 -38
- metadata +8 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 80493efcc975680f41a21d0196dedde83e90a2447b1bdf6eebf1ffdb1de1b49d
|
|
4
|
+
data.tar.gz: 7e1508dcaad2346044f97601ea8b754e043fb02fd9e350ad607289063e7660eb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 399c34135782d39b0cb839c308e4acef986d7126701a57d2d1bc02d7118733dc1e7fa5ee98845e0b863856e711a7f9d56e2d16b6866e49fea2df3ab1e2ea18d7
|
|
7
|
+
data.tar.gz: 4644152e7d05ce0919685405043838caedc3f978e985ebcff47e25d739ccbf5197e818fdbbcb0a31b8dd96ef5543e5c35ef59ccf753b137a3ba0e25ab49b4f92
|
data/example/example.msi
CHANGED
|
Binary file
|
data/example/example.msm
CHANGED
|
Binary file
|
data/lib/service.rb
CHANGED
|
@@ -37,7 +37,7 @@ class Service
|
|
|
37
37
|
|
|
38
38
|
if(service.key?(:logonasservice))
|
|
39
39
|
raise ':logonasservice requires an :account element' unless(service.key?(:account))
|
|
40
|
-
|
|
40
|
+
|
|
41
41
|
wix = REXML::XPath.match(xml_doc, "/Wix")[0]
|
|
42
42
|
wix.add_attribute('xmlns:Util', 'http://schemas.microsoft.com/wix/UtilExtension')
|
|
43
43
|
|
|
@@ -50,6 +50,7 @@ class Service
|
|
|
50
50
|
|
|
51
51
|
account = words[1]
|
|
52
52
|
end
|
|
53
|
+
|
|
53
54
|
user_element.attributes['Id'] = "logon_as_service_#{SecureRandom.uuid.gsub(/-/,'')}"
|
|
54
55
|
user_element.add_attribute('Name', account)
|
|
55
56
|
user_element.add_attribute('LogonAsService', service[:logonasservice])
|
|
@@ -57,7 +58,6 @@ class Service
|
|
|
57
58
|
user_element.add_attribute('UpdateIfExists', 'yes')
|
|
58
59
|
|
|
59
60
|
service.delete(:logonasservice)
|
|
60
|
-
service.delete(:domain) if(service.key?(:domain))
|
|
61
61
|
end
|
|
62
62
|
service_element = parent_element.add_element('ServiceInstall')
|
|
63
63
|
|
data/lib/wixgem.rb
CHANGED
|
@@ -281,43 +281,43 @@ class Wix
|
|
|
281
281
|
end
|
|
282
282
|
|
|
283
283
|
def self.copy_install_files(directory, input)
|
|
284
|
-
|
|
284
|
+
files = files(input)
|
|
285
285
|
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
286
|
+
missing_files = []
|
|
287
|
+
files.each do |file|
|
|
288
|
+
if(File.exists?(file))
|
|
289
289
|
install_path = file
|
|
290
290
|
if(input.has_key?(:modify_file_paths))
|
|
291
291
|
input[:modify_file_paths].each { |regex, replacement_string| install_path = install_path.gsub(regex, replacement_string) }
|
|
292
292
|
end
|
|
293
|
-
|
|
293
|
+
raise "Invalid relative installation path: #{install_path}" if(install_path.include?(':'))
|
|
294
294
|
|
|
295
295
|
install_path = "#{directory}/#{install_path}"
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
end
|
|
296
|
+
FileUtils.mkpath(File.dirname(install_path)) unless(Dir.exists?(File.dirname(install_path)))
|
|
297
|
+
FileUtils.cp(file, install_path, preserve: true)
|
|
298
|
+
elsif(!File.exists?(file))
|
|
299
|
+
missing_files.insert(missing_files.length, file)
|
|
301
300
|
end
|
|
301
|
+
end
|
|
302
302
|
|
|
303
303
|
if(@debug)
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
304
|
+
if(files.length > 0)
|
|
305
|
+
max_path = files.max { |a, b| a.length <=> b.length }
|
|
306
|
+
columen_size = max_path.length + 10
|
|
307
|
+
end
|
|
308
308
|
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
309
|
+
ingore_files = self.ignore_files(input)
|
|
310
|
+
if(input.has_key?(:ignore_files))
|
|
311
|
+
@logger << "------------------------------------ ignoring files -----------------------------------" unless(@logger.nil?)
|
|
312
|
+
input[:ignore_files].each { |file| @logger << file }
|
|
313
|
+
end
|
|
314
314
|
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
315
|
+
@logger << "------------------------------------ Installation Paths -----------------------------------" unless(@logger.nil?)
|
|
316
|
+
@logger << "%-#{columen_size}s %s\n" % ['File path', 'Installation Path'] unless(@logger.nil?)
|
|
317
|
+
files.reject! { |f| ingore_files.include?(f) }
|
|
318
318
|
|
|
319
|
-
|
|
320
|
-
|
|
319
|
+
files.each do |file|
|
|
320
|
+
if(File.exists?(file))
|
|
321
321
|
install_path = file
|
|
322
322
|
if(input.has_key?(:modify_file_paths))
|
|
323
323
|
input[:modify_file_paths].each { |regex, replacement_string| install_path = install_path.gsub(regex, replacement_string) }
|
|
@@ -325,22 +325,22 @@ class Wix
|
|
|
325
325
|
@logger << "%-#{columen_size}s %s\n" % [file, install_path] unless(@logger.nil?)
|
|
326
326
|
end
|
|
327
327
|
end
|
|
328
|
-
|
|
329
|
-
|
|
328
|
+
@logger << "-------------------------------------------------------------------------------------------" unless(@logger.nil?)
|
|
329
|
+
end
|
|
330
330
|
|
|
331
|
-
|
|
331
|
+
raise 'No files were given to wixgem' if(files.length == 0)
|
|
332
332
|
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
333
|
+
if(missing_files.length > 0)
|
|
334
|
+
missing_files_str = ''
|
|
335
|
+
missing_files.each { |f|
|
|
336
|
+
if(missing_files_str.empty?)
|
|
337
|
+
missing_files_str = f
|
|
338
|
+
else
|
|
339
|
+
missing_files_str = "#{missing_files_str}, #{f}"
|
|
340
|
+
end
|
|
341
|
+
}
|
|
342
|
+
raise "Wixgem missing files: #{missing_files_str}"
|
|
343
|
+
end
|
|
344
344
|
end
|
|
345
345
|
|
|
346
346
|
def self.modify_binary_files(input)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: wixgem
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.108.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kevin Marshall
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-03-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: execute
|
|
@@ -67,7 +67,7 @@ dependencies:
|
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: '0'
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
|
-
name:
|
|
70
|
+
name: raykit
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
72
72
|
requirements:
|
|
73
73
|
- - "~>"
|
|
@@ -124,7 +124,7 @@ dependencies:
|
|
|
124
124
|
version: '0'
|
|
125
125
|
description: Simple Ruby interface to facilitate creating and compiling windows installation
|
|
126
126
|
files with the Wix Toolset.
|
|
127
|
-
email:
|
|
127
|
+
email:
|
|
128
128
|
executables: []
|
|
129
129
|
extensions: []
|
|
130
130
|
extra_rdoc_files: []
|
|
@@ -148,7 +148,7 @@ homepage: http://rubygems.org/gems/wixgem
|
|
|
148
148
|
licenses:
|
|
149
149
|
- Apache 2.0
|
|
150
150
|
metadata: {}
|
|
151
|
-
post_install_message:
|
|
151
|
+
post_install_message:
|
|
152
152
|
rdoc_options: []
|
|
153
153
|
require_paths:
|
|
154
154
|
- lib
|
|
@@ -163,8 +163,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
163
163
|
- !ruby/object:Gem::Version
|
|
164
164
|
version: '0'
|
|
165
165
|
requirements: []
|
|
166
|
-
rubygems_version: 3.
|
|
167
|
-
signing_key:
|
|
166
|
+
rubygems_version: 3.2.3
|
|
167
|
+
signing_key:
|
|
168
168
|
specification_version: 4
|
|
169
169
|
summary: Simple Ruby interface to facilitate working with Wix Toolset
|
|
170
170
|
test_files: []
|