Skip to content

Commit 8427e9e

Browse files
authored
Merge pull request #484 from pankgeorg/master
Use Artifacts
2 parents 91156f8 + e062a40 commit 8427e9e

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed

Artifacts.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[web]
2+
git-tree-sha1 = "050430be38d442e70243cb830455185b9fd0f5bd"
3+
4+
[[web.download]]
5+
sha256 = "00debe8457bc840c81e204c482bada9098446aa12f5009c82b5c3b8b0281cebd"
6+
url = "https://github.com/pankgeorg/WebIO.jl/files/8111257/bundle.tar.gz"

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ This is a non-comprehensive list of projects using WebIO.
2323
+ [MeshCat.jl](https://github.com/rdeits/MeshCat.jl) - WebGL-based 3D visualizer in Julia
2424
+ [PlotlyJS.jl](https://github.com/sglyon/PlotlyJS.jl) - Julia library for plotting with plotly.js
2525
+ [Julia Tetris](http://juliatetris.com)
26+
27+
Web Artifacts
28+
[bundle.tar.gz](https://github.com/pankgeorg/WebIO.jl/files/8111257/bundle.tar.gz)

deps/bundlepaths.jl

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using Pkg.TOML
2+
using Pkg.Artifacts
23

34
# Fix the NPM version for now
45
# Now that we're not distributing Jupyter stuff via NPM, I'd rather just check
@@ -50,8 +51,14 @@ function download_js_bundles()
5051
end
5152

5253
mkpath(BUNDLES_PATH)
53-
download_bundle("core", CORE_BUNDLE_PATH, CORE_BUNDLE_URL)
54-
download_bundle("generic-http", GENERIC_HTTP_BUNDLE_PATH, GENERIC_HTTP_BUNDLE_URL)
55-
download_bundle("mux", MUX_BUNDLE_PATH, MUX_BUNDLE_URL)
56-
download_bundle("blink", BLINK_BUNDLE_PATH, BLINK_BUNDLE_URL)
54+
bundle_artifact_path = artifact"web"
55+
for asset in readdir(bundle_artifact_path)
56+
@debug("Copying", bundle_artifact_path, asset, BUNDLES_PATH)
57+
cp(joinpath(bundle_artifact_path, asset), joinpath(BUNDLES_PATH, asset); force = true)
58+
end
59+
# These commands are probably still useful if you want to create the artifact.
60+
# download_bundle("core", CORE_BUNDLE_PATH, CORE_BUNDLE_URL)
61+
# download_bundle("generic-http", GENERIC_HTTP_BUNDLE_PATH, GENERIC_HTTP_BUNDLE_URL)
62+
# download_bundle("mux", MUX_BUNDLE_PATH, MUX_BUNDLE_URL)
63+
# download_bundle("blink", BLINK_BUNDLE_PATH, BLINK_BUNDLE_URL)
5764
end

0 commit comments

Comments
 (0)