summaryrefslogtreecommitdiffhomepage
path: root/lib/ruby2d.rb
diff options
context:
space:
mode:
authorTom Black <[email protected]>2019-04-02 01:49:44 -0500
committerTom Black <[email protected]>2019-04-06 21:36:59 -0500
commit385ab540946ae27101167f9fea9eafc422fd36f7 (patch)
tree565afff6e92fd23a5a5ba92bfd1052eaf2a08ac8 /lib/ruby2d.rb
parent7d1a4de254bd4404affd7ddcafa4ef82f3d32ded (diff)
downloadruby2d-385ab540946ae27101167f9fea9eafc422fd36f7.tar.gz
ruby2d-385ab540946ae27101167f9fea9eafc422fd36f7.zip
Bundle dependencies with the gem
Diffstat (limited to 'lib/ruby2d.rb')
-rw-r--r--lib/ruby2d.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/ruby2d.rb b/lib/ruby2d.rb
index 305f065..c03560d 100644
--- a/lib/ruby2d.rb
+++ b/lib/ruby2d.rb
@@ -21,13 +21,7 @@ unless RUBY_ENGINE == 'mruby'
require 'ruby2d/music'
if RUBY_PLATFORM =~ /mingw/
- # When using the Windows CI AppVeyor
- if ENV['APPVEYOR']
- s2d_dll_path = 'C:\msys64\usr\local\bin'
- # When in a standard MinGW shell
- else
- s2d_dll_path = '~/../../usr/local/bin'
- end
+ s2d_dll_path = Gem::Specification.find_by_name('ruby2d').gem_dir + '/assets/mingw/bin'
RubyInstaller::Runtime.add_dll_directory(File.expand_path(s2d_dll_path))
end