Add build script, site metadata, update binary page
This commit is contained in:
parent
0a90c2e21c
commit
61a139d47f
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,6 +4,7 @@
|
|||||||
*.so
|
*.so
|
||||||
*.dylib
|
*.dylib
|
||||||
homemaker
|
homemaker
|
||||||
|
build
|
||||||
|
|
||||||
# Test binary, build with `go test -c`
|
# Test binary, build with `go test -c`
|
||||||
*.test
|
*.test
|
||||||
|
50
Makefile
Normal file
50
Makefile
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
appname := homemaker
|
||||||
|
sources := $(wildcard *.go)
|
||||||
|
|
||||||
|
build = GOOS=$(1) GOARCH=$(2) go build -o build/$(appname)$(3)
|
||||||
|
tar = cd build && tar -cvzf $(appname)_$(1)_$(2).tar.gz $(appname)$(3) && rm $(appname)$(3)
|
||||||
|
zip = cd build && zip $(appname)_$(1)_$(2).zip $(appname)$(3) && rm $(appname)$(3)
|
||||||
|
|
||||||
|
.PHONY: all windows darwin linux clean
|
||||||
|
|
||||||
|
all: windows darwin linux
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf build/
|
||||||
|
|
||||||
|
# linux builds
|
||||||
|
linux: build/$(appname)_linux_arm.tar.gz build/$(appname)_linux_arm64.tar.gz build/$(appname)_linux_386.tar.gz build/$(appname)_linux_amd64.tar.gz
|
||||||
|
|
||||||
|
build/$(appname)_linux_386.tar.gz: $(sources)
|
||||||
|
$(call build,linux,386,)
|
||||||
|
$(call tar,linux,386)
|
||||||
|
|
||||||
|
build/$(appname)_linux_amd64.tar.gz: $(sources)
|
||||||
|
$(call build,linux,amd64,)
|
||||||
|
$(call tar,linux,amd64)
|
||||||
|
|
||||||
|
build/$(appname)_linux_arm.tar.gz: $(sources)
|
||||||
|
$(call build,linux,arm,)
|
||||||
|
$(call tar,linux,arm)
|
||||||
|
|
||||||
|
build/$(appname)_linux_arm64.tar.gz: $(sources)
|
||||||
|
$(call build,linux,arm64,)
|
||||||
|
$(call tar,linux,arm64)
|
||||||
|
|
||||||
|
# darwin builds
|
||||||
|
darwin: build/$(appname)_darwin_amd64.tar.gz
|
||||||
|
|
||||||
|
build/$(appname)_darwin_amd64.tar.gz: $(sources)
|
||||||
|
$(call build,darwin,amd64,)
|
||||||
|
$(call tar,darwin,amd64)
|
||||||
|
|
||||||
|
# windows builds
|
||||||
|
windows: build/$(appname)_windows_386.zip build/$(appname)_windows_amd64.zip
|
||||||
|
|
||||||
|
build/$(appname)_windows_386.zip: $(sources)
|
||||||
|
$(call build,windows,386,.exe)
|
||||||
|
$(call zip,windows,386,.exe)
|
||||||
|
|
||||||
|
build/$(appname)_windows_amd64.zip: $(sources)
|
||||||
|
$(call build,windows,amd64,.exe)
|
||||||
|
$(call zip,windows,amd64,.exe)
|
21
README.md
21
README.md
@ -1,3 +1,12 @@
|
|||||||
|
<!-- +++
|
||||||
|
Area = "projects"
|
||||||
|
GitHub = "homemaker"
|
||||||
|
Layout = "page"
|
||||||
|
Tags = ["dot-files", "golang", "homemaker", "mit license", "yaml", "toml", "json"]
|
||||||
|
Description = "Efficiently manage your dot-file configuration settings."
|
||||||
|
Collection = "ProjectsComplete"
|
||||||
|
+++ -->
|
||||||
|
|
||||||
# Homemaker
|
# Homemaker
|
||||||
|
|
||||||
Homemaker is a lightweight tool for straightforward and efficient management of \*nix configuration files found in the
|
Homemaker is a lightweight tool for straightforward and efficient management of \*nix configuration files found in the
|
||||||
@ -7,7 +16,7 @@ installation, has no dependencies and makes use of simple configuration file str
|
|||||||
[make](https://en.wikipedia.org/wiki/Make_%28software%29) to generate symlinks and execute system commands to aid in
|
[make](https://en.wikipedia.org/wiki/Make_%28software%29) to generate symlinks and execute system commands to aid in
|
||||||
configuring a new system for use.
|
configuring a new system for use.
|
||||||
|
|
||||||
![](https://foosoft.net/projects/homemaker/img/demo.gif)
|
![](img/demo.gif)
|
||||||
|
|
||||||
## Table of Contents
|
## Table of Contents
|
||||||
|
|
||||||
@ -71,15 +80,7 @@ If you already have the Go environment and toolchain set up, you can get the lat
|
|||||||
$ go get github.com/FooSoft/homemaker
|
$ go get github.com/FooSoft/homemaker
|
||||||
```
|
```
|
||||||
|
|
||||||
Otherwise, you can use the pre-built binaries for the platforms below:
|
Otherwise, you can use the [pre-built binaries](https://github.com/FooSoft/homemaker/releases) from the project page.
|
||||||
|
|
||||||
* [homemaker\_darwin\_386.tar.gz](https://foosoft.net/projects/homemaker/dl/homemaker_darwin_386.tar.gz)
|
|
||||||
* [homemaker\_darwin\_amd64.tar.gz](https://foosoft.net/projects/homemaker/dl/homemaker_darwin_amd64.tar.gz)
|
|
||||||
* [homemaker\_linux\_386.tar.gz](https://foosoft.net/projects/homemaker/dl/homemaker_linux_386.tar.gz)
|
|
||||||
* [homemaker\_linux\_amd64.tar.gz](https://foosoft.net/projects/homemaker/dl/homemaker_linux_amd64.tar.gz)
|
|
||||||
* [homemaker\_linux\_arm.tar.gz](https://foosoft.net/projects/homemaker/dl/homemaker_linux_arm.tar.gz)
|
|
||||||
* [homemaker\_windows\_386.tar.gz](https://foosoft.net/projects/homemaker/dl/homemaker_windows_386.tar.gz)
|
|
||||||
* [homemaker\_windows\_amd64.tar.gz](https://foosoft.net/projects/homemaker/dl/homemaker_windows_amd64.tar.gz)
|
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
|
BIN
img/demo.gif
Normal file
BIN
img/demo.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 647 KiB |
Loading…
Reference in New Issue
Block a user