This commit is contained in:
parent
3a9c0d91b0
commit
666a971a03
1 changed files with 8 additions and 1 deletions
|
@ -33,9 +33,16 @@ src_dir=$(find $(pwd) -name "maximbaz-wluma*")
|
||||||
cd $src_dir
|
cd $src_dir
|
||||||
cargo install --path .
|
cargo install --path .
|
||||||
|
|
||||||
# create .tar.zst archive
|
## create .tar.zst archive
|
||||||
|
# prep
|
||||||
wluma_archive=$(mktemp -d)
|
wluma_archive=$(mktemp -d)
|
||||||
cp $(which wluma) $wluma_archive
|
cp $(which wluma) $wluma_archive
|
||||||
sed -i 's/\/usr\/bin\/wluma/\/usr\/bin\/env wluma/g' $src_dir/wluma.service
|
sed -i 's/\/usr\/bin\/wluma/\/usr\/bin\/env wluma/g' $src_dir/wluma.service
|
||||||
cp $src_dir/wluma.service $wluma_archive
|
cp $src_dir/wluma.service $wluma_archive
|
||||||
|
|
||||||
|
# actually create it and finish up
|
||||||
|
cd $wluma_archive
|
||||||
|
tar --zstd -cf $built_dir/$program_name.tar.zst .
|
||||||
|
echo $version >$version_file
|
||||||
|
|
||||||
|
echo "$program_name updated to $version"
|
Loading…
Add table
Add a link
Reference in a new issue