Skip to content

Commit

Permalink
- Update to DMXControl 3.1.2
Browse files Browse the repository at this point in the history
- Update post build procedure to read app path of DMXControl 3 from the registry
  • Loading branch information
jpk6789 committed Jul 4, 2018
1 parent 48110c5 commit 419cd94
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
5 changes: 4 additions & 1 deletion MidiPlugin.Rules/AssemblyHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ namespace MidiPlugin
public class AssemblyHelper : IAssemblyListener
{
public List<Type> DeviceRuleTypes = new List<Type>();
public AssemblyHelper()

public Type[] ListeningTypes => DeviceRuleTypes.ToArray();

public AssemblyHelper()
{
AssemblyManager.getInstance().registerAssemblyListener(this);
ContextManager.AssemblyHelper = this;
Expand Down
3 changes: 2 additions & 1 deletion MidiPlugin.Rules/MidiPlugin.Rules.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>copy /Y "$(TargetDir)$(TargetFileName)" "C:\Program Files (x86)\DMXControl3\GUI"</PostBuildEvent>
<PostBuildEvent>FOR /F "skip=2 tokens=2,*" %25%25A IN ('reg.exe query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Lumos.exe" /v ""') DO set "DMXCRF=%25%25B"
copy /Y "$(TargetDir)$(TargetFileName)" "%25DMXCRF%25\GUI"</PostBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down
6 changes: 3 additions & 3 deletions MidiPlugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<PlatformTarget>AnyCPU</PlatformTarget>
</PropertyGroup>
<PropertyGroup>
<RunPostBuildEvent>Always</RunPostBuildEvent>
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="LumosGUI">
Expand Down Expand Up @@ -67,7 +67,7 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>copy /Y "$(TargetDir)$(TargetFileName)" "C:\Program Files (x86)\DMXControl3\GUI\Plugins"
</PostBuildEvent>
<PostBuildEvent>FOR /F "skip=2 tokens=2,*" %25%25A IN ('reg.exe query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Lumos.exe" /v ""') DO set "DMXCRF=%25%25B"
copy /Y "$(TargetDir)$(TargetFileName)" "%25DMXCRF%25\GUI\Plugins"</PostBuildEvent>
</PropertyGroup>
</Project>

0 comments on commit 419cd94

Please sign in to comment.