mirror of
https://github.com/netinvent/npbackup.git
synced 2025-09-08 22:15:48 +08:00
30 lines
753 B
Batchfile
30 lines
753 B
Batchfile
@echo off
|
|
|
|
:: This is an example compiler script
|
|
|
|
SET PYTHON64=c:\python312-64\python.exe
|
|
SET PYTHON32=c:\python37-32\python.exe
|
|
|
|
|
|
cd C:\GIT\npbackup
|
|
git pull || exit 1
|
|
|
|
:: cd RESTIC_SOURCE_FILES
|
|
:: cat update_restic.sh | dos2unix | sh
|
|
:: cd ..
|
|
|
|
:: Make sure we add npbackup in python path so bin and npbackup subfolders become packages
|
|
SET OLD_PYTHONPATH=%PYTHONPATH%
|
|
SET PYTHONPATH=c:\GIT\npbackup
|
|
|
|
"%PYTHON64%" -m pip install --upgrade -r npbackup/requirements.txt || exit 1
|
|
"%PYTHON64%" bin\compile.py --audience all --sign "C:\ODJ\KEYS\NetInventEV.dat"
|
|
|
|
|
|
"%PYTHON32%" -m pip install --upgrade -r npbackup/requirements.txt || exit 1
|
|
"%PYTHON32%" bin\compile.py --audience all --sign "C:\ODJ\KEYS\NetInventEV.dat"
|
|
|
|
SET PYTHONPATH=%OLD_PYTHONPATH%
|
|
|
|
|
|
|