mirror of
https://github.com/Yash-Handa/logo-ls.git
synced 2026-08-27 10:12:45 -05:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
601e3567d7 | ||
|
|
13a45eb843 | ||
|
|
e0b7546408 | ||
|
|
1b719af25b | ||
|
|
8606cb53e0 | ||
|
|
7e1e31f87f |
@@ -10,8 +10,8 @@ echo -e "\`\`\`" >> HELP.md
|
||||
exec git add HELP.md
|
||||
|
||||
# Update logo-ls.1.gz
|
||||
help2man -N -I logo-ls.h2m -o logo-ls.1 ./logo-ls
|
||||
gzip -f logo-ls.1
|
||||
exec help2man -N -I logo-ls.h2m -o logo-ls.1 ./logo-ls
|
||||
exec gzip -f logo-ls.1
|
||||
exec git add logo-ls.1.gz
|
||||
|
||||
exit 0
|
||||
|
||||
+35
-35
@@ -1,43 +1,43 @@
|
||||
#!/bin/sh
|
||||
# #!/bin/sh
|
||||
|
||||
R_NAME=$1
|
||||
R_URL=$2
|
||||
# R_NAME=$1
|
||||
# R_URL=$2
|
||||
|
||||
error_exit()
|
||||
{
|
||||
if [ "$?" != "0" ]; then
|
||||
nl=$'\n'
|
||||
echo "$1""$nl""$2""$nl""$nl""Aborting push to ""$R_NAME"" (""$R_URL"")" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
# error_exit()
|
||||
# {
|
||||
# if [ "$?" != "0" ]; then
|
||||
# nl=$'\n'
|
||||
# echo "$1""$nl""$2""$nl""$nl""Aborting push to ""$R_NAME"" (""$R_URL"")" 1>&2
|
||||
# exit 1
|
||||
# fi
|
||||
# }
|
||||
|
||||
# Build binary for variety of arch
|
||||
# linux amd64
|
||||
ERROR=$(go env -w GOOS=linux GOARCH=amd64 2>&1 > /dev/null)
|
||||
error_exit "Cannot set GOOS=linux and GOARCH=amd64:" "$ERROR"
|
||||
ERROR=$(go build -o build/logo-ls-linux-amd64 2>&1 > /dev/null)
|
||||
error_exit "Cannot build logo-ls-linux-amd64:" "$ERROR"
|
||||
# # Build binary for variety of arch
|
||||
# # linux amd64
|
||||
# ERROR=$(go env -w GOOS=linux GOARCH=amd64 2>&1 > /dev/null)
|
||||
# error_exit "Cannot set GOOS=linux and GOARCH=amd64:" "$ERROR"
|
||||
# ERROR=$(go build -o build/logo-ls-linux-amd64 2>&1 > /dev/null)
|
||||
# error_exit "Cannot build logo-ls-linux-amd64:" "$ERROR"
|
||||
|
||||
# linux arm64
|
||||
ERROR=$(go env -w GOOS=linux GOARCH=arm64 2>&1 > /dev/null)
|
||||
error_exit "Cannot set GOOS=linux and GOARCH=arm64:" "$ERROR"
|
||||
ERROR=$(go build -o build/logo-ls-linux-arm64 2>&1 > /dev/null)
|
||||
error_exit "Cannot build logo-ls-linux-arm64:" "$ERROR"
|
||||
# # linux arm64
|
||||
# ERROR=$(go env -w GOOS=linux GOARCH=arm64 2>&1 > /dev/null)
|
||||
# error_exit "Cannot set GOOS=linux and GOARCH=arm64:" "$ERROR"
|
||||
# ERROR=$(go build -o build/logo-ls-linux-arm64 2>&1 > /dev/null)
|
||||
# error_exit "Cannot build logo-ls-linux-arm64:" "$ERROR"
|
||||
|
||||
# linux 386
|
||||
ERROR=$(go env -w GOOS=linux GOARCH=386 2>&1 > /dev/null)
|
||||
error_exit "Cannot set GOOS=linux and GOARCH=386:" "$ERROR"
|
||||
ERROR=$(go build -o build/logo-ls-linux-386 2>&1 > /dev/null)
|
||||
error_exit "Cannot build logo-ls-linux-386:" "$ERROR"
|
||||
# # linux 386
|
||||
# ERROR=$(go env -w GOOS=linux GOARCH=386 2>&1 > /dev/null)
|
||||
# error_exit "Cannot set GOOS=linux and GOARCH=386:" "$ERROR"
|
||||
# ERROR=$(go build -o build/logo-ls-linux-386 2>&1 > /dev/null)
|
||||
# error_exit "Cannot build logo-ls-linux-386:" "$ERROR"
|
||||
|
||||
# darwin amd64
|
||||
ERROR=$(go env -w GOOS=darwin GOARCH=amd64 2>&1 > /dev/null)
|
||||
error_exit "Cannot set GOOS=darwin and GOARCH=amd64:" "$ERROR"
|
||||
ERROR=$(go build -o build/logo-ls-darwin-amd64 2>&1 > /dev/null)
|
||||
error_exit "Cannot build logo-ls-darwin-amd64:" "$ERROR"
|
||||
# # darwin amd64
|
||||
# ERROR=$(go env -w GOOS=darwin GOARCH=amd64 2>&1 > /dev/null)
|
||||
# error_exit "Cannot set GOOS=darwin and GOARCH=amd64:" "$ERROR"
|
||||
# ERROR=$(go build -o build/logo-ls-darwin-amd64 2>&1 > /dev/null)
|
||||
# error_exit "Cannot build logo-ls-darwin-amd64:" "$ERROR"
|
||||
|
||||
# reset env to default
|
||||
go env -u GOOS GOARCH
|
||||
# # reset env to default
|
||||
# go env -u GOOS GOARCH
|
||||
|
||||
exit 0
|
||||
# exit 0
|
||||
|
||||
+2
-1
@@ -22,4 +22,5 @@ build/
|
||||
dist
|
||||
|
||||
# env stuff
|
||||
*.env
|
||||
*.env
|
||||
.gh_token
|
||||
+23
-1
@@ -2,7 +2,7 @@
|
||||
# Make sure to check the documentation at http://goreleaser.com
|
||||
|
||||
env_files:
|
||||
github_token: .gh_token.env
|
||||
github_token: '{{ .Env.PWD }}.gh_token'
|
||||
|
||||
project_name: logo-ls
|
||||
|
||||
@@ -66,6 +66,10 @@ signs:
|
||||
args: ["-u", "0xD9498B225223344C0205FDF528182066BCACCCB2", "--output", "${signature}", "--detach-sign", "${artifact}"]
|
||||
artifacts: checksum
|
||||
|
||||
release:
|
||||
github:
|
||||
owner: Yash-Handa
|
||||
name: logo-ls
|
||||
|
||||
snapshot:
|
||||
name_template: "{{ .Tag }}-next"
|
||||
@@ -77,3 +81,21 @@ changelog:
|
||||
- '^docs:'
|
||||
- '^test:'
|
||||
- '(?i)update Readme.md'
|
||||
|
||||
nfpms:
|
||||
-
|
||||
file_name_template: '{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
|
||||
package_name: logo-ls
|
||||
homepage: https://github.com/Yash-Handa/logo-ls
|
||||
description: ls command with icons and git integration. Written in Golang
|
||||
maintainer: Yash Handa <yashhanda7@yahoo.com>
|
||||
license: MIT
|
||||
formats:
|
||||
- deb
|
||||
- rpm
|
||||
dependencies:
|
||||
- git
|
||||
recommends:
|
||||
- golang
|
||||
files:
|
||||
"logo-ls.1.gz": "/usr/share/man/man1/logo-ls.1.gz"
|
||||
Binary file not shown.
@@ -142,7 +142,7 @@ func main() {
|
||||
|
||||
// if f_V is provided version will be printed and exit(0)
|
||||
if *f_V {
|
||||
fmt.Printf("logo-ls %s\nCopyright (c) 2020 Yash Handa\nLicense MIT <https://opensource.org/licenses/MIT>.\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.\n", "v1.3.0")
|
||||
fmt.Printf("logo-ls %s\nCopyright (c) 2020 Yash Handa\nLicense MIT <https://opensource.org/licenses/MIT>.\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.\n", "v1.3.3")
|
||||
fmt.Println("\nWritten by Yash Handa")
|
||||
os.Exit(osExitCode)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user