forked from kashifshah-mirrors/goptimize
Switch to go mods
This commit is contained in:
parent
cb4bde8c4e
commit
7ffb944b0f
@ -1,5 +1,10 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## [dev]
|
||||||
|
|
||||||
|
- Switch to go mods - go (>= 1.11 required)
|
||||||
|
|
||||||
|
|
||||||
## [0.0.3]
|
## [0.0.3]
|
||||||
|
|
||||||
- Detect & skip animated GIFs
|
- Detect & skip animated GIFs
|
||||||
|
2
Makefile
2
Makefile
@ -6,7 +6,6 @@ build = echo "\n\nBuilding $(1)-$(2)" && GOOS=$(1) GOARCH=$(2) go build ${LDFLAG
|
|||||||
&& bzip2 dist/goptimize_${VERSION}_$(1)_$(2)
|
&& bzip2 dist/goptimize_${VERSION}_$(1)_$(2)
|
||||||
|
|
||||||
goptimize: *.go
|
goptimize: *.go
|
||||||
go get github.com/disintegration/imaging golang.org/x/image/bmp golang.org/x/image/tiff github.com/axllent/gitrel github.com/spf13/pflag
|
|
||||||
go build ${LDFLAGS} -o goptimize
|
go build ${LDFLAGS} -o goptimize
|
||||||
rm -rf /tmp/go-*
|
rm -rf /tmp/go-*
|
||||||
|
|
||||||
@ -16,7 +15,6 @@ clean:
|
|||||||
release:
|
release:
|
||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
rm -f dist/goptimize_${VERSION}_*
|
rm -f dist/goptimize_${VERSION}_*
|
||||||
go get github.com/disintegration/imaging golang.org/x/image/bmp golang.org/x/image/tiff github.com/axllent/gitrel github.com/spf13/pflag
|
|
||||||
$(call build,linux,amd64)
|
$(call build,linux,amd64)
|
||||||
$(call build,linux,386)
|
$(call build,linux,386)
|
||||||
$(call build,linux,arm)
|
$(call build,linux,arm)
|
||||||
|
@ -57,11 +57,16 @@ Options:
|
|||||||
## Install
|
## Install
|
||||||
|
|
||||||
Download the appropriate binary from the [releases](https://github.com/axllent/goptimize/releases/latest), or if you have golang installed
|
Download the appropriate binary from the [releases](https://github.com/axllent/goptimize/releases/latest), or if you have golang installed
|
||||||
|
|
||||||
|
|
||||||
|
### Build requirements
|
||||||
|
|
||||||
|
Go >= 1.11 required.
|
||||||
|
|
||||||
```
|
```
|
||||||
go get github.com/axllent/goptimize
|
go get github.com/axllent/goptimize
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## TODO
|
## TODO
|
||||||
|
|
||||||
Some ideas for the future:
|
Some ideas for the future:
|
||||||
|
10
go.mod
Normal file
10
go.mod
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
module github.com/axllent/goptimize
|
||||||
|
|
||||||
|
go 1.13
|
||||||
|
|
||||||
|
require (
|
||||||
|
github.com/axllent/gitrel v0.0.0-20190920100556-8fb3317ae1cd
|
||||||
|
github.com/disintegration/imaging v1.6.1
|
||||||
|
github.com/spf13/pflag v1.0.5
|
||||||
|
golang.org/x/image v0.0.0-20191009234506-e7c1f5e7dbb8
|
||||||
|
)
|
10
go.sum
Normal file
10
go.sum
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
github.com/axllent/gitrel v0.0.0-20190920100556-8fb3317ae1cd h1:cJgMzRxCEzJiI95DxIOgrpCxwBqcUQU0foCuGTB1F4o=
|
||||||
|
github.com/axllent/gitrel v0.0.0-20190920100556-8fb3317ae1cd/go.mod h1:p7Ab0oyyqKbcVmclkdRR9+pw8b5RZlMlDXQ6iplJiQ4=
|
||||||
|
github.com/disintegration/imaging v1.6.1 h1:JnBbK6ECIZb1NsWIikP9pd8gIlTIRx7fuDNpU9fsxOE=
|
||||||
|
github.com/disintegration/imaging v1.6.1/go.mod h1:xuIt+sRxDFrHS0drzXUlCJthkJ8k7lkkUojDSR247MQ=
|
||||||
|
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
|
||||||
|
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
|
||||||
|
golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs=
|
||||||
|
golang.org/x/image v0.0.0-20191009234506-e7c1f5e7dbb8 h1:hVwzHzIUGRjiF7EcUjqNxk3NCfkPxbDKRdnNE1Rpg0U=
|
||||||
|
golang.org/x/image v0.0.0-20191009234506-e7c1f5e7dbb8/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
|
||||||
|
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
Loading…
Reference in New Issue
Block a user