ref: kazuhisa/zip4win
$ unzip4win -h
Usage of Unzip4win:
unzip4win [OPITIONS] <zip-file-path>
Options
-config string
Set path to customized config.toml.
-debug
If this flag is settle, output debug log!
This app using go module
.
If you clone into GOPATH
, set ENVIRONMENT GO111MODULE=on
.
install commands below with go get
- go-assets-builder
$ go get -u \
github.com/jessevdk/go-assets-builder
If you can use make
command, you can build using make
.
- clone this repository
- edit config.toml as default parameters
- make
$ mkdir -p ${GOPATH}/src/github.com/hayashima
$ cd ${GOPATH}/src/github.com/hayashima
$ git clone https://github.com/hayashima/unzip4win.git
$ cd unzip4win
$ cp config.toml.sample config.toml
$ vi config.toml
# edit for your environment
$ make
The repository contains docker-compose.yml
for building binaries.
If you install docker
and docker-compose
, you can build binaries with docker.
- clone this repository
- edit config.toml as default parameters
- docker-compose up
$ mkdir -p ${GOPATH}/src/github.com/hayashima
$ cd ${GOPATH}/src/github.com/hayashima
$ git clone https://github.com/hayashima/unzip4win.git
$ cd unzip4win
$ cp config.toml.sample config.toml
$ vi config.toml
# edit for your environment
$ docker-compose up
- clone this repository
- install dependencies
- edit config.toml as default parameters
- create assets
- go build!
$ mkdir -p ${GOPATH}/src/github.com/hayashima
$ cd ${GOPATH}/src/github.com/hayashima
$ git clone https://github.com/hayashima/unzip4win.git
$ cd unzip4win
$ go mod download
$ cp config.toml.sample config.toml
$ vi config.toml
# edit for your environment
$ go generate
$ go build -o unzip4win main.go