Added example compile scripts

This commit is contained in:
Orsiris de Jong 2023-03-26 15:36:17 +02:00
parent 8d3d171c82
commit 0951835be3
3 changed files with 28 additions and 1 deletions

18
bin/COMPILE.cmd Normal file
View file

@ -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

9
bin/COMPILE.sh Normal file
View file

@ -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

View file

@ -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"