#!/bin/bash

VERSION=1.0.3
docker run -it --rm -v $(pwd):/work -w /work -u 1000 rust cargo build --release
PKG=chamkho-$VERSION-linux-amd64
rm -rf $PKG && mkdir $PKG
cp target/release/wordcut $PKG
cp data/* $PKG
cp LICE* $PKG
tar -cvvzf $PKG.tar.gz $PKG

#!/bin/bash

VERSION=1.0.3
docker run -it --rm -v $(pwd):/work -w /work -u 1000 rust cargo build --release
rm -rf chamkho-$VERSION-amd64 && mkdir chamkho-$VERSION-amd64
cp target/release/wordcut chamkho-$VERSION-amd64
cp data/* chamkho-$VERSION-amd64
tar -cvvzf chamkho-$VERSION-amd64.tar.gz chamkho-$VERSION-amd64

--- 
+++ 
@@ -2,7 +2,9 @@
 
 VERSION=1.0.3
 docker run -it --rm -v $(pwd):/work -w /work -u 1000 rust cargo build --release
-rm -rf chamkho-$VERSION-amd64 && mkdir chamkho-$VERSION-amd64
-cp target/release/wordcut chamkho-$VERSION-amd64
-cp data/* chamkho-$VERSION-amd64
-tar -cvvzf chamkho-$VERSION-amd64.tar.gz chamkho-$VERSION-amd64
+PKG=chamkho-$VERSION-linux-amd64
+rm -rf $PKG && mkdir $PKG
+cp target/release/wordcut $PKG
+cp data/* $PKG
+cp LICE* $PKG
+tar -cvvzf $PKG.tar.gz $PKG
Add license in tar package and put OS name in the package file name
