Skip to content

Commit 40e045d

Browse files
authored
Merge pull request #134 from OpenVoxProject/fix_windows_openbolt
Fix openbolt-runtime for Windows
2 parents 4759252 + 7e1a0dd commit 40e045d

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

configs/components/runtime-openbolt.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33
pkg.environment 'PROJECT_SHORTNAME', 'bolt'
44

55
if platform.is_windows?
6+
# Runtime dependencies of Ruby
67
lib_type = platform.architecture == 'x64' ? 'seh' : 'sjlj'
78
pkg.install_file "#{settings[:gcc_bindir]}/libgcc_s_#{lib_type}-1.dll",
89
"#{settings[:bindir]}/libgcc_s_#{lib_type}-1.dll"
10+
pkg.install_file "#{settings[:gcc_bindir]}/libstdc++-6.dll", "#{settings[:bindir]}/libstdc++-6.dll"
11+
pkg.install_file "#{settings[:gcc_bindir]}/libwinpthread-1.dll", "#{settings[:bindir]}/libwinpthread-1.dll"
12+
pkg.install_file "#{settings[:tools_root]}/bin/zlib1.dll", "#{settings[:bindir]}/zlib1.dll"
913
end
1014
end

configs/projects/openbolt-runtime.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
end
3131
# We build for windows not in the final destination, but in the paths that correspond
3232
# to the directory ids expected by WIX. This will allow for a portable installation (ideally).
33-
proj.setting(:prefix, File.join('C:', proj.base_dir, proj.company_id, proj.product_id))
33+
proj.setting(:prefix, File.join('C:', proj.base_dir, proj.pl_company_id, proj.pl_product_id))
3434
else
3535
proj.setting(:prefix, '/opt/puppetlabs/bolt')
3636
end

0 commit comments

Comments
 (0)