Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OPTIONAL: Template update (if you want it) #14

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,15 @@ curl https://i.jpillora.com/<query>! | bash

*You can optionally add your own domain as a app custom domain.*

### Modifying the Installation Script for Host Your Own

To modify the installation script for a host-your-own installation, you will need to do the following:

1. Change line 11 of `handler/init.go` to reflect your github username (`_ "github.com/[YOUR-GITHUB-NAME-HERE]/installer/scripts"`)
1. Similarly, import your handler in `main.go` on line 8 (`"github.com/[YOUR-GITHUB-NAME-HERE]/installer/handler"`)
1. Change `go.mod` to your module name as well (`module github.com/[YOUR-GITHUB-NAME-HERE]/installer`)
1. Deploy to heroku

### Homebrew

Currently, installing via Homebrew does not work. Homebrew was intended to be supported with:
Expand Down
2 changes: 1 addition & 1 deletion handler/handler_github.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func (h *Handler) getAssetsNoCache(q *query) error {
//only binary containers are supported
//TODO deb,rpm etc
fext := getFileExt(url)
if fext != ".zip" && fext != ".gz" && fext != ".tar.gz" {
if fext != ".zip" && fext != ".gz" && fext != ".tar.gz" && fext != ".tgz" {
continue
}
//match
Expand Down
2 changes: 1 addition & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function install {
MOVE="{{ .MoveToPath }}"
RELEASE="{{ .Release }}"
INSECURE="{{ .Insecure }}"
OUT_DIR="{{ if .MoveToPath }}/usr/local/bin{{ else }}$(pwd){{ end }}"
OUT_DIR="{{ if and .SudoMove .MoveToPath }}/usr/local/bin{{ else if .MoveToPath }}$HOME/.local/bin{{ else }}$(pwd){{ end }}"
GH="https://github.com"
#bash check
[ ! "$BASH_VERSION" ] && fail "Please use bash instead"
Expand Down
4 changes: 2 additions & 2 deletions scripts/statik.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.