From ba69308096b695c155e7104f4b09a8ef01943197 Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Mon, 25 Nov 2024 11:47:01 +0100 Subject: [PATCH 1/3] Add Changelog.md --- Changelog.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Changelog.md diff --git a/Changelog.md b/Changelog.md new file mode 100644 index 0000000..9035248 --- /dev/null +++ b/Changelog.md @@ -0,0 +1,5 @@ +# Zim2Waj 0.1.0 + +This is the initial release. + +`zim2waj` is functionnal and can split image/video into a separated pack. From b0e0a1be513e7cfc716bbfc1ec6db8c61841c87e Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Mon, 25 Nov 2024 11:53:21 +0100 Subject: [PATCH 2/3] Add LICENSE file --- LICENSE-MIT | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 LICENSE-MIT diff --git a/LICENSE-MIT b/LICENSE-MIT new file mode 100644 index 0000000..ed73a3e --- /dev/null +++ b/LICENSE-MIT @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2022 Matthieu Gautier + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USEOR OTHER DEALINGS IN THE +SOFTWARE. From f7a84bd2ba0ca5b6d5e64d8dbbfcab55aa2d0016 Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Mon, 25 Nov 2024 11:56:56 +0100 Subject: [PATCH 3/3] Download libzim in check_release CI --- .github/workflows/check_release.yml | 15 ++++++++++++++- .github/workflows/release.yml | 2 ++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check_release.yml b/.github/workflows/check_release.yml index 11554f3..4077900 100644 --- a/.github/workflows/check_release.yml +++ b/.github/workflows/check_release.yml @@ -125,8 +125,21 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Download libzim + run: | + VERSION="9.2.1" + ARCHIVE_NAME="libzim_linux-x86_64-${VERSION}" + # Publish must work on a clean directory. Let's dl libzim in target directory as it is git ignored + mkdir target && cd target + wget "https://download.openzim.org/release/libzim/${ARCHIVE_NAME}.tar.gz" + tar xf ${ARCHIVE_NAME}.tar.gz + ARCHIVE_PATH=$(pwd)/${ARCHIVE_NAME} + LIBZIM_LIB=${ARCHIVE_PATH}/lib/x86_64-linux-gnu + echo "LIBZIM_LIB=$LIBZIM_LIB" >> $GITHUB_ENV + echo "LIBZIM_INCLUDE=${ARCHIVE_PATH}/include" >> $GITHUB_ENV + - name: Test Publish env: CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} run: | - cargo publish --dry-run -p zim2waj + cargo publish --dry-run diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 57bd82b..aeb0cbc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,6 +19,8 @@ jobs: run: | VERSION="9.2.1" ARCHIVE_NAME="libzim_linux-x86_64-${VERSION}" + # Publish must work on a clean directory. Let's dl libzim in target directory as it is git ignored + mkdir target && cd target wget "https://download.openzim.org/release/libzim/${ARCHIVE_NAME}.tar.gz" tar xf ${ARCHIVE_NAME}.tar.gz ARCHIVE_PATH=$(pwd)/${ARCHIVE_NAME}