NoSoliciting/NoSoliciting/package.sh
Anna cff49d91ad refactor: embed default defs in assembly
Also load the defaults directly when in debug mode.
2020-09-04 15:22:00 -04:00

29 lines
503 B
Bash

#!/bin/sh
# remove old pack dir
rm -rf pack
# make temp dir and go to it
mkdir -p pack/temp
cd pack/temp || exit
# copy the dlls, defs, and the manifest
cp ../../bin/Release/NoSoliciting.dll ../../bin/Release/YamlDotNet.dll ./
cp ../../NoSoliciting.json ./
# make sure none of them are marked executable
chmod -x ./*
# zip them
zip ../latest.zip ./*
# move the manifest next to the zip
mv NoSoliciting.json ../
# remove everything
rm ./*
# go back up and remove the temp dir
cd ..
rmdir temp