Skip to content

Commit 291647b

Browse files
committed
wip
1 parent 2d74da2 commit 291647b

File tree

3 files changed

+43
-30
lines changed

3 files changed

+43
-30
lines changed

.github/workflows/build-mac.yml

Lines changed: 24 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -204,33 +204,30 @@ jobs:
204204
set -eo pipefail
205205
./validate_audiounit.sh config.h
206206
207-
- name: Test AUv3 with auval
208-
shell: bash
209-
run: |
210-
set -eo pipefail
211-
APPEX_PATH="./${{matrix.project}}.app/Contents/PlugIns/${{matrix.project}}.appex"
212-
if [ -d "$APPEX_PATH" ]; then
213-
echo "Found AUv3 appex at $APPEX_PATH"
214-
215-
# Remove AUv2 component so auval finds the AUv3 (they share the same IDs)
216-
echo "Removing AUv2 component to avoid ID conflict..."
217-
rm -rf ~/Library/Audio/Plug-Ins/Components/${{matrix.project}}.component
218-
219-
# Install app to ~/Applications for AUv3 to be discoverable
220-
echo "Installing app to ~/Applications..."
221-
mkdir -p ~/Applications
222-
cp -R ./${{matrix.project}}.app ~/Applications/
223-
224-
echo "Registering AUv3 with pluginkit..."
225-
pluginkit -a ~/Applications/${{matrix.project}}.app/Contents/PlugIns/${{matrix.project}}.appex
226-
sleep 2
227-
pgrep -x AudioComponentRegistrar >/dev/null && killall -9 AudioComponentRegistrar; echo "killed AudioComponentRegistrar" || echo "AudioComponentRegistrar not running"
228-
sleep 3
229-
echo "Running auval for AUv3..."
230-
./validate_audiounit.sh config.h
231-
else
232-
echo "No AUv3 appex found at $APPEX_PATH - skipping AUv3 validation"
233-
fi
207+
# - name: Test AUv3 with auval
208+
# shell: bash
209+
# run: |
210+
# set -eo pipefail
211+
# APPEX_PATH="./${{matrix.project}}.app/Contents/PlugIns/${{matrix.project}}.appex"
212+
# if [ -d "$APPEX_PATH" ]; then
213+
# echo "Found AUv3 appex at $APPEX_PATH"
214+
# # Remove AUv2 component so auval finds the AUv3 (they share the same IDs)
215+
# echo "Removing AUv2 component to avoid ID conflict..."
216+
# rm -rf ~/Library/Audio/Plug-Ins/Components/${{matrix.project}}.component
217+
# # Install app to ~/Applications for AUv3 to be discoverable
218+
# echo "Installing app to ~/Applications..."
219+
# mkdir -p ~/Applications
220+
# cp -R ./${{matrix.project}}.app ~/Applications/
221+
# echo "Registering AUv3 with pluginkit..."
222+
# pluginkit -a ~/Applications/${{matrix.project}}.app/Contents/PlugIns/${{matrix.project}}.appex
223+
# sleep 2
224+
# pgrep -x AudioComponentRegistrar >/dev/null && killall -9 AudioComponentRegistrar; echo "killed AudioComponentRegistrar" || echo "AudioComponentRegistrar not running"
225+
# sleep 3
226+
# echo "Running auval for AUv3..."
227+
# ./validate_audiounit.sh config.h
228+
# else
229+
# echo "No AUv3 appex found at $APPEX_PATH - skipping AUv3 validation"
230+
# fi
234231

235232
# - name: Test AUv2 with auval (RTSafe)
236233
# shell: bash

TemplateProject/scripts/makezip-win.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,30 @@ def main():
6262
files = [
6363
projectpath + "\\build-win\\TemplateProject_x64.exe",
6464
projectpath + "\\build-win\\TemplateProject_ARM64EC.exe",
65-
projectpath + "\\build-win\\TemplateProject.clap",
6665
]
6766

6867
for f in files:
6968
if os.path.exists(f):
7069
print("adding " + f)
7170
zf.write(f, os.path.basename(f), zipfile.ZIP_DEFLATED)
7271

72+
# Add CLAP files - check postbuild location first, then build output
73+
clap_files = [
74+
# Postbuild locations
75+
(projectpath + "\\build-win\\TemplateProject_x64.clap", "TemplateProject_x64.clap"),
76+
(projectpath + "\\build-win\\TemplateProject_ARM64EC.clap", "TemplateProject_ARM64EC.clap"),
77+
# Build output locations (fallback)
78+
(projectpath + "\\build-win\\clap\\x64\\Release\\TemplateProject.clap", "TemplateProject_x64.clap"),
79+
(projectpath + "\\build-win\\clap\\ARM64EC\\Release\\TemplateProject.clap", "TemplateProject_ARM64EC.clap"),
80+
]
81+
82+
added_claps = set()
83+
for clap_path, archive_name in clap_files:
84+
if os.path.exists(clap_path) and archive_name not in added_claps:
85+
print("adding " + clap_path + " as " + archive_name)
86+
zf.write(clap_path, archive_name, zipfile.ZIP_DEFLATED)
87+
added_claps.add(archive_name)
88+
7389
zf.close()
7490
print("wrote " + zipname)
7591

TemplateProject/scripts/postbuild-win.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ if %PLATFORM% == "x64" (
199199
)
200200

201201
if %FORMAT% == ".clap" (
202-
echo copying x64 binary to build dir: %BUILD_DIR%\%NAME%.clap
203-
copy /y %BUILT_BINARY% %BUILD_DIR%\%NAME%.clap
202+
echo copying x64 binary to build dir: %BUILD_DIR%\%NAME%_x64.clap
203+
copy /y %BUILT_BINARY% %BUILD_DIR%\%NAME%_x64.clap
204204
if exist "%ICUDAT_PATH%" (
205205
copy /y %ICUDAT_PATH% %BUILD_DIR%
206206
)

0 commit comments

Comments
 (0)