Skip to content

Commit 91c73b1

Browse files
committed
Use Pkg.Artifacts
1 parent 91156f8 commit 91c73b1

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
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"

deps/build.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ macro meh(expr)
1515
end
1616
end
1717
end
18-
18+
1919
try
2020
@info "Attempting to uninstall old Jupyter integrations (it's probably okay if error messages appear below this point)"
2121
jupyter_config_dir = get(ENV, "JUPYTER_CONFIG_DIR", joinpath(homedir(), ".jupyter"))

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+
@info("Copying", bundle_artifact_path, asset, BUNDLES_PATH)
57+
cp(joinpath(bundle_artifact_path, asset), joinpath(BUNDLES_PATH, asset))
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)