aboutsummaryrefslogtreecommitdiff
path: root/yomichan
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-12-29 12:28:02 +0100
committerlonkaars <loek@pipeframe.xyz>2022-12-29 12:28:02 +0100
commit2a03e5b1ea0a47ed1ba4d9f7c270588c1b01543d (patch)
tree1f684b9a4657348caf1c3b3a88c9ee9735e0c90f /yomichan
parent37f66d21ceffbd053447d9f6e64fc3912b5b0db1 (diff)
update yomichan readme and add target for patched zip
Diffstat (limited to 'yomichan')
-rw-r--r--yomichan/.gitignore1
-rw-r--r--yomichan/makefile5
-rw-r--r--yomichan/readme.md22
3 files changed, 26 insertions, 2 deletions
diff --git a/yomichan/.gitignore b/yomichan/.gitignore
index 660bfdd..547de8d 100644
--- a/yomichan/.gitignore
+++ b/yomichan/.gitignore
@@ -1,3 +1,4 @@
yomichan-settings-*.json
yomichan
yomichan-chrome.zip
+yomichan-chrome-patched.zip
diff --git a/yomichan/makefile b/yomichan/makefile
index e00dc57..c4bd45e 100644
--- a/yomichan/makefile
+++ b/yomichan/makefile
@@ -41,6 +41,9 @@ patch:
ln -sf search-patched.html yomichan/search.html
ln -sf manifest-patched.json yomichan/manifest.json
+yomichan-chrome-patched.zip: yomichan patch
+ zip -qr $@ $<
+
clean:
- $(RM) -r sentence-export.min.js yomichan yomichan-chrome.zip
+ $(RM) -r sentence-export.min.js yomichan yomichan-chrome.zip yomichan-chrome-patched.zip
diff --git a/yomichan/readme.md b/yomichan/readme.md
index 42774ad..e82bb00 100644
--- a/yomichan/readme.md
+++ b/yomichan/readme.md
@@ -3,10 +3,30 @@
## custom css
this is just a custom theme, and can be easily installed by pasting the
-contents of custom.css into yomichan's settings.
+contents of [custom.css](custom.css) into yomichan's settings.
## sentence export
this patches the yomichan plugin files to add an export button to the search
bar for copying a sentence with furigana into my custom anki card template.
+![new copy button in yomichan search bar](../assets/copy-button-yomichan.png)
+![copied sentence in anki](../assets/copy-button-anki.png)
+
+### set-up
+
+to download the latest yomichan version and patch it, leaving all files exposed
+for later updating (unpacked extension), run the following command:
+
+```
+make patch
+```
+
+to patch yomichan and convert it back to a zip (packed extension, non-signed,
+for use with kiwi browser), run:
+
+```
+make yomichan-chrome-patched.zip
+```
+
+if you want to update the patch or zip, replace `make` with `make -B`.