To install PATHSolver.jl in Windows, I used to use the following build.jl
script:
# Windows 32/64
provides(BuildProcess,
(@build_steps begin
CreateDirectory(lib_dir, true)
CreateDirectory(src_dir, true)
@build_steps begin
ChangeDirectory(src_dir)
FileDownloader("https://github.com/ampl/pathlib/archive/$pathlib_v.zip", joinpath(dl_dir, "pathlib.zip"))
FileUnpacker(joinpath(dl_dir, "pathlib.zip"), src_dir, libpath47_dll)
`powershell -NoProfile -Command "Copy-Item -Path '$libpath47_dll' -Destination '$lib_dir' -force"`
`powershell -NoProfile -Command "Copy-Item -Path '$libpath47_lib' -Destination '$lib_dir' -force"`
end
@build_steps begin
FileDownloader("https://github.com/chkwon/PathJulia/archive/$pathjulia_v.zip", joinpath(dl_dir, "PathJulia.zip"))
FileUnpacker(joinpath(dl_dir, "PathJulia.zip"), src_dir, libpath47julia_dll)
`powershell -NoProfile -Command "Copy-Item -Path '$libpath47julia_dll' -Destination '$lib_dir' -force"`
end
end), libpath47julia, os = :Windows)
I need to basically move three different files (path46.dll
, path47.lib
, libpath47julia.dll
) in the same directory. Those powershell
commands have worked well with previous versions of julia, and it works well in Appveyor, but it actually does not work in my Windows machine.
How should I change the build script?