diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 798a9db..58d9fe1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -103,14 +103,14 @@ jobs: mkdir -p "${PKGDIR}/usr/bin" cp target/release/gitnapse "${PKGDIR}/usr/bin/gitnapse" - # Generate a minimal PKGBUILD-compatible package using bsdtar/makepkg structure - mkdir -p "${PKGDIR}/.PKGINFO" + # Generate .PKGINFO metadata file (must not be a directory) + BINSIZE="$(du -sb "${PKGDIR}/usr/bin/gitnapse" | cut -f1)" cat > "${PKGDIR}/.PKGINFO" << EOF - pkgname = gitnapse - pkgver = ${VERSION}-1 - arch = x86_64 - size = $(du -sb "${PKGDIR}/usr/bin/gitnapse" | cut -f1) - EOF +pkgname = gitnapse +pkgver = ${VERSION}-1 +arch = x86_64 +size = ${BINSIZE} +EOF asset="gitnapse-${RELEASE_TAG}-linux-arch-x86_64.pkg.tar.zst" bsdtar --zstd -cf "${asset}" -C "${PKGDIR}" . diff --git a/Cargo.toml b/Cargo.toml index e2f1a50..9f25cce 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "gitnapse" -version = "0.1.0" +version = "0.1.2" edition = "2024" description = "A TUI tool to browse and manage your GitHub repositories" license = "MIT"