-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
examples/gotdict-convert: Prefer the version with images (#1)
Base64 images have been fixed in 4.20.14601. See #1.
- Loading branch information
Showing
2 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -169,24 +169,24 @@ steps: | |
commands: | ||
- git clone https://github.com/wjdp/gotdict | ||
- git -C gotdict checkout 6b4d6cdbb1f5d899d418783ab842f487aafa79ec | ||
- ./gotdict-convert -o gotdict.df | ||
- ./gotdict-convert -o gotdict.img.df --images | ||
- ./gotdict-convert -o gotdict.df --images | ||
- ./gotdict-convert -o gotdict.noimg.df | ||
- ls -lah gotdict.df | ||
- name: generate | ||
image: golang:1.14-buster | ||
commands: | ||
- go run ./cmd/dictgen -Iremove -o dicthtml-gt.zip gotdict.df | ||
- go run ./cmd/dictgen -Ibase64 -o dicthtml-gt.img.zip gotdict.img.df | ||
- ls -lah dicthtml-gt.zip | ||
- go run ./cmd/dictgen -Ibase64 -o dicthtml-gt.zip gotdict.df | ||
- go run ./cmd/dictgen -Iremove -o dicthtml-gt.noimg.zip gotdict.noimg.df | ||
- ls -lah dicthtml-gt*.zip | ||
- name: upload | ||
image: curlimages/curl | ||
entrypoint: ["/bin/bash"] | ||
commands: | ||
- "curl --no-progress-meter -F '[email protected]' 'https://api.anonfile.com/upload' | grep -Eo '\"full\": *\"[^\"]+' | cut -d'\"' -f4" | ||
- "curl --no-progress-meter -F '[email protected]' 'https://api.anonfile.com/upload' | grep -Eo '\"full\": *\"[^\"]+' | cut -d'\"' -f4" | ||
- "echo; echo 'Do not use the dictionaries with images below right now; nickel is currently too buggy with images.'" | ||
- "curl --no-progress-meter -F 'file=@gotdict.img.df' 'https://api.anonfile.com/upload' | grep -Eo '\"full\": *\"[^\"]+' | cut -d'\"' -f4" | ||
- "curl --no-progress-meter -F 'file=@dicthtml-gt.img.zip' 'https://api.anonfile.com/upload' | grep -Eo '\"full\": *\"[^\"]+' | cut -d'\"' -f4" | ||
- "echo; echo 'If you are using a firmware version older than 4.20.14601, use the version without images (they cause crashes with the in-book dictionary view) below.'" | ||
- "curl --no-progress-meter -F 'file=@gotdict.noimg.df' 'https://api.anonfile.com/upload' | grep -Eo '\"full\": *\"[^\"]+' | cut -d'\"' -f4" | ||
- "curl --no-progress-meter -F 'file=@dicthtml-gt.noimg.zip' 'https://api.anonfile.com/upload' | grep -Eo '\"full\": *\"[^\"]+' | cut -d'\"' -f4" | ||
|
||
trigger: | ||
event: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters