Skip to content

Commit

Permalink
Merge branch 'main' into sccache
Browse files Browse the repository at this point in the history
  • Loading branch information
sudara committed Dec 26, 2023
2 parents 0e0aecb + 87bebfa commit 1dc3f75
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 11 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/cmake_ctest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,10 @@ jobs:
shell: bash
run: |
echo "ARTIFACTS_PATH=${{ env.BUILD_DIR }}/${{ env.PROJECT_NAME }}_artefacts/${{ env.BUILD_TYPE }}" >> $GITHUB_ENV
echo "VST3_PATH=${{ env.PROJECT_NAME }}_artefacts/${{ env.BUILD_TYPE }}/VST3/${{ env.PRODUCT_NAME }}.vst3" >> $GITHUB_ENV
echo "AU_PATH=${{ env.PROJECT_NAME }}_artefacts/${{ env.BUILD_TYPE }}/AU/${{ env.PRODUCT_NAME }}.component" >> $GITHUB_ENV
echo "AUV3_PATH=${{ env.PROJECT_NAME }}_artefacts/${{ env.BUILD_TYPE }}/AUv3/${{ env.PRODUCT_NAME }}.appex" >> $GITHUB_ENV
echo "VST3_PATH=${{ env.ARTIFACTS_PATH }}/VST3/${{ env.PRODUCT_NAME }}.vst3" >> $GITHUB_ENV
echo "AU_PATH=${{ env.ARTIFACTS_PATH }}/AU/${{ env.PRODUCT_NAME }}.component" >> $GITHUB_ENV
echo "AUV3_PATH=${{ env.ARTIFACTS_PATH }}/AUv3/${{ env.PRODUCT_NAME }}.appex" >> $GITHUB_ENV
echo "STANDALONE_PATH=${{ env.ARTIFACTS_PATH }}/Standalone/${{ env.PRODUCT_NAME }}.app" >> $GITHUB_ENV
echo "ARTIFACT_NAME=${{ env.PRODUCT_NAME }}-${{ env.VERSION }}-${{ matrix.name }}" >> $GITHUB_ENV
- name: Pluginval
Expand All @@ -144,6 +145,7 @@ jobs:
# Each plugin must be code signed
codesign --force -s "${{ secrets.DEVELOPER_ID_APPLICATION}}" -v "${{ env.VST3_PATH }}" --deep --strict --options=runtime --timestamp
codesign --force -s "${{ secrets.DEVELOPER_ID_APPLICATION}}" -v "${{ env.AU_PATH }}" --deep --strict --options=runtime --timestamp
codesign --force -s "${{ secrets.DEVELOPER_ID_APPLICATION}}" -v "${{ env.STANDALONE_PATH }}" --deep --strict --options=runtime --timestamp
- name: Add Custom Icons (macOS)
if: ${{ matrix.name == 'macOS' }}
Expand Down Expand Up @@ -175,8 +177,9 @@ jobs:
sudo mkdir -m 755 -p /Library/Audio/Plug-Ins/Components && sudo mkdir -m 755 -p /Library/Audio/Plug-Ins/VST3
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"
mv "${{ env.ARTIFACTS_PATH }}/VST3/${{ env.PRODUCT_NAME }}.vst3" packaging/dmg
mv "${{ env.ARTIFACTS_PATH }}/AU/${{ env.PRODUCT_NAME }}.component" packaging/dmg
mv "${{ env.VST3_PATH }}" packaging/dmg
mv "${{ env.AU_PATH }}" packaging/dmg
mv "${{ env.STANDALONE_PATH }}" packaging/dmg
# Run appdmg to create the .dmg
cd packaging && appdmg dmg.json "${{ env.ARTIFACT_NAME}}.dmg"
Expand Down
10 changes: 6 additions & 4 deletions packaging/dmg.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@
},
"format": "UDZO",
"contents": [
{ "x": 250, "y": 245, "type": "file", "path": "dmg/Pamplejuce Demo.component" },
{ "x": 480, "y": 245, "type": "file", "path": "dmg/Your Mac's Component Folder" },
{ "x": 250, "y": 405, "type": "file", "path": "dmg/Pamplejuce Demo.vst3" },
{ "x": 480, "y": 405, "type": "file", "path": "dmg/Your Mac's VST3 Folder" }
{ "x": 250, "y": 200, "type": "file", "path": "dmg/Pamplejuce Demo.app" },
{ "x": 480, "y": 200, "type": "link", "path": "/Applications" },
{ "x": 250, "y": 300, "type": "file", "path": "dmg/Pamplejuce Demo.component" },
{ "x": 480, "y": 300, "type": "file", "path": "dmg/Your Mac's Component Folder" },
{ "x": 250, "y": 400, "type": "file", "path": "dmg/Pamplejuce Demo.vst3" },
{ "x": 480, "y": 400, "type": "file", "path": "dmg/Your Mac's VST3 Folder" }
]
}
19 changes: 17 additions & 2 deletions packaging/installer.iss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@
#define Publisher GetEnv('COMPANY_NAME')
#define Year GetDateTimeString("yyyy","","")

; 'Types': What get displayed during the setup
[Types]
Name: "full"; Description: "Full installation"
Name: "custom"; Description: "Custom installation"; Flags: iscustom

; Components are used inside the script and can be composed of a set of 'Types'
[Components]
Name: "standalone"; Description: "Standalone application"; Types: full custom
Name: "vst3"; Description: "VST3 plugin"; Types: full custom

[Setup]
ArchitecturesInstallIn64BitMode=x64
ArchitecturesAllowed=x64
Expand All @@ -24,10 +34,15 @@ Type: filesandordirs; Name: "{commoncf64}\VST3\{#ProductName}Data"

; MSVC adds a .ilk when building the plugin. Let's not include that.
[Files]
Source: "..\Builds\{#ProjectName}_artefacts\Release\VST3\{#ProductName}.vst3\*"; DestDir: "{commoncf64}\VST3\{#ProductName}.vst3\"; Excludes: *.ilk; Flags: ignoreversion recursesubdirs;
Source: "..\Builds\{#ProjectName}_artefacts\Release\VST3\{#ProductName}.vst3\*"; DestDir: "{commoncf64}\VST3\{#ProductName}.vst3\"; Excludes: *.ilk; Flags: ignoreversion recursesubdirs; Components: vst3
Source: "..\Builds\{#ProjectName}_artefacts\Release\Standalone\{#ProductName}.exe"; DestDir: "{commonpf64}\{#Publisher}\{#ProductName}"; Flags: ignoreversion; Components: standalone

[Icons]
Name: "{autoprograms}\{#ProductName}"; Filename: "{commonpf64}\{#Publisher}\{#ProductName}\{#ProductName}.exe"; Components: standalone
Name: "{autoprograms}\Uninstall {#ProductName}"; Filename: "{uninstallexe}"

[Run]
Filename: "{cmd}"; \
WorkingDir: "{commoncf64}\VST3"; \
Parameters: "/C mklink /D ""{commoncf64}\VST3\{#ProductName}Data"" ""{commonappdata}\{#ProductName}"""; \
Flags: runascurrentuser;
Flags: runascurrentuser; Components: vst3

0 comments on commit 1dc3f75

Please sign in to comment.