Skip to content

Commit

Permalink
2.0.1 work - fidelity + build improvements (#327)
Browse files Browse the repository at this point in the history
Fidelity improvements (via wabac.js and wombat):
- fixes ebay carousel #326 (via wombat)
- partial fix to error page escaping #323 (via wabac)
- fixes to reddit pages #317 
- fixes to twitter/x replay (via wabac / wombat)

Build improvements:
- run mkdocs gh-deploy --force in gh action, instead of publish-docs to avoid accidental updates
- auto install ruffle from download script, remove from git, add 'update-ruffle' script
- update to latest ruffle which doesn't inject setImmeidate/ clearImmediate to avoid interference with certain sites, fixing fidelity on some sites (including twitter/x)
- remove unused src/sw.ts
- deps: wabac.js to 2.18.2

bump to 2.0.1
  • Loading branch information
ikreymer authored Jun 10, 2024
1 parent a56e312 commit 7229609
Show file tree
Hide file tree
Showing 11 changed files with 49 additions and 64 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/buildapp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ jobs:
**/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}

- name: Update Ruffle
run: yarn run update-ruffle

- name: Run Build
env:
APPLE_ID: ${{ secrets.APPLE_ID }}
Expand Down
13 changes: 12 additions & 1 deletion .github/workflows/site-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
paths:
- 'site/**'
- 'mkdocs/**'
- 'src/**'
- 'package.json'
- 'yarn.lock'

permissions:
contents: write
Expand All @@ -30,4 +33,12 @@ jobs:
with:
python-version: 3.x
- run: pip install -r mkdocs/requirements.txt
- run: yarn run publish-docs

- name: Update Ruffle
run: yarn run update-ruffle

- name: Build RWP + Docs
run: yarn run build-docs

