create bin directory if it doesn't already exist

This commit is contained in:
Srayan Jana
2025-09-10 08:40:02 -07:00
parent 46656676ac
commit bca03d8d7e

View File

@@ -19,9 +19,13 @@ target libleansdl pkg : FilePath := do
let sdlO sdl.o.fetch let sdlO sdl.o.fetch
let name := nameToStaticLib "leansdl" let name := nameToStaticLib "leansdl"
-- manually copy the DLLs we need to .lake/build/bin/ for the game to work -- manually copy the DLLs we need to .lake/build/bin/ for the game to work
IO.FS.createDirAll ".lake/build/bin/"
if Platform.isWindows then if Platform.isWindows then
copyFile "vendor/SDL/build/SDL3.dll" ".lake/build/bin/SDL3.DLL" copyFile "vendor/SDL/build/SDL3.dll" ".lake/build/bin/SDL3.DLL"
copyFile "vendor/SDL_image/build/SDL3_image.dll" ".lake/build/bin/SDL3_image.DLL" copyFile "vendor/SDL_image/build/SDL3_image.dll" ".lake/build/bin/SDL3_image.DLL"
let lakeBinariesDir getLakeLibDir
println! "Copying Lake DLLs from {lakeBinariesDir}"
buildStaticLib (pkg.staticLibDir / name) #[sdlO] buildStaticLib (pkg.staticLibDir / name) #[sdlO]
lean_lib SDL where lean_lib SDL where