From 1bb0c4ce3d0ca3ddf8777e1653eb033992e0dffb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Capelle?= Date: Sun, 30 Jun 2024 19:43:50 +0200 Subject: [PATCH] Add scripts to generate prebuilt. --- scripts/make-boost-prebuilt.ps1 | 9 +++++++++ scripts/make-pyqt-prebuilt.ps1 | 13 +++++++++++++ scripts/make-python-prebuilt.ps1 | 10 ++++++++++ 3 files changed, 32 insertions(+) create mode 100644 scripts/make-boost-prebuilt.ps1 create mode 100644 scripts/make-pyqt-prebuilt.ps1 create mode 100644 scripts/make-python-prebuilt.ps1 diff --git a/scripts/make-boost-prebuilt.ps1 b/scripts/make-boost-prebuilt.ps1 new file mode 100644 index 0000000..bb2d5f8 --- /dev/null +++ b/scripts/make-boost-prebuilt.ps1 @@ -0,0 +1,9 @@ +param( + [Parameter(Mandatory = $true)][String]$Path, + [Parameter(Mandatory = $true)][String]$Output +) + +7z a $Output (Join-Path -Path $Path -ChildPath "boost") +7z a $Output (Join-Path -Path $Path -ChildPath "lib32-msvc-14.3") +7z a $Output (Join-Path -Path $Path -ChildPath "lib64-msvc-14.3") +7z a $Output (Join-Path -Path $Path -ChildPath "LICENSE_1_0.txt") diff --git a/scripts/make-pyqt-prebuilt.ps1 b/scripts/make-pyqt-prebuilt.ps1 new file mode 100644 index 0000000..dc82929 --- /dev/null +++ b/scripts/make-pyqt-prebuilt.ps1 @@ -0,0 +1,13 @@ +param( + [Parameter(Mandatory = $true)][String]$PyQtPath, + [Parameter(Mandatory = $true)][String]$PythonPath, + [Parameter(Mandatory = $true)][String]$Output +) + +$Output = [IO.Path]::GetFullPath($Output) + +7z a $Output (Join-Path -Path $PyQtPath -ChildPath "LICENSE") + +Push-Location $PythonPath +7z a $Output "Lib/site-packages/PyQt6" "-xr!__pycache__" +Pop-Location diff --git a/scripts/make-python-prebuilt.ps1 b/scripts/make-python-prebuilt.ps1 new file mode 100644 index 0000000..eb3572f --- /dev/null +++ b/scripts/make-python-prebuilt.ps1 @@ -0,0 +1,10 @@ +param( + [Parameter(Mandatory = $true)][String]$Path, + [Parameter(Mandatory = $true)][String]$Output +) + +7z a $Output (Join-Path -Path $Path -ChildPath "PCbuild/amd64") "-xr!pythoncore_temp" +7z rn $Output "amd64" "PCbuild/amd64" +7z a $Output (Join-Path -Path $Path -ChildPath "Include") "-xr!internal" "-xr!sip.h" +7z a $Output (Join-Path -Path $Path -ChildPath "Lib") "-xr!__pycache__" "-xr!site-packages" +7z a $Output (Join-Path -Path $Path -ChildPath "LICENSE")