diff --git a/Artifacts.toml b/Artifacts.toml index 601dcb8..3a73590 100644 --- a/Artifacts.toml +++ b/Artifacts.toml @@ -1,23 +1,20 @@ # using Tar, Inflate, SHA # cd("C:\\Users\\pi96doc\\Documents\\Programming\\Java\\View5D") -# V = 2; VV = 5; VVV = 2; +# V = 2; VV = 5; VVV = 5; Suffix = "-SNAPSHOT"; # include("src\\GetArtifactInfo.jl") - -# filename = "View5D_v2.5.2-jar.tar.gz" -# https://github.com/RainerHeintzmann/View5D/releases/download/View5D_v2.5.2/View5D_v2.5.2-jar.tar.gz -# replace the code below with the appropriate new entries +# replace the code below with the printout # -# remember to change the version number in filename and 2x in the url AND in the View5D.jl file! -# for a full release: update the version number in View5D.jl and comment "@JuliaRegistrator register" +# remember to change the version number in the View5D.jl Project.toml file! +# Note that the Julia Version does not agree to the version of the Java View5D. +# for a full release: update the version number in Project.toml and comment "@JuliaRegistrator register" # For reference the lines to generate the hashes below # println("git-tree-sha1 = \"", Tar.tree_hash(IOBuffer(inflate_gzip(filename))),"\"") # println("sha256 = \"", bytes2hex(open(sha256, filename)), "\"") -# https://github.com/RainerHeintzmann/View5D/releases/download/View5D_v2.5.2/View5D_v2.5.2-jar.tar.gz [View5D-jar] -git-tree-sha1 = "dd8217b7552770902d20c54f03b155f114e864b5" +git-tree-sha1 = "35fd709e1382615353426673e395a58c131cb6f0" lazy = true [[View5D-jar.download]] - url = "https://github.com/RainerHeintzmann/View5D/releases/download/View5D_v2.5.2/View5D_v2.5.2-jar.tar.gz" - sha256 = "aca6efbb26c63141f7c764bd2e7858421edba5740529684a7e150e0d24de3830" + url = "https://github.com/RainerHeintzmann/View5D/releases/download/View5D_-2.5.5/View5D_v2.5.5.tar.gz" + sha256 = "0c0306a1628f040ff65b3f153c96df86ce998ffdc6ff3dc0852793872bfc5f42" \ No newline at end of file diff --git a/Project.toml b/Project.toml index f869672..10530b4 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "View5D" uuid = "90d841e0-6953-4e90-9f3a-43681da8e949" authors = ["rheintzmann "] -version = "0.5.2" +version = "0.5.3" [deps] AxisArrays = "39de3d68-74b9-583c-8d2d-e117c070f3a9" diff --git a/src/GetArtifactInfo.jl b/src/GetArtifactInfo.jl index fb163f1..0891f1a 100644 --- a/src/GetArtifactInfo.jl +++ b/src/GetArtifactInfo.jl @@ -1,7 +1,11 @@ using Tar, Inflate, SHA -filename="C:\\Users\\pi96doc\\Documents\\Programming\\Java\\View5D\\View5D_v$V.$VV.$VVV-jar.tar.gz" +filename="C:\\Users\\pi96doc\\Documents\\Programming\\Java\\View5D\\target\\View5D_-$V.$VV.$VVV$Suffix.tar.gz" + +println("[View5D-jar]") println("git-tree-sha1 = \"", Tar.tree_hash(IOBuffer(inflate_gzip(filename))),"\"") -println("url = \"https://github.com/RainerHeintzmann/View5D/releases/download/View5D_v$(V).$VV.$VVV/View5D_v$V.$VV.$VVV-jar.tar.gz\" ") -println("sha256 = \"", bytes2hex(open(sha256, filename)), "\"") +println("lazy = true\n") +println(" [[View5D-jar.download]]") +println(" url = \"https://github.com/RainerHeintzmann/View5D/releases/download/View5D_-$(V).$VV.$VVV/View5D_v$V.$VV.$VVV.tar.gz\" ") +println(" sha256 = \"", bytes2hex(open(sha256, filename)), "\"") # and then put these values into the Artifacts.toml file and also update the Version number there. diff --git a/test/runtests.jl b/test/runtests.jl index ff44482..3879ff3 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -94,10 +94,11 @@ end v = view5d(rand(Float32,2,2,2,2,3)) @test 3 == get_num_times(v) @test 2 == get_num_elements(v) - + @test nothing == close_all() end @testset "set functions" begin v = view5d(rand(Float32,2,2,2,2,3)) - set_colormap_no(13, v) + @test set_colormap_no(13, nothing, v) == nothing + @test nothing == close_all() end \ No newline at end of file