mirror of
https://github.com/netinvent/npbackup.git
synced 2025-02-23 22:15:43 +08:00
Added example compile scripts
This commit is contained in:
parent
8d3d171c82
commit
0951835be3
3 changed files with 28 additions and 1 deletions
18
bin/COMPILE.cmd
Normal file
18
bin/COMPILE.cmd
Normal 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
9
bin/COMPILE.sh
Normal 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
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue