update build script

This commit is contained in:
Alexander Popov 2024-03-28 19:03:32 +03:00
parent 1f489866a6
commit 9ada4948cb
2 changed files with 37 additions and 30 deletions

View File

@ -1,6 +1,13 @@
YTCget
------
YTCget — Show YouTube video cover
=================================
![Preview](preview.png)
**Thanks:**
+ @takien: for [youtubeID.js](https://gist.github.com/takien/4077195) script.
Build
-----
**Requirements:**
* [minify-html](https://github.com/wilsonzlin/minify-html/)

View File

@ -1,8 +1,12 @@
#!/bin/sh
#!/bin/bash
echo -e "Making \033[0;31mYTCget\033[0m dist..."
if [ -d "./dist" ]; then
if [ ! -d "./dist" ]; then
echo -e "Make \033[0;31m./dist/\033[0m directory."
mkdir "./dist/"
fi
echo -en "Cleaning \033[0;31m./dist/\033[0m directory..."
rm -rf "./dist/*"
echo " Complete!"
@ -28,7 +32,3 @@ if [ -d "./dist" ]; then
echo -en "Making \033[0;31mytcg-$GIT_COMMIT_HASH.tar.xz\033[0m file..."
tar -cJf "ytcg-$GIT_COMMIT_HASH.tar.xz" ./dist/*
echo " Complete!"
else
echo -e "Make \033[0;31m./dist/\033[0m directory."
mkdir "./dist/"
fi