This repository has been archived by the owner on Jul 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to using
Artifacts
for assets/
Makes `AbstractPlotting` more amenable to inclusion in a relocated system image where the original source directories may not exist anymore.
- Loading branch information
1 parent
185de01
commit 4601024
Showing
6 changed files
with
44 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,5 +12,6 @@ phases.0001_print.jpg | |
**/._* | ||
Manifest.toml | ||
!docs/Manifest.toml | ||
/build | ||
|
||
\.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[assets] | ||
git-tree-sha1 = "a74800f299f6bdade309e459b999442f303aa64d" | ||
|
||
[[assets.download]] | ||
sha256 = "7ccfd273ff2ac996059d9019ff317202bdc69aef394fe450be557df9aae81733" | ||
url = "https://github.com/JuliaPlots/AbstractPlotting.jl/releases/download/assets-0.1.0/assets-0.1.0.tar.gz" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Artifact generator for the assets directory. | ||
|
||
using Pkg.Artifacts | ||
using URIs | ||
|
||
version = v"0.1.0" | ||
host = "https://github.com/JuliaPlots/AbstractPlotting.jl/releases/download" | ||
|
||
build_path = joinpath(@__DIR__, "build") | ||
|
||
ispath(build_path) && rm(build_path, force=true, recursive=true) | ||
mkpath(build_path) | ||
|
||
product_hash = create_artifact() do artifact_dir | ||
cp(joinpath(@__DIR__, "assets"), artifact_dir; force = true) | ||
end | ||
|
||
archive_filename = "assets-$version.tar.gz" | ||
artifact_toml = joinpath(@__DIR__, "Artifacts.toml") | ||
download_hash = archive_artifact(product_hash, joinpath(build_path, archive_filename)) | ||
|
||
bind_artifact!( | ||
artifact_toml, | ||
"assets", | ||
product_hash, | ||
force = true, | ||
download_info = Tuple[ | ||
( | ||
"$host/assets-$(escapeuri(string(version)))/$archive_filename", | ||
download_hash, | ||
), | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters