Skip to content

Commit

Permalink
Merge branch 'master' into ci/add-linux-aarch64-binary-to-release
Browse files Browse the repository at this point in the history
  • Loading branch information
mrexox authored Dec 23, 2024
2 parents 0a34b83 + f3ab494 commit c89d972
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 14 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,6 @@ jobs:
with:
fetch-depth: 0

- uses: actions/download-artifact@v4
with:
name: dist
- run: tar -xvf dist.tar

- name: Update AUR package
run: |
pacman -Syu --noconfirm
Expand Down
5 changes: 0 additions & 5 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,6 @@ archives:
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
source:
enabled: true
name_template: "{{ .ProjectName }}_source"
format: "tar.gz"

checksum:
name_template: "{{ .ProjectName }}_checksums.txt"
algorithm: sha256
Expand Down
22 changes: 22 additions & 0 deletions docs/mdbook/configuration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,28 @@ Lefthook also merges an extra config with the name `lefthook-local`. All support
- [`exclude_tags`](./exclude_tags.md)
- [`skip`](./skip.md)
- [`only`](./only.md)
- [`jobs`](./jobs.md)
- [`name`](./name.md)
- [`run`](./run.md)
- [`script`](./script.md)
- [`runner`](./runner.md)
- [`group`](./group.md)
- [`parallel`](./parallel.md)
- [`piped`](./piped.md)
- [`jobs`](./jobs.md)
- [`skip`](./skip.md)
- [`only`](./only.md)
- [`tags`](./tags.md)
- [`glob`](./glob.md)
- [`files`](./files.md)
- [`file_types`](./file_types.md)
- [`env`](./env.md)
- [`root`](./root.md)
- [`exclude`](./exclude.md)
- [`fail_text`](./fail_text.md)
- [`stage_fixed`](./stage_fixed.md)
- [`interactive`](./interactive.md)
- [`use_stdin`](./use_stdin.md)
- [`commands`](./Commands.md)
- [`run`](./run.md)
- [`skip`](./skip.md)
Expand Down
2 changes: 1 addition & 1 deletion packaging/aur/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pkgrel=1
arch=('x86_64' 'aarch64')
url="https://github.com/evilmartians/lefthook"
license=('MIT')
makedepends=('go>=1.21' 'rsync')
makedepends=('go>=1.23')
source=("https://github.com/evilmartians/lefthook/archive/v${pkgver}.tar.gz")
sha256sums=('{{ sha256sum }}')

Expand Down
7 changes: 4 additions & 3 deletions packaging/pack.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

require "fileutils"
require "digest"
require "open-uri"

VERSION = "1.10.0"

Expand Down Expand Up @@ -169,17 +170,17 @@ def publish_aur
pkgbuild_dest = File.join(aur_repo, "PKGBUILD")
cp(pkgbuild_source, pkgbuild_dest, verbose: true)

cd(aur_repo)

sha256 = Digest::SHA256.new
File.open(File.join(DIST, 'lefthook_source.tar.gz'), 'rb') do |file|
URI.open("https://github.com/evilmartians/lefthook/archive/v#{VERSION}.tar.gz") do |file|
while chunk = file.read(1024) # Read the file in chunks
sha256.update(chunk)
end
end

sha256sum = sha256.hexdigest
replace_in_file(pkgbuild_dest, /{{ sha256sum }}/, sha256sum)

cd(aur_repo)
system("makepkg --printsrcinfo > .SRCINFO")
system("makepkg")
system("makepkg --install")
Expand Down

0 comments on commit c89d972

Please sign in to comment.