update build process

This commit is contained in:
2026-02-26 10:23:37 +01:00
parent 6214ea290f
commit e0940fa82e
2 changed files with 26 additions and 3 deletions

21
build.sh Normal file
View File

@@ -0,0 +1,21 @@
#!/bin/bash
GIT_REPO_URL="https://github.com/4v3ngR/pluto_tv_scraper.git"
GIT_COMMIT="92f960ec5423efcda9f84edaf7f37d9c2ff86776"
BUILD_FOLDER="/build"
BIN_FOLDER=$"/bin/pluto"
apk add git
git clone --revision=$GIT_COMMIT $GIT_REPO_URL $BUILD_FOLDER
cd $BUILD_FOLDER
npm install -g npm@latest
npm install
npm install -g .
apk del git
#remove unnecessary files to run the binary to save space
rm -rf .git
rm config.json
rm LICENSE
rm README.md
rm package-lock.json
rm .gitignore