- name: Publish to GH
run: cd mkdocs; mkdocs gh-deploy --force
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "replaywebpage",
"productName": "ReplayWeb.page",
"version": "2.0.0",
"version": "2.0.1",
"description": "Serverless Web Archive Replay",
"repository": "https://github.com/webrecorder/replayweb.page",
"homepage": "https://replayweb.page/",
Expand All @@ -12,7 +12,7 @@
"dependencies": {
"@fortawesome/fontawesome-free": "^5.15.4",
"@shoelace-style/shoelace": "^2.8.0",
"@webrecorder/wabac": "^2.18.0",
"@webrecorder/wabac": "^2.18.3",
"bulma": "^0.9.3",
"electron-log": "^4.4.1",
"electron-updater": "^5.3.0",
Expand Down Expand Up @@ -76,14 +76,14 @@
"build": "webpack --mode production && ./adblock/fetch-adblock.sh",
"build-dev": "webpack --mode development",
"build-docs": "yarn run build && cd mkdocs && ./copy-site.sh && mkdocs build",
"publish-docs": "yarn run build && cd mkdocs && ./copy-site.sh && mkdocs gh-deploy --force",
"start-prod": "http-server -p 9990 --cors",
"start-docs-prod": "yarn run build-docs && cd mkdocs/_genhtml && http-server -p 9990 --cors",
"start-dev": "webpack serve --mode development",
"start-docs": "yarn run build-dev && cd mkdocs && ./copy-site.sh && mkdocs serve",
"start-electron": "NODE_ENV=development electron ./dist/electron.js $1",
"test-start-embed": "cd tests/embed; http-server -p 8020",
"test-start-sandbox": "cd tests/embed/sandbox; http-server -p 8030",
"update-ruffle": "./ruffle/download-latest-ruffle.sh",
"pack": "CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder --publish never",
"pack-signed": "electron-builder",
"dist": "yarn run build && yarn run pack",
Expand Down
Binary file removed ruffle/35bdd3b1a72b1704b5f5.wasm
Binary file not shown.
Binary file removed ruffle/932a995f8efbc8932dcc.wasm
Binary file not shown.
2 changes: 0 additions & 2 deletions ruffle/core.ruffle.2bdce3d13ee9db3415e5.js

This file was deleted.

2 changes: 0 additions & 2 deletions ruffle/core.ruffle.3cb02ac2f1dd5c9282e8.js

This file was deleted.

17 changes: 17 additions & 0 deletions ruffle/download-latest-ruffle.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

RUFFLE_DIR=$SCRIPT_DIR

SELFHOST_URL=$(curl "https://api.github.com/repos/ruffle-rs/ruffle/releases" | jq -r '.[0].assets[] | select(.name | contains("selfhosted")) | .browser_download_url')

echo "$SELFHOST_URL"

curl -L -o $RUFFLE_DIR/ruffle.zip "$SELFHOST_URL"

rm $RUFFLE_DIR/*.js $RUFFLE_DIR/*.wasm

cd $RUFFLE_DIR
unzip $RUFFLE_DIR/ruffle.zip *.js *.wasm

rm $RUFFLE_DIR/ruffle.zip
3 changes: 0 additions & 3 deletions ruffle/ruffle.js

This file was deleted.

39 changes: 0 additions & 39 deletions src/sw.ts

This file was deleted.

28 changes: 14 additions & 14 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1004,23 +1004,23 @@
resolved "https://registry.yarnpkg.com/@webpack-cli/serve/-/serve-2.0.5.tgz#325db42395cd49fe6c14057f9a900e427df8810e"
integrity sha512-lqaoKnRYBdo1UgDX8uF24AfGMifWK19TxPmM5FHc2vAGxrJ/qtyUyFBWoY1tISZdelsQ5fBcOusifo5o5wSJxQ==

"@webrecorder/wabac@^2.18.0":
version "2.18.0"
resolved "https://registry.yarnpkg.com/@webrecorder/wabac/-/wabac-2.18.0.tgz#6eafa51ffb53e785a9b7a36bd8c12cbf60f06cc2"
integrity sha512-tpZ7saCQMWcrbQrB7421ycfucKFFBRXg3OrTSPkk71FtGSQ8LFtmCPnpWWu/wJgWcnC7ka7CnIuaX3rW2A42oA==
"@webrecorder/wabac@^2.18.3":
version "2.18.3"
resolved "https://registry.yarnpkg.com/@webrecorder/wabac/-/wabac-2.18.3.tgz#eda195452a9964e8216fb0676d5da6cc69239dae"
integrity sha512-qmNLXky9QHpljt0EyEmcO6L2qFGG63mZbMYKso0MZZLFY3NeUf/ANafq9pWWm1Bw10+zoV6KRtHUin8gropccA==
dependencies:
"@peculiar/asn1-ecc" "^2.3.4"
"@peculiar/asn1-schema" "^2.3.3"
"@peculiar/x509" "^1.9.2"
"@webrecorder/wombat" "^3.7.3"
"@webrecorder/wombat" "^3.7.6"
acorn "^8.10.0"
auto-js-ipfs "^2.1.1"
base64-js "^1.5.1"
brotli "^1.3.3"
buffer "^6.0.3"
fast-xml-parser "^4.2.5"
hash-wasm "^4.9.0"
http-link-header "^1.1.0"
http-link-header "^1.1.3"
http-status-codes "^2.1.4"
idb "^7.1.1"
js-levenshtein "^1.1.6"
Expand All @@ -1033,10 +1033,10 @@
stream-browserify "^3.0.0"
warcio "^2.2.1"

"@webrecorder/wombat@^3.7.3":
version "3.7.3"
resolved "https://registry.yarnpkg.com/@webrecorder/wombat/-/wombat-3.7.3.tgz#21e83b5947664873219021163ded9bb698f333f4"
integrity sha512-+zkXDxo1Xr8D9OwURk247fWZiJeix8xB+3rRoYX7fD3yyw6+hwCYSD3pp95ZTfD73ailXjr1WKy+Xz/1CFq3Iw==
"@webrecorder/wombat@^3.7.6":
version "3.7.6"
resolved "https://registry.yarnpkg.com/@webrecorder/wombat/-/wombat-3.7.6.tgz#e52a1bcfccd0150517989bc4310a03730a1f74e7"
integrity sha512-SA34StdLc+D60Aa8bZ2I+8PLjody1B/j9DmZ2zyXg/EZuPLSG4ec6XvMzq8QYuoGvD+hkjAf0YlUGxmI/viIcw==
dependencies:
warcio "^2.2.0"

Expand Down Expand Up @@ -3008,10 +3008,10 @@ http-errors@~1.6.2:
setprototypeof "1.1.0"
statuses ">= 1.4.0 < 2"

http-link-header@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/http-link-header/-/http-link-header-1.1.0.tgz#a1ca87efdbcb7778d8d0d4525de1e6964ec1f129"
integrity sha512-pj6N1yxOz/ANO8HHsWGg/OoIL1kmRYvQnXQ7PIRpgp+15AnEsRH8fmIJE6D1OdWG2Bov+BJHVla1fFXxg1JbbA==
http-link-header@^1.1.3:
version "1.1.3"
resolved "https://registry.yarnpkg.com/http-link-header/-/http-link-header-1.1.3.tgz#b367b7a0ad1cf14027953f31aa1df40bb433da2a"
integrity sha512-3cZ0SRL8fb9MUlU3mKM61FcQvPfXx2dBrZW3Vbg5CXa8jFlK8OaEpePenLe1oEXQduhz8b0QjsqfS59QP4AJDQ==

http-parser-js@>=0.5.1:
version "0.5.3"
Expand Down

0 comments on commit 7229609

Please sign in to comment.