-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2a611fa
commit 7830361
Showing
9 changed files
with
75,294 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
# Helix-Blender Plugin for DAM - Build Instructions | ||
|
||
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. | ||
|
||
2. 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: | ||
- For **macOS**, run: | ||
```bash | ||
sh ./buildscripts/github_compile.sh | ||
``` | ||
- For **Windows**, run the following command in PowerShell as Administrator: | ||
```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`. | ||
|
||
This zip file contains the built plugin and is ready for use. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
$build = (Get-Location).Path | ||
|
||
$pluginsDir = "$build\helix_blender_plugin" | ||
|
||
if (Test-Path $pluginsDir) { | ||
Remove-Item -Recurse -Force $pluginsDir | ||
} | ||
|
||
New-Item -ItemType Directory -Path $pluginsDir | ||
New-Item -ItemType Directory -Path "$pluginsDir\site_packages" | ||
|
||
Set-Location "$build\src\helix_blender_plugin\dam_app" | ||
|
||
if (Test-Path "venv") { | ||
Remove-Item -Recurse -Force "venv" | ||
} | ||
|
||
New-Item -ItemType Directory -Path "venv" | ||
|
||
py -m venv venv | ||
& "$build\src\helix_blender_plugin\dam_app\venv\Scripts\Activate.ps1" | ||
|
||
python.exe -m pip install --upgrade pip | ||
python.exe -m pip install pyinstaller | ||
python.exe -m pip install -r requirements-win.txt | ||
|
||
pyinstaller PSWebView.py --name="HelixBlenderPlugin.exe" ` | ||
--icon="icon/plugin_402x.ico" ` | ||
--add-data="icon/*:icon" ` | ||
--add-data="logs/config.xml:logs" ` | ||
--onefile | ||
|
||
# The chmod command isn't relevant on Windows, as executable permissions work differently | ||
|
||
Copy-Item -Recurse -Force "venv\Lib\site-packages\psutil*" "$pluginsDir\site_packages" | ||
Copy-Item -Recurse -Force "dist\HelixBlenderPlugin.exe" $pluginsDir | ||
Copy-Item -Recurse -Force "logs" $pluginsDir | ||
Copy-Item -Recurse -Force "icon" $pluginsDir | ||
Copy-Item -Recurse -Force "..\*.py" $pluginsDir | ||
|
||
Remove-Item -Recurse -Force "venv", "build", "dist" | ||
|
||
deactivate | ||
|
||
Set-Location $build | ||
|
||
Compress-Archive -Path "$pluginsDir" -DestinationPath "helix_blender_plugin.zip" -Force | ||
|
||
Remove-Item -Recurse -Force $pluginsDir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#!/bin/bash | ||
|
||
build=`pwd` | ||
|
||
pluginsDir=$build/helix_blender_plugin | ||
if [ -d $pluginsDir ]; then | ||
rm -rf $pluginsDir | ||
fi | ||
mkdir -p $pluginsDir | ||
mkdir -p $pluginsDir/site_packages | ||
|
||
cd src/helix_blender_plugin/dam_app | ||
|
||
if [ -d "venv" ]; then | ||
rm -rf "venv" | ||
fi | ||
|
||
mkdir -m 777 venv | ||
|
||
python3 -m venv venv | ||
source venv/bin/activate | ||
|
||
python3 -m pip install --upgrade pip | ||
python3 -m pip install pyinstaller | ||
python3 -m pip install -r requirements-mac.txt | ||
cp icon/plugin_402x.ico icon/plugin_402x.icns | ||
|
||
pyinstaller PSWebView.py --name="HelixBlenderPlugin" \ | ||
--icon="icon/plugin_402x.icns" \ | ||
--add-data="icon/*:icon" \ | ||
--add-data="logs/config.xml:logs" \ | ||
--onefile | ||
|
||
chmod +x dist/HelixBlenderPlugin | ||
|
||
cp -f -r venv/lib/python3*/site-packages/psutil* $pluginsDir/site_packages | ||
cp -f -r dist/HelixBlenderPlugin $pluginsDir/ | ||
cp -f -r logs $pluginsDir/ | ||
cp -f -r icon $pluginsDir/ | ||
cp -f -r ../*.py $pluginsDir/ | ||
|
||
rm -rf venv build dist | ||
|
||
deactivate | ||
|
||
cd $build | ||
|
||
zip -rq helix_blender_plugin.zip helix_blender_plugin | ||
|
||
rm -rf helix_blender_plugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
psutil==6.0.0 | ||
PyQt5==5.15.11 | ||
PyQt5-Qt5==5.15.15 | ||
PyQt5_sip==12.15.0 | ||
PyQtWebEngine==5.15.7 | ||
PyQtWebEngine-Qt5==5.15.15 |
Binary file not shown.
60,201 changes: 60,201 additions & 0 deletions
60,201
src/helix_blender_plugin/dam_app/resources/photoshop_plugin_rc.py
Large diffs are not rendered by default.
Oops, something went wrong.
2,414 changes: 2,414 additions & 0 deletions
2,414
src/helix_blender_plugin/dam_app/resources/pswebview_rc.py
Large diffs are not rendered by default.
Oops, something went wrong.
12,548 changes: 12,548 additions & 0 deletions
12,548
src/helix_blender_plugin/dam_app/resources/spectrum_components_rc.py
Large diffs are not rendered by default.
Oops, something went wrong.