Skip to content

Commit

Permalink
Fix version
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Weigel committed Jan 29, 2019
1 parent abc95b0 commit 044d1d0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,23 +37,23 @@ A list of catalogs that are served using this sofware is given at [http://hapi-s
OS-X x64:

```bash
curl -L https://github.com/hapi-server/server-nodejs/releases/download/v0.9.4/hapi-server-v0.9.4
curl -L https://github.com/hapi-server/server-nodejs/releases/download/v0.9.4/hapi-server-v0.9.4-darwin-x64.tgz
cd hapi-server-v0.9.4
./hapi-server --open
```

Linux x64:

```bash
curl -L https://github.com/hapi-server/server-nodejs/releases/download/v0.9.4/hapi-server-v0.9.4
curl -L https://github.com/hapi-server/server-nodejs/releases/download/v0.9.4/hapi-server-v0.9.4-linux-x64.tgz
cd hapi-server-v0.9.4
./hapi-server --open
```

Linux ARMv7l:

```bash
curl -L https://github.com/hapi-server/server-nodejs/releases/download/v0.9.4/hapi-server-v0.9.4
curl -L https://github.com/hapi-server/server-nodejs/releases/download/v0.9.4/hapi-server-v0.9.4-linux-armv7l.tgz
cd hapi-server-v0.9.4
./hapi-server --open
```
Expand Down
8 changes: 6 additions & 2 deletions pkg/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,14 @@ release:
make update VERSION=$(VERSION);
cd .. && source pkg/GITHUB_TOKEN && release-it $(VERSION) --preRelease=beta --no-git.requireCleanWorkingDir --no-npm.publish

zz:
sed -i '' 's/hapi-server-v[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}/hapi-server-$(VERSION)/g' tmp.md
sed -i '' 's/\/v[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}\//\/$(VERSION)\//g' tmp.md

# When NodeJS and Python binaries do not need to be updated.
update:
cd ..; sed -i '' 's/hapi-server-v[0-9].*\.[0-9].*\.[0-9].*/hapi-server-$(VERSION)/g' README.md
cd ..; sed -i '' 's/\/v[0-9].*\.[0-9].*\.[0-9].*\//\/$(VERSION)\//g' README.md
cd ..; sed -i '' 's/hapi-server-v[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}/hapi-server-$(VERSION)/g' README.md
cd ..; sed -i '' 's/\/v[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}\//\/$(VERSION)\//g' README.md
make package VERSION=$(VERSION) OS=darwin-x64
make package VERSION=$(VERSION) OS=linux-x64
make package VERSION=$(VERSION) OS=linux-armv7l
Expand Down

0 comments on commit 044d1d0

Please sign in to comment.