Skip to content

Commit

Permalink
Release 1.2.1, proper time
Browse files Browse the repository at this point in the history
  • Loading branch information
antsankov committed Sep 26, 2023
1 parent 73da806 commit 6103d2b
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ COPY --from=builder /go/src/antsankov/go-live/bin/go-live /usr/bin/go-live
RUN chmod +x /usr/bin/go-live

ARG VERSION=none
LABEL version=1.2.0
LABEL version=1.2.1

WORKDIR /workdir

18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# go-live
[![Go Report](https://goreportcard.com/badge/github.com/antsankov/go-live)](https://goreportcard.com/report/github.com/antsankov/go-live)
[![GoDoc](https://godoc.org/github.com/antsankov/go-live?status.svg)](https://pkg.go.dev/github.com/antsankov/[email protected].0?tab=overview)
[![GoDoc](https://godoc.org/github.com/antsankov/go-live?status.svg)](https://pkg.go.dev/github.com/antsankov/[email protected].1?tab=overview)
[![Snap Package](https://snapcraft.io/go-live/badge.svg)](https://snapcraft.io/go-live)


Expand Down Expand Up @@ -35,26 +35,26 @@ Based on JavaScript's famous `live-server` utility. Supports Linux, Windows, and

### MacOS x64 (without Brew)

`curl -LJO https://github.com/antsankov/go-live/releases/download/v1.2.0/go-live-mac-x64.zip && unzip go-live-mac-x64.zip && mv go-live /usr/local/bin/go-live && chmod +x /usr/local/bin/go-live && go-live`
`curl -LJO https://github.com/antsankov/go-live/releases/download/v1.2.1/go-live-mac-x64.zip && unzip go-live-mac-x64.zip && mv go-live /usr/local/bin/go-live && chmod +x /usr/local/bin/go-live && go-live`

### MacOS Apple Silicon/M1/M2 (without Brew)

`curl -LJO https://github.com/antsankov/go-live/releases/download/v1.2.0/go-live-mac-arm64.zip && unzip go-live-mac-arm64.zip && mv go-live /usr/local/bin/go-live && chmod +x /usr/local/bin/go-live && go-live`
`curl -LJO https://github.com/antsankov/go-live/releases/download/v1.2.1/go-live-mac-arm64.zip && unzip go-live-mac-arm64.zip && mv go-live /usr/local/bin/go-live && chmod +x /usr/local/bin/go-live && go-live`

### Linux (using Snapcraft)
`snap install go-live`

### Linux x32 (Ubuntu/RHEL/etc.):
`wget https://github.com/antsankov/go-live/releases/download/v1.2.0/go-live-linux-x32 -O /usr/bin/go-live && chmod +x /usr/bin/go-live`
`wget https://github.com/antsankov/go-live/releases/download/v1.2.1/go-live-linux-x32 -O /usr/bin/go-live && chmod +x /usr/bin/go-live`

### Linux x64 (Ubuntu/RHEL/etc.):
`wget https://github.com/antsankov/go-live/releases/download/v1.2.0/go-live-linux-x64 -O /usr/bin/go-live && chmod +x /usr/bin/go-live`
`wget https://github.com/antsankov/go-live/releases/download/v1.2.1/go-live-linux-x64 -O /usr/bin/go-live && chmod +x /usr/bin/go-live`

### Linux ARM32 (Ubuntu/RHEL/etc.):
`wget https://github.com/antsankov/go-live/releases/download/v1.2.0/go-live-linux-arm32 -O /usr/bin/go-live && chmod +x /usr/bin/go-live`
`wget https://github.com/antsankov/go-live/releases/download/v1.2.1/go-live-linux-arm32 -O /usr/bin/go-live && chmod +x /usr/bin/go-live`

### Linux ARM64 (Ubuntu/RHEL/etc.):
`wget https://github.com/antsankov/go-live/releases/download/v1.2.0/go-live-linux-arm64 -O /usr/bin/go-live && chmod +x /usr/bin/go-live`
`wget https://github.com/antsankov/go-live/releases/download/v1.2.1/go-live-linux-arm64 -O /usr/bin/go-live && chmod +x /usr/bin/go-live`

### Docker
`docker pull antsankov/go-live`
Expand All @@ -65,7 +65,7 @@ To run (will serve current directory on port 9000):

### Windows

[Download Here and Execute](https://github.com/antsankov/go-live/releases/tag/v1.2.0)
[Download Here and Execute](https://github.com/antsankov/go-live/releases/tag/v1.2.1)

- Chocolatey coming soon! (Help wanted)
- Make sure when running that all necessary ports are open and user has permissions (Help wanted)
Expand Down Expand Up @@ -93,7 +93,7 @@ make cross-compile && ls release/
- You need to have a valid developer certficate - check `security find-identity -p codesigning`. If it is not valid, see https://developer.apple.com/forums/thread/86161 -- you need to check the info of the developer cert to see if the "Organizational Unit" certificate is installed.
- For gon to work, you need to use the hacked version https://github.com/mitchellh/gon/issues/64#issuecomment-1336311570 to release on Apple Silicon
- The "ac-password" in gon is an App specfic password for your Apple ID.
- For docker (remember for version and for latest): `sudo docker build -t antsankov/go-live:v1.2.0 .` and `sudo docker push antsankov/go-live:v1.2.0`
- For docker (remember for version and for latest): `sudo docker build -t antsankov/go-live:v1.2.1 .` and `sudo docker push antsankov/go-live:v1.2.1`
## Flags
```
-h Print help message for go-live
Expand Down
4 changes: 2 additions & 2 deletions lib/printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
)

// VERSION of Package
const VERSION = "1.2.0"
const VERSION = "1.2.1"

func printStartMessage(path string, port string) {
// Clear the screen.
Expand Down Expand Up @@ -47,7 +47,7 @@ func Printer(dir string, port string) {

printStartMessage(path, port)
for {
time.Sleep(100 * time.Millisecond)
time.Sleep(500 * time.Millisecond)
printServerInformation(path, port)
// Move to the timeSince row, and clear it.
fmt.Print("\033[8;1H")
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
)

// VERSION of Package
const VERSION = "1.2.0"
const VERSION = "1.2.1"

func main() {
var _quiet bool
Expand Down
2 changes: 1 addition & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: go-live
version: '1.2.0'
version: '1.2.1'
summary: A very lightweight CLI utility to start serving a file directory
description: |
go-live can be used for local web development, production static-site serving, or as a network file server. By default go-live serves the directory it is executed in.
Expand Down

0 comments on commit 6103d2b

Please sign in to comment.