mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 13:21:00 +02:00
Merge branch 'main' of github.com:schollz/croc
This commit is contained in:
commit
de9c54e57a
4 changed files with 15 additions and 18 deletions
27
.github/workflows/release.yml
vendored
27
.github/workflows/release.yml
vendored
|
@ -20,9 +20,9 @@ jobs:
|
||||||
go-version: '1.20'
|
go-version: '1.20'
|
||||||
- name: Build Windows 7
|
- name: Build Windows 7
|
||||||
run: |
|
run: |
|
||||||
GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -o croc.exe
|
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -tags netgo -ldflags '-H=windowsgui -extldflags "-static"' -o croc.exe
|
||||||
zip croc_${{ github.event.release.name }}_Windows7-64bit.zip croc.exe
|
zip croc_${{ github.event.release.name }}_Windows7-64bit.zip croc.exe
|
||||||
GOOS=windows GOARCH=386 go build -ldflags="-s -w" -o croc.exe
|
CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -tags netgo -ldflags '-H=windowsgui -extldflags "-static"' -o croc.exe
|
||||||
zip croc_${{ github.event.release.name }}_Windows7-32bit.zip croc.exe
|
zip croc_${{ github.event.release.name }}_Windows7-32bit.zip croc.exe
|
||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
|
@ -35,28 +35,25 @@ jobs:
|
||||||
cd .. && tar -czvf croc_${{ github.event.release.name }}_src.tar.gz croc-${{ github.event.release.name }}
|
cd .. && tar -czvf croc_${{ github.event.release.name }}_src.tar.gz croc-${{ github.event.release.name }}
|
||||||
- name: Build files
|
- name: Build files
|
||||||
run: |
|
run: |
|
||||||
GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -o croc.exe
|
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -tags netgo -ldflags '-H=windowsgui -extldflags "-static"' -o croc.exe
|
||||||
zip croc_${{ github.event.release.name }}_Windows-64bit.zip croc.exe
|
zip croc_${{ github.event.release.name }}_Windows-64bit.zip croc.exe
|
||||||
GOOS=windows GOARCH=386 go build -ldflags="-s -w" -o croc.exe
|
CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -tags netgo -ldflags '-H=windowsgui -extldflags "-static"' -o croc.exe
|
||||||
zip croc_${{ github.event.release.name }}_Windows-32bit.zip croc.exe
|
zip croc_${{ github.event.release.name }}_Windows-32bit.zip croc.exe
|
||||||
GOOS=windows GOARCH=arm go build -ldflags="-s -w" -o croc.exe
|
CGO_ENABLED=0 GOOS=windows GOARCH=arm go build -tags netgo -ldflags '-H=windowsgui -extldflags "-static"' -o croc.exe
|
||||||
zip croc_${{ github.event.release.name }}_Windows-ARM.zip croc.exe
|
zip croc_${{ github.event.release.name }}_Windows-ARM.zip croc.exe
|
||||||
GOOS=windows GOARCH=arm64 go build -ldflags="-s -w" -o croc.exe
|
CGO_ENABLED=0 GOOS=windows GOARCH=arm64 go build -tags netgo -ldflags '-H=windowsgui -extldflags "-static"' -o croc.exe
|
||||||
zip croc_${{ github.event.release.name }}_Windows-ARM64.zip croc.exe
|
zip croc_${{ github.event.release.name }}_Windows-ARM64.zip croc.exe
|
||||||
GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o croc
|
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -tags netgo -ldflags '-extldflags "-static"' -o croc
|
||||||
upx --brute croc
|
|
||||||
tar -czvf croc_${{ github.event.release.name }}_Linux-64bit.tar.gz croc
|
tar -czvf croc_${{ github.event.release.name }}_Linux-64bit.tar.gz croc
|
||||||
GOOS=linux GOARCH=386 go build -ldflags="-s -w" -o croc
|
CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -tags netgo -ldflags '-extldflags "-static"' -o croc
|
||||||
tar -czvf croc_${{ github.event.release.name }}_Linux-32bit.tar.gz croc
|
tar -czvf croc_${{ github.event.release.name }}_Linux-32bit.tar.gz croc
|
||||||
GOOS=linux GOARCH=arm go build -ldflags="-s -w" -o croc
|
CGO_ENABLED=0 GOOS=linux GOARCH=arm go build -tags netgo -ldflags '-extldflags "-static"' -o croc
|
||||||
upx --brute croc
|
|
||||||
tar -czvf croc_${{ github.event.release.name }}_Linux-ARM.tar.gz croc
|
tar -czvf croc_${{ github.event.release.name }}_Linux-ARM.tar.gz croc
|
||||||
GOOS=linux GOARCH=arm64 go build -ldflags="-s -w" -o croc
|
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -tags netgo -ldflags '-extldflags "-static"' -o croc
|
||||||
upx --brute croc
|
|
||||||
tar -czvf croc_${{ github.event.release.name }}_Linux-ARM64.tar.gz croc
|
tar -czvf croc_${{ github.event.release.name }}_Linux-ARM64.tar.gz croc
|
||||||
GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w" -o croc
|
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags '-s -extldflags "-sectcreate __TEXT __info_plist Info.plist"' -o croc
|
||||||
tar -czvf croc_${{ github.event.release.name }}_macOS-64bit.tar.gz croc
|
tar -czvf croc_${{ github.event.release.name }}_macOS-64bit.tar.gz croc
|
||||||
GOOS=darwin GOARCH=arm64 go build -ldflags="-s -w" -o croc
|
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -ldflags '-s -extldflags "-sectcreate __TEXT __info_plist Info.plist"' -o croc
|
||||||
tar -czvf croc_${{ github.event.release.name }}_macOS-ARM64.tar.gz croc
|
tar -czvf croc_${{ github.event.release.name }}_macOS-ARM64.tar.gz croc
|
||||||
- name: Create checksums.txt
|
- name: Create checksums.txt
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
src="https://user-images.githubusercontent.com/6550035/46709024-9b23ad00-cbf6-11e8-9fb2-ca8b20b7dbec.jpg"
|
src="https://user-images.githubusercontent.com/6550035/46709024-9b23ad00-cbf6-11e8-9fb2-ca8b20b7dbec.jpg"
|
||||||
width="408px" border="0" alt="croc">
|
width="408px" border="0" alt="croc">
|
||||||
<br>
|
<br>
|
||||||
<a href="https://github.com/schollz/croc/releases/latest"><img src="https://img.shields.io/badge/version-v9.6.11-brightgreen.svg?style=flat-square" alt="Version"></a>
|
<a href="https://github.com/schollz/croc/releases/latest"><img src="https://img.shields.io/badge/version-v9.6.12-brightgreen.svg?style=flat-square" alt="Version"></a>
|
||||||
<a href="https://coveralls.io/github/schollz/croc"><img src="https://img.shields.io/badge/coverage-81%25-green.svg?style=flat-square" alt="Coverage"></a>
|
<a href="https://coveralls.io/github/schollz/croc"><img src="https://img.shields.io/badge/coverage-81%25-green.svg?style=flat-square" alt="Coverage"></a>
|
||||||
<a href="https://travis-ci.org/schollz/croc"><img
|
<a href="https://travis-ci.org/schollz/croc"><img
|
||||||
src="https://img.shields.io/travis/schollz/croc.svg?style=flat-square" alt="Build
|
src="https://img.shields.io/travis/schollz/croc.svg?style=flat-square" alt="Build
|
||||||
|
|
|
@ -36,7 +36,7 @@ func Run() (err error) {
|
||||||
app := cli.NewApp()
|
app := cli.NewApp()
|
||||||
app.Name = "croc"
|
app.Name = "croc"
|
||||||
if Version == "" {
|
if Version == "" {
|
||||||
Version = "v9.6.11"
|
Version = "v9.6.12"
|
||||||
}
|
}
|
||||||
app.Version = Version
|
app.Version = Version
|
||||||
app.Compiled = time.Now()
|
app.Compiled = time.Now()
|
||||||
|
|
|
@ -528,7 +528,7 @@ main() {
|
||||||
local autocomplete_install_rcode
|
local autocomplete_install_rcode
|
||||||
|
|
||||||
croc_bin_name="croc"
|
croc_bin_name="croc"
|
||||||
croc_version="9.6.11"
|
croc_version="9.6.12"
|
||||||
croc_dl_ext="tar.gz"
|
croc_dl_ext="tar.gz"
|
||||||
croc_base_url="https://github.com/schollz/croc/releases/download"
|
croc_base_url="https://github.com/schollz/croc/releases/download"
|
||||||
prefix="${1}"
|
prefix="${1}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue