mirror of
				https://github.com/bestnite/bilinovel-downloader.git
				synced 2025-10-31 19:00:34 +00:00 
			
		
		
		
	Adds a `go install` hook to `.goreleaser.yaml` to ensure the `templ` binary is installed and up-to-date before `templ generate` is executed. This prevents potential build failures in CI/CD environments where `templ` might not be pre-installed or could be an outdated version, making the release process more robust and self-contained.
		
			
				
	
	
		
			47 lines
		
	
	
		
			878 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
		
			878 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| version: 2
 | |
| project_name: bilinovel-downloader
 | |
| before:
 | |
|   hooks:
 | |
|     - go install github.com/a-h/templ/cmd/templ@latest
 | |
|     - templ generate
 | |
| builds:
 | |
|   - env:
 | |
|       - CGO_ENABLED=0
 | |
|     goos:
 | |
|       - windows
 | |
|       - linux
 | |
|       - darwin
 | |
|     goarch:
 | |
|       - amd64
 | |
|       - arm64
 | |
|       - "386"
 | |
|     ldflags:
 | |
|       - -s -w -X bilinovel-downloader/cmd.Version={{ .Version }}
 | |
|     flags:
 | |
|       - -trimpath
 | |
| archives:
 | |
|   - formats: ["tar.gz"]
 | |
|     format_overrides:
 | |
|       - formats: ["zip"]
 | |
|         goos: windows
 | |
|     wrap_in_directory: true
 | |
| release:
 | |
|   draft: true
 | |
| upx:
 | |
|   - enabled: true
 | |
|     compress: best
 | |
| 
 | |
| nfpms:
 | |
|   - id: bilinovel-downloader
 | |
|     homepage: https://github.com/bestnite/bilinovel-downloader
 | |
|     maintainer: Nite <admin@nite07.com>
 | |
|     license: "MIT"
 | |
|     formats:
 | |
|       - apk
 | |
|       - deb
 | |
|       - rpm
 | |
|       - termux.deb
 | |
|       - archlinux
 | |
|     provides:
 | |
|       - bilinovel-downloader
 |