Skip to content

Commit

Permalink
preparations for release v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
xonixx committed Oct 6, 2019
1 parent 4f973ca commit d075353
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ curl http://192.168.0.179:17777/dl > 'report.pdf'
wget -O- http://192.168.0.179:17777/dl > 'report.pdf'
curl http://192.168.0.179:17777/dl?z --compressed > 'report.pdf'
wget -O- http://192.168.0.179:17777/dl?z | gunzip > 'report.pdf'

Or just open in browser: http://192.168.0.179:17777/
```

Sharing a folder (all the files in it):
Expand All @@ -30,13 +28,13 @@ wget -O- http://192.168.0.179:17777/dl | tar -xvf -
curl http://192.168.0.179:17777/dl?z | tar -xzvf -
wget -O- http://192.168.0.179:17777/dl?z | tar -xzvf -

Or just open in browser: http://192.168.0.179:17777/
Files listing: http://192.168.0.108:17777/
```

Help message:
```
$ serv -h
serv ver. 0.2.0
serv ver. 1.0.0
usage: serv [...options] <file or folder> [...<file or folder>]
-H,--host <arg> host to serve on (default is determined automatically)
-h,--help print help and exit
Expand All @@ -55,10 +53,11 @@ To install or update the tool simply run the command below.

```
$ sudo bash -e -c "
wget https://github.com/xonixx/serv/releases/download/v0.2.0/serv-linux-amd64 -O/usr/local/bin/serv
wget https://github.com/xonixx/serv/releases/download/v1.0.0/serv-linux-amd64 -O/usr/local/bin/serv
chmod +x /usr/local/bin/serv
echo \"serv \$(serv -v) installed successfully\"
"
```

Also since the tool is written in Java it can be run in any environment with Java 8 or above.
Also since the tool is written in Java (and compiled to executable via [GraalVM](https://github.com/oracle/graal) AOT compiler)
it can also be run in any environment with Java 8 or above as traditional Java app.
8 changes: 7 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e
#set -x

GRAAL=~/soft/graalvm-ce-19.2.0
GRAAL=~/soft/graalvm-ce-19.2.0.1
UPX=~/soft/upx-3.95-amd64_linux

mvn clean compile
Expand All @@ -20,6 +20,12 @@ echo
echo Graal
echo

if [[ ! -f $GRAAL/bin/native-image ]]
then
echo "Installing native-image..."
bash -c "cd $GRAAL/bin/ ; ./gu install native-image"
fi

$GRAAL/bin/native-image -cp "$CP" com.cmlteam.serv.Serv
ls -lh ./com.cmlteam.serv.serv

Expand Down
2 changes: 1 addition & 1 deletion favicon/favicon_gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e
#set -x

GRAAL=~/soft/graalvm-ce-19.2.0
GRAAL=~/soft/graalvm-ce-19.2.0.1

NODE=$GRAAL/bin/node

Expand Down

0 comments on commit d075353

Please sign in to comment.