diff --git a/bin/COMPILE.cmd b/bin/COMPILE.cmd new file mode 100644 index 0000000..9b831af --- /dev/null +++ b/bin/COMPILE.cmd @@ -0,0 +1,18 @@ +@echo off + +:: This is an example compiler script + +SET PYTHON64=c:\python310-64\python.exe +SET PYTHON32=c:\python37-32\python.exe + + +cd C:\GIT\npbackup + +:: Make sure we add npbackup in python path so bin and npbackup subfolders become packages +SET PYTHONPATH=c:\GIT\npbackup + +"%PYTHON64%" bin\compile.py --arch x64 --audience all +"%PYTHON32%" bin\compile.py --arch x86 --audience all + + + diff --git a/bin/COMPILE.sh b/bin/COMPILE.sh new file mode 100644 index 0000000..bdde9c8 --- /dev/null +++ b/bin/COMPILE.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +# This is an example compiler script + +cd /opt/npbackup + +export PYTHONPATH=/opt/npbackup + +/opt/npbackup/venv/bin/python bin/compile.py --arch x64 --audience all \ No newline at end of file diff --git a/bin/compile.py b/bin/compile.py index 08ed2e4..cdf46bb 100644 --- a/bin/compile.py +++ b/bin/compile.py @@ -3,7 +3,7 @@ # # This file is part of npbackup -__intname__ = "npbackup.compile-and-package-for-windows" +__intname__ = "npbackup.compile" __author__ = "Orsiris de Jong" __copyright__ = "Copyright (C) 2023 NetInvent" __license__ = "GPL-3.0-only"