Skip to content

Commit 1baa6f4

Browse files
Merge pull request #1 from plugdata-team/develop
Develop
2 parents b563989 + 6bd6cfa commit 1baa6f4

File tree

6 files changed

+48
-8
lines changed

6 files changed

+48
-8
lines changed

.github/workflows/cmake.yml

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,23 @@ jobs:
4141
submodules: recursive
4242
fetch-depth: 0
4343

44+
- name: ccache
45+
uses: hendrikmuhs/ccache-action@v1.2
46+
with:
47+
key: win64
48+
49+
- name: Set up MSVC environment
50+
uses: ilammy/msvc-dev-cmd@v1
51+
with:
52+
arch: x64
53+
54+
- name: Install Ninja
55+
uses: seanmiddleditch/gha-setup-ninja@v3
56+
4457
- name: Build plugins
4558
shell: bash
4659
run: |
47-
python3 ./build.py
60+
python3 ./build.py --compiler-launcher ccache
4861
mv Build Build-Win64
4962
5063
- name: Archive Artifacts
@@ -62,10 +75,23 @@ jobs:
6275
submodules: recursive
6376
fetch-depth: 0
6477

78+
- name: ccache
79+
uses: hendrikmuhs/ccache-action@v1.2
80+
with:
81+
key: win32
82+
83+
- name: Set up MSVC environment
84+
uses: ilammy/msvc-dev-cmd@v1
85+
with:
86+
arch: Win32
87+
88+
- name: Install Ninja
89+
uses: seanmiddleditch/gha-setup-ninja@v3
90+
6591
- name: Build plugins
6692
shell: bash
6793
run: |
68-
python3 ./build.py
94+
python3 ./build.py --compiler-launcher ccache
6995
mv Build Build-Win32
7096
7197
- name: Archive Artifacts

Plugins/the gusher.zip

372 KB
Binary file not shown.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ Example:
4848
| `path` | `string` | Path to the patch location within the repository. Can be a **folder** or a **.zip** file. |
4949
| `formats` | `array` | List of plugin formats to build. Valid values: `VST3`, `AU`, `CLAP`, `LV2`, `Standalone`. |
5050
| `type` | `string` | Type of plugin: either `"fx"` for effects or `"instrument"` for instruments/synths. |
51-
5251
---
5352

5453
### Optional Fields
5554

5655
| Field | Type | Description |
5756
|------------------|-----------|-------------|
57+
| `version` | `string` | Plugin version, new versions will not install correctly unless you increment this. <br>_Default: "1.0.0"
5858
| `enable_gem` | `boolean` | Enables experimental [GEM](https://puredata.info/downloads/Gem) support <br>_Default: `false`_ |
5959
| `enable_sfizz` | `boolean` | Enables the `[sfz~]` object for SFZ sample playback. <br>_Default: `false`_ |
6060
| `enable_ffmpeg` | `boolean` | Enables FFmpeg-based audio objects. <br>Recommended if your patch plays audio files. <br>_Default: `false`_ |

build.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,11 @@
1414
)
1515
args = parser.parse_args()
1616

17-
# Detect platform and choose CMake generator
1817
system = platform.system()
1918
if system == "Windows":
20-
cmake_generator = ["-G", "Visual Studio 17 2022"]
19+
cmake_compiler = ["-DCMAKE_C_COMPILER=cl", "-DCMAKE_CXX_COMPILER=cl"]
2120
else:
22-
cmake_generator = ["-G", "Ninja"]
21+
cmake_compiler = []
2322

2423
# Load config.json
2524
with open("config.json") as f:
@@ -46,17 +45,20 @@
4645
print(f"\nProcessing: {name}")
4746

4847
author = plugin.get("author", False)
48+
version = plugin.get("version", "1.0.0")
4949
enable_gem = plugin.get("enable_gem", False)
5050
enable_sfizz = plugin.get("enable_sfizz", False)
5151
enable_ffmpeg = plugin.get("enable_ffmpeg", False)
5252

5353
cmake_configure = [
5454
"cmake",
55-
*cmake_generator,
55+
"-GNinja",
56+
*cmake_compiler,
5657
f"-B{build_dir}",
5758
f"-DCUSTOM_PLUGIN_NAME={name}",
5859
f"-DCUSTOM_PLUGIN_PATH={zip_path}",
5960
f"-DCUSTOM_PLUGIN_COMPANY={author}",
61+
f"-DCUSTOM_PLUGIN_VERSION={version}",
6062
"-DCMAKE_BUILD_TYPE=Release",
6163
f"-DENABLE_GEM={'1' if enable_gem else '0'}",
6264
f"-DENABLE_SFIZZ={'1' if enable_sfizz else '0'}",

config.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@
55
"path": "Plugins/N-TILT.zip",
66
"formats": ["VST3", "AU", "LV2", "CLAP", "Standalone"],
77
"type": "fx",
8+
"version": "1.0.0",
9+
"enable_gem": false,
10+
"enable_sfizz": false,
11+
"enable_ffmpeg": false
12+
},
13+
{
14+
"name": "the gusher",
15+
"author": "(un)familiar.",
16+
"path": "Plugins/the gusher.zip",
17+
"formats": ["VST3", "AU", "LV2"],
18+
"type": "fx",
19+
"version": "1.0.0",
820
"enable_gem": false,
921
"enable_sfizz": false,
1022
"enable_ffmpeg": false

0 commit comments

Comments
 (0)