wip
This commit is contained in:
20
config.d/rusty-pipe.d/package.sh
Normal file
20
config.d/rusty-pipe.d/package.sh
Normal file
@@ -0,0 +1,20 @@
|
||||
#! /bin/bash
|
||||
|
||||
test -f ./rusty-pipe-signed.exe || exit 1
|
||||
|
||||
based=$(mktemp -d)
|
||||
for f in ./*.yaml; do
|
||||
d="$based/${f%.yaml}.d"
|
||||
mkdir -p "$d"
|
||||
cp "$f" "$d"/rusty-pipe.yaml
|
||||
cp "$(realpath ./rusty-pipe-signed.exe)" "$d"/rusty-pipe-windows.exe
|
||||
cp "$(realpath ./rusty-pipe-notwindows.bin)" "$d"/rusty-pipe-notwindows.bin
|
||||
done
|
||||
pushd "$based"
|
||||
for d in ./*/; do
|
||||
zip -r -7 ${d%/}.zip $d
|
||||
rm -rf "$d"
|
||||
done
|
||||
popd
|
||||
echo "$based"
|
||||
du -sh "$based"/*
|
||||
Reference in New Issue
Block a user