diff options
| author | Ozh <ozh@ozh.org> | 2022-04-24 12:57:37 +0200 |
|---|---|---|
| committer | Ozh <ozh@ozh.org> | 2022-04-24 12:57:37 +0200 |
| commit | 7a23770be016d581d87ba8d1cfafe7bad5eb3da4 (patch) | |
| tree | e25e4830d5e7ecf63f3685c96680c4c634fc01ce /README.md | |
| parent | d5536bb2a5c11db3fba41e5db86ac52057e541a9 (diff) | |
Update to 2.091
Fixes #46
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 16 |
1 files changed, 11 insertions, 5 deletions
@@ -12,27 +12,33 @@ If the original game updates, here is how you can update the mirror: #### 1. Fetch all new images : -from the `/img/` directory : +From the root, +* `cd img/` * `wget --convert-links -O index.html http://orteil.dashnet.org/cookieclicker/img/` -* `grep -v PARENTDIR index.html | grep -o '/img/*[a-zA-Z]*.*"' | sed 's/\/img\///' | sed 's/"//' >list.txt` +* `grep -v PARENTDIR index.html | grep -o '<a href=".*">' | sed 's/<a href="//' | sed 's/">//' > list.txt` * `wget -N -i list.txt -B http://orteil.dashnet.org/cookieclicker/img/` #### 2. Fetch all new sounds : -Similarly, from the `/snd/` directory : +Similarly : +* `cd snd/` * `wget --convert-links -O index.html http://orteil.dashnet.org/cookieclicker/snd/` -* `grep -v PARENTDIR index.html | grep -o '/snd/*[a-zA-Z]*.*"' | sed 's/\/snd\///' | sed 's/"//' >list.txt` +* `grep -v PARENTDIR index.html | grep -o '<a href=".*">' | sed 's/<a href="//' | sed 's/">//' > list.txt` * `wget -N -i list.txt -B http://orteil.dashnet.org/cookieclicker/snd/` #### 3. Update `js` and `html` files : From the root directory : +* Fetch the updated `index.html` file: `wget -O index.html http://orteil.dashnet.org/cookieclicker/` +* Fetch the updated `style.css` file: `wget -O style.css http://orteil.dashnet.org/cookieclicker/style.css` * Fetch updated `js` files : `wget -N -i list.txt -B http://orteil.dashnet.org/cookieclicker/` -* Fetch the updated `index.html` file * Scan `index.html` for any new `<script src` and also `main.js` for any new local javascript (eg `Game.last.minigameUrl`) +* In `main.js` there is a call to a remote script we need to modify: + * Look for `ajax('/patreon/grab.php'` and replace it with `ajax('grab.txt'` + * In the root: `wget -O grab.txt http://orteil.dashnet.org/patreon/grab.php` #### 4. Report update here :) |