updated the script for change rsync to cp + remove tsc to use typescript to compile

This commit is contained in:
Amaury
2021-06-29 16:33:42 +02:00
parent 53a5e56cda
commit 8558c555e5
5 changed files with 253 additions and 32 deletions

View File

@ -1,12 +1,12 @@
tmp_dir=$(mktemp -d)/peertube-plugin-auto-import-ytb/
work_dir=$(pwd)/
tmp_dir=$(mktemp -d)/peertube-plugin-auto-import-ytb
work_dir=$(pwd)
# echo $work_dir
mkdir $tmp_dir
# echo "directory created"
rsync --exclude-from=$work_dir.rsyncignore $work_dir $tmp_dir -ar
cp "${work_dir}/dist" "${work_dir}/package.json" "${work_dir}/LICENSE" $tmp_dir -r
# echo "rsync --exclude-from=$work_dir.rsyncignore $work_dir $tmp_dir"
# echo "rsync done"
cd ../PeerTube
node ./dist/server/tools/peertube.js plugins install --path $tmp_dir
cd "../PeerTube"
node "./dist/server/tools/peertube.js" plugins install --path "${tmp_dir}"
# echo $tmp_dir