From 385ab540946ae27101167f9fea9eafc422fd36f7 Mon Sep 17 00:00:00 2001 From: Tom Black Date: Tue, 2 Apr 2019 01:49:44 -0500 Subject: Bundle dependencies with the gem --- lib/ruby2d.rb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'lib/ruby2d.rb') 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 -- cgit v1.2.3