summaryrefslogtreecommitdiff
path: root/win32/resource.rb
diff options
context:
space:
mode:
Diffstat (limited to 'win32/resource.rb')
-rwxr-xr-xwin32/resource.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/resource.rb b/win32/resource.rb
index e19e04b922..60bb1f3bd0 100755
--- a/win32/resource.rb
+++ b/win32/resource.rb
@@ -53,7 +53,7 @@ end
[$so_name, '.dll', 'VFT_DLL', 'DLL', dll_icons.join],
].each do |base, ext, type, desc, icon|
next if $output and $output != base
- open(base + '.rc', "w") { |f|
+ File.open(base + '.rc', "w") { |f|
f.binmode if /mingw/ =~ RUBY_PLATFORM
f.print <<EOF
@@ -61,6 +61,7 @@ end
#include <winver.h>
#{icon || ''}
+#{type == 'VFT_APP' ? "1 RT_MANIFEST ruby.manifest" : ""}
VS_VERSION_INFO VERSIONINFO
FILEVERSION #{nversion}
PRODUCTVERSION #{nversion}
@@ -93,4 +94,3 @@ END
EOF
}
end
-