From e3be121b42bfad4e5d7cae8e04a2b31553f52638 Mon Sep 17 00:00:00 2001 From: odow Date: Wed, 10 Apr 2024 12:08:03 +1200 Subject: [PATCH] Update --- binaries/script.jl | 5 ++--- src/PATHSolver.jl | 2 ++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/binaries/script.jl b/binaries/script.jl index 00d9aac..0edcd6f 100644 --- a/binaries/script.jl +++ b/binaries/script.jl @@ -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 diff --git a/src/PATHSolver.jl b/src/PATHSolver.jl index 92ce78a..5c35c98 100644 --- a/src/PATHSolver.jl +++ b/src/PATHSolver.jl @@ -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")