summaryrefslogtreecommitdiffhomepage
path: root/lib/ruby2d.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ruby2d.rb')
-rw-r--r--lib/ruby2d.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/ruby2d.rb b/lib/ruby2d.rb
index fa1ce40..02aba95 100644
--- a/lib/ruby2d.rb
+++ b/lib/ruby2d.rb
@@ -18,7 +18,14 @@ require 'ruby2d/sound'
require 'ruby2d/music'
if RUBY_PLATFORM =~ /mingw/
- RubyInstaller::Runtime.add_dll_directory(File.expand_path('~/../../usr/local/bin'))
+ # 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
+ RubyInstaller::Runtime.add_dll_directory(File.expand_path(s2d_dll_path))
end
require 'ruby2d/ruby2d' # load native extension