From 5046526163b1cdf6794ca72a8fe375992d601597 Mon Sep 17 00:00:00 2001 From: Tom Black Date: Sun, 7 Jan 2018 16:02:30 -0800 Subject: Add appveyor.yml --- lib/ruby2d.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.3