diff options
| author | Tom Black <[email protected]> | 2018-01-07 16:02:30 -0800 |
|---|---|---|
| committer | Tom Black <[email protected]> | 2018-01-08 21:59:08 -0800 |
| commit | 5046526163b1cdf6794ca72a8fe375992d601597 (patch) | |
| tree | e0c15a787c262c5d38845f970969966e0dbc16db /lib/ruby2d.rb | |
| parent | e5577abfc4e0cd47b25ea2a1746e753c82adcd2d (diff) | |
| download | ruby2d-5046526163b1cdf6794ca72a8fe375992d601597.tar.gz ruby2d-5046526163b1cdf6794ca72a8fe375992d601597.zip | |
Add appveyor.yml
Diffstat (limited to 'lib/ruby2d.rb')
| -rw-r--r-- | lib/ruby2d.rb | 9 |
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 |
