Skip to content

Commit 419cd94

Browse files
committed
- Update to DMXControl 3.1.2
- Update post build procedure to read app path of DMXControl 3 from the registry
1 parent 48110c5 commit 419cd94

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

MidiPlugin.Rules/AssemblyHelper.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ namespace MidiPlugin
99
public class AssemblyHelper : IAssemblyListener
1010
{
1111
public List<Type> DeviceRuleTypes = new List<Type>();
12-
public AssemblyHelper()
12+
13+
public Type[] ListeningTypes => DeviceRuleTypes.ToArray();
14+
15+
public AssemblyHelper()
1316
{
1417
AssemblyManager.getInstance().registerAssemblyListener(this);
1518
ContextManager.AssemblyHelper = this;

MidiPlugin.Rules/MidiPlugin.Rules.csproj

+2-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@
102102
</ItemGroup>
103103
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
104104
<PropertyGroup>
105-
<PostBuildEvent>copy /Y "$(TargetDir)$(TargetFileName)" "C:\Program Files (x86)\DMXControl3\GUI"</PostBuildEvent>
105+
<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"
106+
copy /Y "$(TargetDir)$(TargetFileName)" "%25DMXCRF%25\GUI"</PostBuildEvent>
106107
</PropertyGroup>
107108
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
108109
Other similar extension points exist, see Microsoft.Common.targets.

MidiPlugin.csproj

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<PlatformTarget>AnyCPU</PlatformTarget>
3232
</PropertyGroup>
3333
<PropertyGroup>
34-
<RunPostBuildEvent>Always</RunPostBuildEvent>
34+
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
3535
</PropertyGroup>
3636
<ItemGroup>
3737
<Reference Include="LumosGUI">
@@ -67,7 +67,7 @@
6767
</ItemGroup>
6868
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
6969
<PropertyGroup>
70-
<PostBuildEvent>copy /Y "$(TargetDir)$(TargetFileName)" "C:\Program Files (x86)\DMXControl3\GUI\Plugins"
71-
</PostBuildEvent>
70+
<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"
71+
copy /Y "$(TargetDir)$(TargetFileName)" "%25DMXCRF%25\GUI\Plugins"</PostBuildEvent>
7272
</PropertyGroup>
7373
</Project>

0 commit comments

Comments
 (0)