mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-27 21:24:16 -04:00
update helper scripts
This commit is contained in:
parent
f773b84a7c
commit
a14146c8f0
5 changed files with 103 additions and 57 deletions
26
bin/build.sh
26
bin/build.sh
|
@ -12,31 +12,11 @@ IFS=$'\n'
|
|||
|
||||
REPO_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && cd .. && pwd )"
|
||||
|
||||
source "$REPO_DIR/.venv/bin/activate"
|
||||
cd "$REPO_DIR"
|
||||
|
||||
# echo "[*] Fetching latest docs version"
|
||||
# cd "$REPO_DIR/docs"
|
||||
# git pull
|
||||
# cd "$REPO_DIR"
|
||||
|
||||
# echo "[+] Building docs"
|
||||
# sphinx-apidoc -o docs archivebox
|
||||
# cd "$REPO_DIR/docs"
|
||||
# make html
|
||||
# cd "$REPO_DIR"
|
||||
|
||||
echo "[*] Cleaning up build dirs"
|
||||
cd "$REPO_DIR"
|
||||
rm -Rf build dist archivebox.egg-info
|
||||
|
||||
echo "[+] Building sdist, bdist_egg, and bdist_wheel"
|
||||
python3 setup.py sdist bdist_egg bdist_wheel
|
||||
|
||||
echo "[+] Building docker image in the background..."
|
||||
docker build . -t archivebox \
|
||||
-t archivebox:latest > /tmp/archivebox_docker_build.log 2>&1 &
|
||||
ps "$!"
|
||||
./bin/build_docs.sh
|
||||
./bin/build_pip.sh
|
||||
./bin/build_docker.sh
|
||||
|
||||
echo "[√] Done. Install the built package by running:"
|
||||
echo " python3 setup.py install"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue