Skip to content

Commit

Permalink
Update webR to v0.4.1 (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
georgestagg authored Aug 6, 2024
1 parent e23bac6 commit a0ba9ec
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ jobs:
AWS_CLOUDFRONT_DISTRIBUTION_ID: "E2SN9UWE8YY9EG"
run: |
pip install awscli
gzip -k _shinylive/r/shinylive/webr/library.data
gzip -k _shinylive/r/shinylive/webr/R.bin.wasm
aws s3 sync _shinylive s3://shinylive.io --delete
aws s3 cp --exclude "*" --include "*.data" --include "*.so" --recursive --content-type="application/wasm" --metadata-directive="REPLACE" s3://shinylive.io/r/shinylive/webr/ s3://shinylive.io/r/shinylive/webr/
aws s3 cp --exclude "*" --include "*.js.metadata" --recursive --content-type="text/javascript" --metadata-directive="REPLACE" s3://shinylive.io/r/shinylive/webr/ s3://shinylive.io/r/shinylive/webr/
aws s3 cp --content-encoding="gzip" --content-type="application/wasm" --metadata-directive="REPLACE" _shinylive/r/shinylive/webr/library.data.gz s3://shinylive.io/r/shinylive/webr/library.data
aws s3 cp --content-encoding="gzip" --content-type="application/wasm" --metadata-directive="REPLACE" _shinylive/r/shinylive/webr/R.bin.wasm.gz s3://shinylive.io/r/shinylive/webr/R.bin.wasm
aws cloudfront create-invalidation --distribution-id $AWS_CLOUDFRONT_DISTRIBUTION_ID --paths "/*"
# =====================================================
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ $(BUILD_DIR)/shinylive/webr: webr
webr:
mkdir -p $(BUILD_DIR)/shinylive/webr
cp -r node_modules/webr/dist/. $(BUILD_DIR)/shinylive/webr
curl --fail -L https://github.com/r-wasm/shiny/releases/download/v$(R_SHINY_VERSION)/library.data -o $(BUILD_DIR)/shinylive/webr/library.data
curl --fail -L https://github.com/r-wasm/shiny/releases/download/v$(R_SHINY_VERSION)/library.data.gz -o $(BUILD_DIR)/shinylive/webr/library.data.gz
curl --fail -L https://github.com/r-wasm/shiny/releases/download/v$(R_SHINY_VERSION)/library.js.metadata -o $(BUILD_DIR)/shinylive/webr/library.js.metadata
# FIXME: GitHub Pages does not cache Partial Content downloads. Here, we reduce
# the damage by forcing entire file downloads with Emscripten's lazy filesystem.
Expand Down
37 changes: 26 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"tsx": "^4.7.0",
"typescript": "^5.3.3",
"vscode-languageserver-protocol": "^3.17.5",
"webr": "^0.4.0",
"webr": "^0.4.1",
"xterm": "^5.3.0",
"xterm-addon-fit": "^0.7.0",
"xterm-readline": "^1.1.1"
Expand Down

0 comments on commit a0ba9ec

Please sign in to comment.