Skip to content

Commit

Permalink
add LV2 plugin target (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
dromer authored Aug 7, 2024
1 parent dda1960 commit 74f3d2b
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ jobs:
path: |
${{github.workspace}}/build/blocks_artefacts/Release/Standalone
${{github.workspace}}/build/blocks_artefacts/Release/VST3
${{github.workspace}}/build/blocks_artefacts/Release/LV2
upload-to-s3:
needs: build
uses: ./.github/workflows/upload-to-s3.yml
secrets: inherit
with:
with:
file-name: blocks_linux
5 changes: 4 additions & 1 deletion .github/workflows/build-macos-13.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,21 @@ jobs:
codesign --force -s "${{ secrets.DEVELOPER_ID_APPLICATION }}" -v /Users/runner/work/blocks/blocks/build/blocks_artefacts/Release/Standalone/blocks.app --deep --strict --options=runtime --timestamp
codesign --force -s "${{ secrets.DEVELOPER_ID_APPLICATION }}" -v /Users/runner/work/blocks/blocks/build/blocks_artefacts/Release/AU/blocks.component --deep --strict --options=runtime --timestamp
codesign --force -s "${{ secrets.DEVELOPER_ID_APPLICATION }}" -v /Users/runner/work/blocks/blocks/build/blocks_artefacts/Release/VST3/blocks.vst3 --deep --strict --options=runtime --timestamp
codesign --force -s "${{ secrets.DEVELOPER_ID_APPLICATION }}" -v /Users/runner/work/blocks/blocks/build/blocks_artefacts/Release/LV2/blocks.lv2 --deep --strict --options=runtime --timestamp
- name: Create DMG, Notarize and Staple (macOS)
run: |
npm install -g appdmg
mkdir -p packaging/dmg
# Create directories for the dmg symlinks
sudo mkdir -m 755 -p /Library/Audio/Plug-Ins/Components && sudo mkdir -m 755 -p /Library/Audio/Plug-Ins/VST3 && sudo mkdir -m 755 -p /Applications
sudo mkdir -m 755 -p /Library/Audio/Plug-Ins/Components && sudo mkdir -m 755 -p /Library/Audio/Plug-Ins/VST3 && sudo mkdir -m 755 -p /Library/Audio/Plug-Ins/lv2 && sudo mkdir -m 755 -p /Applications
ln -s /Library/Audio/Plug-Ins/Components "packaging/dmg/Your Mac's Component folder"
ln -s /Library/Audio/Plug-Ins/VST3 "packaging/dmg/Your Mac's VST3 folder"
ln -s /Library/Audio/Plug-Ins/LV2 "packaging/dmg/Your Mac's LV2 folder"
ln -s /Applications "packaging/dmg/Your Mac's Applications folder"
mv "/Users/runner/work/blocks/blocks/build/blocks_artefacts/Release/VST3/blocks.vst3" packaging/dmg
mv "/Users/runner/work/blocks/blocks/build/blocks_artefacts/Release/LV2/blocks.lv2" packaging/dmg
mv "/Users/runner/work/blocks/blocks/build/blocks_artefacts/Release/AU/blocks.component" packaging/dmg
mv "/Users/runner/work/blocks/blocks/build/blocks_artefacts/Release/Standalone/blocks.app" packaging/dmg
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,21 @@ jobs:
codesign --force -s "${{ secrets.DEVELOPER_ID_APPLICATION }}" -v /Users/runner/work/blocks/blocks/build/blocks_artefacts/Release/Standalone/blocks.app --deep --strict --options=runtime --timestamp
codesign --force -s "${{ secrets.DEVELOPER_ID_APPLICATION }}" -v /Users/runner/work/blocks/blocks/build/blocks_artefacts/Release/AU/blocks.component --deep --strict --options=runtime --timestamp
codesign --force -s "${{ secrets.DEVELOPER_ID_APPLICATION }}" -v /Users/runner/work/blocks/blocks/build/blocks_artefacts/Release/VST3/blocks.vst3 --deep --strict --options=runtime --timestamp
codesign --force -s "${{ secrets.DEVELOPER_ID_APPLICATION }}" -v /Users/runner/work/blocks/blocks/build/blocks_artefacts/Release/LV2/blocks.lv2 --deep --strict --options=runtime --timestamp
- name: Create DMG, Notarize and Staple (macOS)
run: |
npm install -g appdmg
mkdir -p packaging/dmg
# Create directories for the dmg symlinks
sudo mkdir -m 755 -p /Library/Audio/Plug-Ins/Components && sudo mkdir -m 755 -p /Library/Audio/Plug-Ins/VST3 && sudo mkdir -m 755 -p /Applications
sudo mkdir -m 755 -p /Library/Audio/Plug-Ins/Components && sudo mkdir -m 755 -p /Library/Audio/Plug-Ins/VST3 && sudo mkdir -m 755 -p /Library/Audio/Plug-Ins/LV2 && sudo mkdir -m 755 -p /Applications
ln -s /Library/Audio/Plug-Ins/Components "packaging/dmg/Your Mac's Component folder"
ln -s /Library/Audio/Plug-Ins/VST3 "packaging/dmg/Your Mac's VST3 folder"
ln -s /Library/Audio/Plug-Ins/LV2 "packaging/dmg/Your Mac's LV2 folder"
ln -s /Applications "packaging/dmg/Your Mac's Applications folder"
mv "/Users/runner/work/blocks/blocks/build/blocks_artefacts/Release/VST3/blocks.vst3" packaging/dmg
mv "/Users/runner/work/blocks/blocks/build/blocks_artefacts/Release/LV2/blocks.lv2" packaging/dmg
mv "/Users/runner/work/blocks/blocks/build/blocks_artefacts/Release/AU/blocks.component" packaging/dmg
mv "/Users/runner/work/blocks/blocks/build/blocks_artefacts/Release/Standalone/blocks.app" packaging/dmg
Expand All @@ -63,5 +66,5 @@ jobs:
needs: build
uses: ./.github/workflows/upload-to-s3.yml
secrets: inherit
with:
file-name: blocks_mac.dmg
with:
file-name: blocks_mac.dmg
1 change: 1 addition & 0 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
name: blocks_win
path: |
D:/a/blocks/blocks/build/blocks_artefacts/Release/VST3/blocks.vst3/Contents/x86_64-win/blocks.vst3
D:/a/blocks/blocks/build/blocks_artefacts/Release/LV2/blocks.lv2
D:/a/blocks/blocks/build/blocks_artefacts/Release/Standalone/blocks.exe
upload-to-s3:
needs: build
Expand Down
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ juce_add_plugin(blocks
PLUGIN_MANUFACTURER_CODE Soon # A four-character manufacturer id with at least one upper-case character
PLUGIN_CODE Bloc # A unique four-character plugin id with exactly one upper-case character
# GarageBand 10.3 requires the first letter to be upper-case, and the remaining letters to be lower-case
FORMATS AU VST3 Standalone # The formats to build. Other valid formats are: AAX Unity VST AU AUv3
PRODUCT_NAME "blocks") # The name of the final executable, which can differ from the target name
FORMATS AU VST3 LV2 Standalone # The formats to build. Other valid formats are: AAX Unity VST AU AUv3
PRODUCT_NAME "blocks" # The name of the final executable, which can differ from the target name
LV2URI "https://github.com/dan-german/blocks")

# `juce_generate_juce_header` will create a JuceHeader.h for a given target, which will be generated
# into your build tree. This should be included with `#include <JuceHeader.h>`. The include path for
Expand Down

0 comments on commit 74f3d2b

Please sign in to comment.