|
1 | 1 | using Pkg.TOML
|
| 2 | +using Pkg.Artifacts |
2 | 3 |
|
3 | 4 | # Fix the NPM version for now
|
4 | 5 | # Now that we're not distributing Jupyter stuff via NPM, I'd rather just check
|
@@ -50,8 +51,14 @@ function download_js_bundles()
|
50 | 51 | end
|
51 | 52 |
|
52 | 53 | 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) |
57 | 64 | end
|
0 commit comments