All checks were successful
		
		
	
	Test / Create distribution (push) Successful in 33s
				
			Test / Sandbox (push) Successful in 2m9s
				
			Test / Hakurei (push) Successful in 3m5s
				
			Test / Hpkg (push) Successful in 4m4s
				
			Test / Sandbox (race detector) (push) Successful in 4m9s
				
			Test / Hakurei (race detector) (push) Successful in 4m46s
				
			Test / Flake checks (push) Successful in 1m30s
				
			These names are less ambiguous and should be understandable without reading the source code. Signed-off-by: Ophestra <cat@gensokyo.uk>
		
			
				
	
	
		
			21 lines
		
	
	
		
			701 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			701 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/sh -e
 | |
| cd "$(dirname -- "$0")/.."
 | |
| VERSION="${HAKUREI_VERSION:-untagged}"
 | |
| pname="hakurei-${VERSION}"
 | |
| out="dist/${pname}"
 | |
| 
 | |
| mkdir -p "${out}"
 | |
| cp -v "README.md" "dist/hsurc.default" "dist/install.sh" "${out}"
 | |
| cp -rv "dist/comp" "${out}"
 | |
| 
 | |
| go generate ./...
 | |
| go build -trimpath -v -o "${out}/bin/" -ldflags "-s -w -buildid= -extldflags '-static'
 | |
|   -X hakurei.app/internal.buildVersion=${VERSION}
 | |
|   -X hakurei.app/internal.hakureiPath=/usr/bin/hakurei
 | |
|   -X hakurei.app/internal.hsuPath=/usr/bin/hsu
 | |
|   -X main.hakureiPath=/usr/bin/hakurei" ./...
 | |
| 
 | |
| rm -f "./${out}.tar.gz" && tar -C dist -czf "${out}.tar.gz" "${pname}"
 | |
| rm -rf "./${out}"
 | |
| (cd dist && sha512sum "${pname}.tar.gz" > "${pname}.tar.gz.sha512")
 |