メインコンテンツまでスキップ

📚 Source Page

Tutorial: Package your app or plugin for distribution

Learn how to prepare your audio application or plugin for distribution on various marketplaces. Create installers for all plugin types on different OS platforms.

Level: Advanced

Platforms: Windows, macOS

Plugin Format: VST, VST3, AU, AUv3, RTAS, AAX

Introduction

So you just finished implementing the perfect plugin, bug-free on all wrappers with the best optimisation possible but don't know where to start when it comes to distributing your masterpiece?

Then this tutorial is made for you! Preparing your application for distribution can be quite daunting when it comes to installations on your users' systems across a multitude of platforms. Marketplaces have become increasingly strict on their review process and the slight oversight can cause a resubmission of your binaries.

In this tutorial we will first look at installation locations for plugins, then jump into creating installers for Mac and Windows and finally end with marketplace submission best practices.

注記

To get the most out of this tutorial please have your built plugins and binaries ready for packaging.

Installation locations

Installing a plugin is nothing more than a simple copy step of the plugin into the right folder location on the user's machine.

When distributing a plugin, it's important to understand the installation locations for different plugin wrappers out there. The following table lists the directories in which your installer must copy the files into, depending on the target OS:

Plugin TypeDirectory TypeMac Installation Directory
VSTUser~/Library/Audio/Plug-Ins/VST
SystemMacintosh HD/Library/Audio/Plug-Ins/VST
VST3User~/Library/Audio/Plug-Ins/VST3
SystemMacintosh HD/Library/Audio/Plug-Ins/VST3
AUUser~/Library/Audio/Plug-Ins/Components
SystemMacintosh HD/Library/Audio/Plug-Ins/Components
RTASSystemMacintosh HD/Library/Application Support/Digidesign/Plug-Ins
AAXSystemMacintosh HD/Library/Application Support/Avid/Audio/Plug-Ins
Plugin TypeDirectory TypeWindows Installation Directory
VSTSharedC:\Program Files\VstPlugins
SharedC:\Program Files\Steinberg\VstPlugins
SharedC:\Program Files\Common Files\VST2
SharedC:\Program Files\Common Files\Steinberg\VST2
VST3SharedC:\Program Files\Common Files\VST3
RTASSharedC:\Program Files\Common Files\Digidesign\DAE\Plug-Ins
AAXSharedC:\Program Files\Common Files\Avid\Audio\Plug-Ins
注記

Add the " (x86)" suffix to the "Program Files" folder for 32-bit plugins on 64-bit systems.

It is generally recommended to install the plugins in the system folder or the "Common Files" directory as this is where most plugin manufacturers will install theirs and will have the benefit of making your plugin available to all users on the system. It will however require administrator permissions to perform the installation.

注記

For certain plugin formats such as AUv3 and AAX, extra steps such as code-signing and certificates are required for the installation process to succeed.

Installers for Mac

注記

If you are only interested in distributing for Windows, please skip to the next section Installers for Windows for more information.

Although manually creating an installer is possible, there are many tools out there that can perform this task easily for you. One such example is the free software Packages which we will use in this section to create the Mac installer.

Install the software from the website and launch the application. You should come across a window prompting you for the type of project to create:

New project window
New project window

Select "Distribution" and click the next Next button. You may now choose a name and a location to save the project as well as the required resources on the following screen:

Choosing a name and location for the project
Choosing a name and location for the project

Click on Create to start assembling the installer. The main project window should open now.

In the main window, start by adding packages by clicking on the + sign on the left panel for the number of plugin formats you want to install on the user's computer. For example to install VST/VST3/AU/RTAS/AAX, add five packages named accordingly with corresponding identifiers as shown in the following screenshot:

Adding packages
Adding packages

Next, select each package on the left panel and assign a unique identifier such as "com.yourcompany.pkg.format" and make sure that the "Require admin password for installation" checkbox is checked. (This is necessary to install plugins in the system folders as opposed to the user directories.)

Setting identifiers
Setting identifiers

The next step consists in configuring the payload which essentially tells the installer the location to copy the plugins. Make sure that the plugins are copied somewhere in the project directory for easy referencing. Select the Payload tab at the top of the interface and navigate to the installation directories for the corresponding plugin format as described in the previous section of this tutorial. If the necessary folder structure is not appearing in the navigation window, you can add the missing folders using Hierarchy > New Folder and name them accordingly. Then add the plugin to the desired location by clicking on Hierarchy > Add Files... and select the previously-copied plugins from your project folder.

Configuring the payload
Configuring the payload

Now let's customise the messages displayed during the installation process by choosing the Project entry from the left panel and selecting the Presentation tab as shown here:

Customising messages
Customising messages

In this screen, you can specify a location for a text file that will be used to show a custom message on the introduction screen of the installer. Click on the + sign to add an entry in the right hand side table and select Choose... to specify the location of the text file. Make sure to copy the text file into the project folder for easy referencing. You can repeat the process for the "Read Me" and "License" steps by clicking on the respective labels on the preview interface.

By selecting the "Installation Type" step of the interface we can modify the order of the package names to be installed, add descriptions to them and specify their default states as well as visibility.

Listing packages
Listing packages

If you are happy with the distribution and package settings, we can proceed to the final stage. Hit File > Save then Build > Build to start building the installer. If the procedure succeeds without error, you should see a screen like the following:

Building the distribution
Building the distribution

This will create a folder named build in the project folder with a .pkg file with your project name. Double-click on it to test the installation process.

Creating a disk image

To provide a more comprehensive and customisable package for your users to download, it is generally best practice to create a disk image or .dmg file from the .pkg file we created in the previous step. We can easily do this using the built-in Mac application Disk Utility found in the Applications/Utilities folder.

With your .pkg file ready for use, create a folder with the .pkg file and any additional documents you wish to include such as a "License" or "Read Me" file. This folder will be used to create the disk image and will be the content shown when unpacked.

Launch Disk Utility and navigate to File > New Image > Image from Folder... from the menu items and select the folder you just created.

Creating the disk image
Creating the disk image

Save the new disk image as a .dmg extension and select the "read/write" option from the Image Format field. When hitting Save, this should generate a modifiable disk image that we can customise in the next step. Open the newly-created disk image and you should see the contents of the folder used for its creation. You can then move the items around and optionally choose a background image by opening the Finder view options by navigating to View > Show View Options from the menu items.

Customising the appearance
Customising the appearance

When you are happy with the appearance of your disk image, you can simply eject the image as the changes will be saved automatically. Return to Disk Utility and navigate to Images > Convert... and select the .dmg file. Give it the final name you want your users to see by appending the .dmg extension and select the "read-only" option from the Image Format field.

Converting the disk image
Converting the disk image

Hit Convert and you should end up with the final disk image that you can confidently distribute to customers.

Creating a drag and drop installer

Instead of creating a .pkg distribution and letting the installer perform all the copy/paste actions for plugin installation, we can also create a simpler version of the disk image that involves the user a bit more. This method is more error-prone as the installation is essentially done by the user but gives more control for installation locations.

A drag and drop installer functions in a way where it presents folder aliases to installation locations on the user's system and invites the user to drag and drop the plugins into the appropriate folders through these aliases.

To create this type of disk image, follow the same steps described in the previous section to create a disk image with a folder containing all the necessary plugins. Then open the disk image as before in order to customise its appearance.

Now navigate to the desired plugin installation locations on your system for the plugin formats you are supporting (use the table at the beginning of the tutorial as a reference), select the folder and create an alias by navigating to File > Make Alias from the menu item. The newly-created alias can then be moved into the disk image and the folder will still point to the location in the system.

Alternative disk image
Alternative disk image

Now all the user has to do is drag and drop the plugins into the aliases in the disk image window to perform the installation.

注記

All the steps explained in this part of the tutorial were also applicable for packaging an application.

Installers for Windows

注記

If you are only interested in distributing for Mac, please jump to the previous section Installers for Mac for more information.

Manually creating an installer can be tedious but thankfully there are many tools out there that can perform this task easily for you. One such example is the free software Inno Setup which we will use in this section to create the Windows installer.

Install the software from the website and launch the application. You should come across a window with a code editor where we can write our own installer script.

Inno Setup main window
Inno Setup main window

An example Inno Setup Script or .iss file to install VST/VST3/RTAS/AAX plugins on Windows would look something like this:

[Setup]
AppName=TestPlugin
AppVersion=1.0.0
DefaultDirName={cf}
DefaultGroupName=TestPlugin
OutputBaseFilename=TestPlugin-windows

[Files]
Source: "TestPlugin.dll"; DestDir: "{app}\Steinberg\VST2"
Source: "TestPlugin.vst3"; DestDir: "{app}\Steinberg\VST3"
Source: "TestPlugin.dpm"; DestDir: "{app}\Digidesign\DAE\Plug-Ins"
Source: "TestPlugin.aaxplugin\*"; DestDir: "{app}\Avid\Audio\Plug-Ins\TestPlugin.aaxplugin"; Flags: recursesubdirs

Here we have general properties that we can set in the [Setup] section of the script and plugins we want to copy in specific folders in the [Files] section.

Certain shotcuts for common Windows path locations are available in this syntax format by enclosing the desired variable with curly brackets.

  • {pf}: Shortcut for "Program Files" located at C:\Program Files.
  • {cf}: Shortcut for "Common Files" located at C:\Program Files\Common Files.
  • {app}: Shortcut for the destination application directory chosen by the user during installation.

In order to specify the default installation directory, we set the DefaultDirName variable to the "Common Files" directory but the user can still choose to install the plugins elsewhere as seen here when running the setup installer:

Choosing the destination application directory
Choosing the destination application directory

To instruct the installer to copy each individual plugin format into the right directory, specify the source file from the working directory as the Source and the desired installation location as the DestDir in the [Files] section as individual lines.

Notice that the AAX plugin is packaged as a folder contrary to other plugin formats and therefore the recursesubdirs flag has to be set to instruct all the directory content to be copied.

When you are happy with the configuration of the script, hit Build > Compile to create the installer. This will generate a Setup application in a directory named Output by default in your working directory. The name of this installer will be chosen from the OutputBaseFilename variable of the [Setup] section of the script.

To test the installer directly within Inno Setup, hit Run > Run after successful compilation to launch the installer just generated.

When the user hits the Install button in the final step of the setup installer, the plugins will be copied to the appropriate folders specified in the script:

Installing the plugins
Installing the plugins
注記

All the steps explained in this part of the tutorial were also applicable for packaging an application.

Runtime library linking

警告

Due to a recent Windows 10 update, static linking of the runtime library has been deprecated and dynamic linking is suggested instead.

When building a plugin for Windows, JUCE will choose dynamic linking of runtime libraries by default. This universal runtime is now part of the system core from Windows 10 and therefore if your plugin only targets users with Windows 10, you should not encounter any problems. However, for Windows versions between 8.1 and Vista there is a chance that the universal runtime library is not installed on the customer's computer and the plugin will not work properly.

To remedy this problem, you can either prompt users to install the universal runtime through Windows Update themselves or supply an installer that downloads and installs this along with your plugin. Alternatively, you can also decide to build your plugins with static linking however, this is not recommended as Windows will restrict the number of plugins that can be loaded into a DAW to 64.

You can change the way JUCE links the runtime library in the Projucer here:

Runtime library linking
Runtime library linking

Marketplace submissions

Depending on the store you want to distribute your app on, different types of requirements exist. However, there are general guidelines that you can follow to accelerate the review process on most of these stores and these include:

  • Submitting an application that does not exhibit any crash or bug even in the most obscure use case.
  • Writing an accurate description of your application that reflects exactly what it does.
  • Supplying descriptions for all permissions and entitlements required by the application such as microphone and camera access.

You can easily supply a descriptive text when using microphone or camera access from the Projucer exporter settings as shown below:

Describing the reason for microphone access](tutorial_app_plugin_distribution_screenshot17.png) ![Describing the reason for camera access
Describing the reason for microphone access](tutorial_app_plugin_distribution_screenshot17.png) ![Describing the reason for camera access

Ensure that you enlist all required Capabilities/Entitlements for macOS/iOS such as "In-App Purchases" or "Push Notifications" capability:

Enabling iOS capabilities
Enabling iOS capabilities

On Android that means listing all required functionalities in the Android manifest by enabling relevant Projucer fields:

Enabling Android capabilities
Enabling Android capabilities

Failing to provide correct image sizes for icons is a common reason for rejected apps. Ensure that you have all required resources such as small and large icons included:

Assigning small and large icons
Assigning small and large icons

In order to provide the best user experience, ensure that you configure the minimum OS version requirements, such as "iOS Deployment Target" for iOS and "Minimum SDK version" on Android.

Setting the minimum iOS version](tutorial_app_plugin_distribution_screenshot22.png) ![Setting the minimum Android version
Setting the minimum iOS version](tutorial_app_plugin_distribution_screenshot22.png) ![Setting the minimum Android version

Finally, since JUCE does not use native UIs for interface design, you also need to be careful with the appearance of your app. Make sure you do not try to mimic native designs as these will be rejected.

概要

In this tutorial, we have learnt how to distribute an application or plugin. In particular, we have:

  • Learnt about the installation locations for plugins.
  • Created installers for Mac and Windows.
  • Discussed common mistakes when submitting binaries to marketplaces.

関連項目