diff --git a/LICENSE.txt b/LICENSE.txt index 15ac559..ca5d702 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -6101,6 +6101,11 @@ docs/license.html_lib. +----------------------------- +Suspected Unspecified License +----------------------------- + + --------------- Original SSLeay --------------- diff --git a/build.md b/build.md index 3f7d084..cc25dbd 100644 --- a/build.md +++ b/build.md @@ -3,23 +3,25 @@ To build the Helix-Blender plugin for DAM, follow these steps: -1. Download the source code from the GitHub repository and unzip the source code archive. +1. Ensure you have Python (>=3.9) installed. -2. Open a terminal (macOS) or PowerShell (Windows), and navigate to the directory where the source code was unzipped by running the following command: +2. Download the source code from the GitHub repository and unzip the source code archive. + +3. Open a terminal (macOS) or PowerShell (Windows), and navigate to the directory where the source code was unzipped by running the following command: ```bash cd /path/to/unzipped/source ``` -3. Run the build command based on your operating system: +4. Run the build command based on your operating system: - For **macOS**, run: ```bash sh ./buildscripts/github_compile.sh ``` - - For **Windows**, run the following command in PowerShell as Administrator: + - For **Windows**, run the following command in cmd: ```powershell powershell -ExecutionPolicy Bypass -File .\buildscripts\github_compile.ps1 ``` -4. After the build succeeds, the final output will be generated in the same directory with the name `helix_blender_plugin.zip`. +5. After the build succeeds, the final output will be generated in the same directory with the name `helix_blender_plugin.zip`. This zip file contains the built plugin and is ready for use. diff --git a/buildscripts/github_compile.ps1 b/buildscripts/github_compile.ps1 index 7d65639..95ab4f7 100644 --- a/buildscripts/github_compile.ps1 +++ b/buildscripts/github_compile.ps1 @@ -17,7 +17,14 @@ if (Test-Path "venv") { New-Item -ItemType Directory -Path "venv" -py -m venv venv +# Try to run the script using 'py' +$pythonCommand = "py" +if (-not (Get-Command $pythonCommand -ErrorAction SilentlyContinue)) { + # Fallback to 'python' if 'py' is not available + $pythonCommand = "python" +} + +& $pythonCommand -m venv venv & "$build\src\helix_blender_plugin\dam_app\venv\Scripts\Activate.ps1" python.exe -m pip install --upgrade pip