From 3238e2a9eb10cef50aeea2e4f2ddb89ce3e877da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=BE=85=E0=BC=BB=20=C7=AC=C9=80=C4=A7=20=E0=BC=84?= =?UTF-8?q?=E0=BC=86=E0=BD=89?= Date: Sun, 27 Oct 2019 14:04:41 +0100 Subject: Update readme with update instructions --- README.md | 39 ++++++++++++++++++++++++++++++++++----- 1 file changed, 34 insertions(+), 5 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 1204a42..9ffa3f0 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,39 @@ -cookieclicker -============= +# cookieclicker - + The original game can be found at http://orteil.dashnet.org/cookieclicker/ -This copy for, errrr, like, educational purpose. +This mirror for, errrr, like, educational purpose, either to download for your own offline education or to be played online from http://ozh.github.io/cookieclicker/ if you cannot "educate" yourself on the original URL -Download a copy of this if you want to "educate" yourself offline, or go to http://ozh.github.io/cookieclicker/ if you cannot "educate" yourself on the original URL. +### How to update + +If the original game updates, here is how you can update the mirror: + +#### 1. Fetch all new images : + +from the `/img/` directory : + +* `wget --convert-links -O index.html http://orteil.dashnet.org/cookieclicker/img/` +* `grep -o 'href="[^/?"]*' index.html | sed 's/href="//' | sed 's/Thumbs.db//' | sed '/^[[:space:]]*$/d'> list.txt` +* `wget -N -i list.txt -B http://orteil.dashnet.org/cookieclicker/img/` + +#### 2. Fetch all new sounds : + +Similarly, from the `/snd/` directory : + +* `wget --convert-links -O index.html http://orteil.dashnet.org/cookieclicker/snd/` +* `grep -o 'href="[^/?"]*' index.html | sed 's/href="//' | sed 's/Thumbs.db//' | sed '/^[[:space:]]*$/d'> 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 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 `