Skip to content

Commit 7d53cc1

Browse files
authored
GoDownloader support
1 parent ef87835 commit 7d53cc1

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ clean: ## go clean
1616
.PHONY: install
1717
install: ## install build tools
1818
$(call print-target)
19-
./install.sh
19+
./install-tools.sh
2020

2121
.PHONY: generate
2222
generate: ## go generate

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Notable files:
4747
- [.golangci.yml](.golangci.yml) - golangci-lint configuration
4848
- [.goreleaser.yml](.goreleaser.yml) - GoReleaser configuration
4949
- [Dockerfile](Dockerfile) - Dockerfile used by GoReleaser to create a container image
50-
- [install.sh](install.sh) - build tools installation script
50+
- [install-tools.sh](install-tools.sh) - build tools installation script
5151
- [Makefile](Makefile) - Make targets used for development, [CI build](.github/workflows) and [.vscode/tasks.json](.vscode/tasks.json)
5252

5353
## FAQ
@@ -69,6 +69,22 @@ However, changing to any other CI server should be very simple, because this rep
6969

7070
Use [WSL (Windows Subsystem for Linux)](https://docs.microsoft.com/en-us/windows/wsl/install-win10) or try [Make Windows port](https://gist.github.com/evanwill/0207876c3243bbb6863e65ec5dc3f058).
7171

72+
### How can I create an application installation script
73+
74+
1. Install [GoDownloader](https://github.com/goreleaser/godownloader)
75+
1. Execute:
76+
77+
```bash
78+
godownloader --repo=your_org/repo_name > ./install.sh
79+
```
80+
81+
3. Push `install.sh` to your repository.
82+
1. Add installation instructions to your `README.md` e.g.:
83+
84+
```bash
85+
curl -sSfL https://raw.githubusercontent.com/your_org/repo_name/master/install.sh | sh -s -- -b /usr/local/bin
86+
```
87+
7288
### How can I create a library instead of an application
7389

7490
You can change the [.goreleaser.yml](.goreleaser.yml) to contain:
File renamed without changes.

0 commit comments

Comments
 (0)