add of update_archive.sh to create an archive with the binary of the scripts

This commit is contained in:
Yvaniak 2023-11-10 22:43:32 +01:00
parent 91dec4b0be
commit 96358788b4

27
update_archive.sh Executable file
View File

@ -0,0 +1,27 @@
#compilation des scripts en binaire install
shc -f install.sh install-scripts/* -o install
#liste of files or folders to add to the archive
files=(install README.md CHANGELOGS.md LICENSE.md assets)
#Archive name
archive="Arch-Hyprland.tar.gz"
#temporary folder to create the archive
TMP="tmp"
mkdir $TMP
for file in "${files[@]}"; do
cp -r $file tmp
done
#creation of the archive
cd $TMP
tar -cavf ../"Arch-Hyprland.tar.gz" *
cd ..
#deletion of temporary folder
rm -r $TMP
#deletion of binary
rm install
rm install.sh.x.c