diff --git a/config.d/rusty-pipe.d/package-and-distribute.sh b/config.d/rusty-pipe.d/package-and-distribute.sh new file mode 100644 index 0000000..1528fee --- /dev/null +++ b/config.d/rusty-pipe.d/package-and-distribute.sh @@ -0,0 +1,16 @@ +#! /bin/bash + +echo source ./package.sh + +set -e + +cd ${based%/*} +tar_f=${based##*/}.tar +rm -f "$tar_f" +tar -cf "$tar_f" ${based##*/} +cleanup() { rm "$tar_f"; } +trap cleanup EXIT + +scp_scratch.sh "$tar_f" squeaky2x3@192.168.0.86:/volume1/video/FTP/ +ssh_scratch.sh ls /volume1/video/FTP/"$tar_f" + diff --git a/config.d/rusty-pipe.d/package.sh b/config.d/rusty-pipe.d/package.sh new file mode 100644 index 0000000..ab294c6 --- /dev/null +++ b/config.d/rusty-pipe.d/package.sh @@ -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"/* diff --git a/config.d/rusty-pipe.d/rusty-pipe-notwindows.bin b/config.d/rusty-pipe.d/rusty-pipe-notwindows.bin new file mode 120000 index 0000000..45026b3 --- /dev/null +++ b/config.d/rusty-pipe.d/rusty-pipe-notwindows.bin @@ -0,0 +1 @@ +../../../rusty-pipe.d/target/release/rusty-pipe \ No newline at end of file diff --git a/config.d/rusty-pipe.d/rusty-pipe-signed.exe b/config.d/rusty-pipe.d/rusty-pipe-signed.exe new file mode 120000 index 0000000..78f77b3 --- /dev/null +++ b/config.d/rusty-pipe.d/rusty-pipe-signed.exe @@ -0,0 +1 @@ +../../../rusty-pipe.d/target/x86_64-pc-windows-gnu/release/rusty-pipe-signed.exe \ No newline at end of file