Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Apr 28, 2020. It is now read-only.

Commit 54c431e

Browse files
committed
Add demo
1 parent a07c087 commit 54c431e

File tree

4 files changed

+25
-1
lines changed

4 files changed

+25
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
vendor
1+
vendor
2+
bin

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
It can be used as a command line, or through the browser with
1010
[the Sail extension](https://sail.dev/docs/concepts/browser-extension/).
1111

12+
![Demo](/site/demo.gif)
13+
1214
## Features
1315

1416
- **No more "It works on my machine"**, everyone working on the same project is working in the same environment.

ci/build.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
export GOARCH=amd64
3+
4+
tag=$(git describe --tags)
5+
6+
mkdir -p bin
7+
8+
build(){
9+
tmpdir=$(mktemp -d)
10+
go build -ldflags "-X main.version=${tag}" -o $tmpdir/sail
11+
12+
pushd $tmpdir
13+
tarname=sail-$GOOS-$GOARCH.tar
14+
tar -cf $tarname sail
15+
popd
16+
cp $tmpdir/$tarname bin
17+
rm -rf $tmpdir
18+
}
19+
20+
GOOS=darwin build
21+
GOOS=linux build

site/demo.gif

853 KB
Loading

0 commit comments

Comments
 (0)