Skip to content

Commit

Permalink
Add step to move binaries on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwellmattryan committed Nov 16, 2024
1 parent 48865c0 commit 4cb730b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/reusable.build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,17 @@ jobs:
run: |
curl -LO "https://github.com/Tracktion/pluginval/releases/download/v1.0.3/pluginval_Windows.zip"
7z x pluginval_Windows.zip
./pluginval.exe --strictness-level 10 --verbose --validate "${{ env.VST3_PATH }}/Contents/x86_64-win/Rotor.vst3"
./pluginval.exe --strictness-level 10 --verbose --validate "${{ env.VST3_PATH }}/Contents/x86_64-win/${{ env.PLUGIN_NAME }}.vst3"
- name: Move Binaries (Windows)
if: ${{ runner.os == 'Windows' }}
run: |
mkdir -p dist
mv "${{ env.VST3_PATH }}/Contents/x86_64-win/${{ env.PLUGIN_NAME }}.vst" dist
- name: Upload VST3 (Windows)
if: ${{ inputs.upload_artifacts && runner.os == 'Windows' }}
uses: actions/upload-artifact@v4
with:
name: ${{ env.ARTIFACT_NAME }}
path: ${{ env.VST3_PATH }}/Contents/x86_64-win/Rotor.vst3
path: dist
19 changes: 7 additions & 12 deletions packaging/Rotor.iss
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,23 @@ Name: "custom"; Description: "Custom installation"; Flags: iscustom

; Components are used inside the script and can be composed of a set of Types
[Components]
name: "vst3"; Description: "VST3 plugin"; Types: standard custom
name: "vst3"; Description: "VST3 Plugin (.vst3)"; Types: standard custom

[Setup]
ArchitecturesInstallIn64BitMode=x64compatible
ArchitecturesAllowed=x64compatible
AppName={#PluginName}
OutputBaseFilename={#PluginName}-{#Version}-Windows
AppCopyright=Copyright (C) {#Year} {#Publisher}
AppPublisher={#Publisher}
AppVersion={#Version}
AppPublisher={#Publisher}
AppCopyright=Copyright (C) {#Year} {#Publisher}
ArchitecturesAllowed=x64compatible
ArchitecturesInstallIn64BitMode=x64compatible
DefaultDirName="{commoncf64}\VST3\{#PluginName}.vst3"
DisableDirPage=yes
OutputBaseFilename={#PluginName}-{#Version}-Windows
UsePreviousAppDir=no

; READ THE FOLLOWING!
LicenseFile="EULA"

; MSVC adds an .ilk file when building; it should be excluded
[Files]
Source: "..\{#PluginName}.vst3"; DestDir: "{commoncf64}\VST3\{#PluginName}.vst3"; Components: vst3

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

0 comments on commit 4cb730b

Please sign in to comment.