Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Apr 10, 2024
1 parent 457801f commit e3be121
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 2 additions & 3 deletions binaries/script.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@ function get_artifact(data)
dir = "$(data.arch)-$(data.platform)"
filename = "$(dir).tar.bz2"
run(`tar -cjf $filename $dir`)
sha256 = bytes2hex(open(sha256, filename))
url = "https://github.com/chkwon/PATHSolver.jl/releases/download/v5.0.3-path-binaries/$filename"
ret = Dict(
"git-tree-sha1" => Tar.tree_hash(`gzcat $filename`),
"arch" => data.arch,
"os" => data.os,
"download" => Any[
Dict("sha256" => bytes2hex(open(sha256, filename)), "url" => url),
]
"download" => Any[Dict("sha256" => sha256, "url" => url)],
)
return ret
end
Expand Down
2 changes: 2 additions & 0 deletions src/PATHSolver.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import SparseArrays
function _get_artifact_path(filename)
root = LazyArtifacts.artifact"PATHSolver"
if Sys.iswindows()
# There's a permission error with the artifact
chmod(root, 0o755; recursive = true)
return joinpath(root, "x86_64-w64-mingw32", "$filename.dll")
elseif Sys.isapple()
return joinpath(root, "$(Sys.ARCH)-apple-darwin", "$filename.dylib")
Expand Down

0 comments on commit e3be121

Please sign in to comment.