From 4321c5a5e86e4e20fd3f036ebb8acb19a57d130d Mon Sep 17 00:00:00 2001 From: taiyuuki Date: Sat, 22 Jun 2024 13:01:34 +0800 Subject: [PATCH] chore: release v0.1.1 --- .github/workflows/publish.yml | 30 ++++++++++++++++++++++++++++++ Cargo.lock | 10 +++++----- Cargo.toml | 4 ++-- README.md | 8 +++----- 4 files changed, 40 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..9ab41e0 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,30 @@ +name: "publish" + +on: + push: + branches: + - release + +jobs: + release: + name: release ${{ matrix.target }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + include: + - target: x86_64-pc-windows-gnu + archive: zip + - target: x86_64-unknown-linux-musl + archive: tar.gz tar.xz tar.zst + - target: x86_64-apple-darwin + archive: zip + steps: + - uses: actions/checkout@master + - name: Compile and release + uses: rust-build/rust-build.action@v1.4.5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + RUSTTARGET: ${{ matrix.target }} + ARCHIVE_TYPES: ${{ matrix.archive }} \ No newline at end of file diff --git a/Cargo.lock b/Cargo.lock index d5b0a88..59cab97 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -216,7 +216,7 @@ checksum = "3a68a4904193147e0a8dec3314640e6db742afd5f6e634f428a6af230d9b3591" [[package]] name = "ei-extractor" -version = "0.1.0" +version = "0.1.1" dependencies = [ "clap", "epub", @@ -370,9 +370,9 @@ checksum = "e4a24736216ec316047a1fc4252e27dabb04218aa4a3f37c6e7ddbf1f9782b54" [[package]] name = "once_cell" -version = "1.18.0" +version = "1.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d" +checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" [[package]] name = "parking_lot" @@ -589,9 +589,9 @@ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" [[package]] name = "scraper" -version = "0.18.1" +version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "585480e3719b311b78a573db1c9d9c4c1f8010c2dee4cc59c2efe58ea4dbc3e1" +checksum = "5b80b33679ff7a0ea53d37f3b39de77ea0c75b12c5805ac43ec0c33b3051af1b" dependencies = [ "ahash", "cssparser", diff --git a/Cargo.toml b/Cargo.toml index 89e8b63..3460561 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,13 +1,13 @@ [package] name = "ei-extractor" -version = "0.1.0" +version = "0.1.1" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] epub = "2.1.1" -scraper = "0.18.1" +scraper = "0.19.0" clap = "4.4.7" [package.metadata.scripts] diff --git a/README.md b/README.md index 71b53cd..9bc95c9 100644 --- a/README.md +++ b/README.md @@ -6,14 +6,12 @@ ei-extractor是一个命令行工具,用于从ePub漫画中提取图片,并 ## Download -- [Windows](../../releases/download/v0.1.0/ei-extractor.exe) - -```bash -curl https://github.com/taiyuuki/ei-extractor/releases/download/v0.1.0/ei-extractor.exe -o ei-extractor.exe -``` +- [Download](../../releases/download/latest) ## Usage +Example on Windows: + ```bash Usage: ei-extractor.exe