Skip to content

Commit

Permalink
Merge pull request #387 from microsoft/pete-dev
Browse files Browse the repository at this point in the history
Merge in latest SDK and tools updates
  • Loading branch information
Psychlist1972 authored Sep 4, 2024
2 parents bfc29fb + c31ebd0 commit bc94917
Show file tree
Hide file tree
Showing 862 changed files with 21,271 additions and 144,055 deletions.
2 changes: 2 additions & 0 deletions .nuke/build.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
"items": {
"type": "string",
"enum": [
"BuildAndPackageElectronProjection",
"BuildAndPackAllAppSDKs",
"BuildAndPublishAll",
"BuildAppSdkRuntimeAndToolsInstaller",
Expand All @@ -83,6 +84,7 @@
"items": {
"type": "string",
"enum": [
"BuildAndPackageElectronProjection",
"BuildAndPackAllAppSDKs",
"BuildAndPublishAll",
"BuildAppSdkRuntimeAndToolsInstaller",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,11 @@ unzip them, copy to appropriate folders under node_modules, and then make these
copy windows.devices.midi2 folder from projection to node_modules in sample

To deal with mismatch node_module versions:
https://www.electronjs.org/docs/latest/tutorial/using-native-node-modules

in projection windows.devices.midi2 folder:
in projection microsoft.windows.devices.midi2 and all similar folders:

in electron sample folder
npm install --save-dev electron
npm install --save-dev @electron/rebuild
node_modules\.bin\electron-rebuild
Expand Down
17 changes: 17 additions & 0 deletions build/electron-projection/electron-midi-sample/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Main Process",
"type": "node",
"request": "launch",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron",
"windows": {
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron.cmd"
},
"args" : ["."],
"outputCapture": "std"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>


<file name="Microsoft.Windows.Devices.Midi2.Initialization.dll">
<activatableClass
name="Microsoft.Windows.Devices.Midi2.Initialization.MidiServiceInitializer"
name="Microsoft.Windows.Devices.Midi2.Initialization.MidiServicesInitializer"
threadingModel="both"
xmlns="urn:schemas-microsoft-com:winrt.v1" />
</file>

<file name="Microsoft.Windows.Devices.Midi2.dll">
<activatableClass
name="Microsoft.Windows.Devices.Midi2.MidiChannel"
Expand Down Expand Up @@ -66,16 +65,12 @@
name="Microsoft.Windows.Devices.Midi2.MidiSession"
threadingModel="both"
xmlns="urn:schemas-microsoft-com:winrt.v1" />
</file>

<file name="Microsoft.Windows.Devices.Midi2.CapabilityInquiry.dll">

<activatableClass
name="Microsoft.Windows.Devices.Midi2.CapabilityInquiry.MidiUniqueId"
threadingModel="both"
xmlns="urn:schemas-microsoft-com:winrt.v1" />
</file>

<file name="Microsoft.Windows.Devices.Midi2.ClientPlugins.dll">
<activatableClass
name="Microsoft.Windows.Devices.Midi2.ClientPlugins.MidiChannelEndpointListener"
threadingModel="both"
Expand All @@ -88,20 +83,16 @@
name="Microsoft.Windows.Devices.Midi2.ClientPlugins.MidiMessageTypeEndpointListener"
threadingModel="both"
xmlns="urn:schemas-microsoft-com:winrt.v1" />
</file>

<file name="Microsoft.Windows.Devices.Midi2.Diagnostics.dll">

<activatableClass
name="Microsoft.Windows.Devices.Midi2.Diagnostics.MidiDiagnostics"
threadingModel="both"
xmlns="urn:schemas-microsoft-com:winrt.v1" />
<activatableClass
name="Microsoft.Windows.Devices.Midi2.Diagnostics.MidiReporting"
name="Microsoft.Windows.Devices.Midi2.Reporting.MidiReporting"
threadingModel="both"
xmlns="urn:schemas-microsoft-com:winrt.v1" />
</file>

<file name="Microsoft.Windows.Devices.Midi2.Messages.dll">

<activatableClass
name="Microsoft.Windows.Devices.Midi2.Messages.MidiMessageBuilder"
threadingModel="both"
Expand All @@ -118,16 +109,12 @@
name="Microsoft.Windows.Devices.Midi2.Messages.MidiStreamMessageBuilder"
threadingModel="both"
xmlns="urn:schemas-microsoft-com:winrt.v1" />
</file>

<file name="Microsoft.Windows.Devices.Midi2.ServiceConfig.dll">
<activatableClass
name="Microsoft.Windows.Devices.Midi2.ServiceConfig.MidiServiceConfig"
threadingModel="both"
xmlns="urn:schemas-microsoft-com:winrt.v1" />
</file>

<file name="Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.dll">
<activatableClass
name="Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.MidiLoopbackEndpointCreationConfig"
threadingModel="both"
Expand All @@ -140,9 +127,7 @@
name="Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.MidiLoopbackEndpointManager"
threadingModel="both"
xmlns="urn:schemas-microsoft-com:winrt.v1" />
</file>

<file name="Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.dll">
<activatableClass
name="Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.MidiVirtualDeviceCreationConfig"
threadingModel="both"
Expand All @@ -151,51 +136,17 @@
name="Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.MidiVirtualDeviceManager"
threadingModel="both"
xmlns="urn:schemas-microsoft-com:winrt.v1" />
</file>

<file name="Microsoft.Windows.Devices.Midi2.Utilities.SysEx.dll">
<activatableClass
name="Microsoft.Windows.Devices.Midi2.Utilities.SysEx.MidiSystemExclusiveSender"
threadingModel="both"
xmlns="urn:schemas-microsoft-com:winrt.v1" />
<activatableClass
name="Microsoft.Windows.Devices.Midi2.Utilities.SysEx.MidiSystemExclusiveMessageHelper"
name="Microsoft.Windows.Devices.Midi2.Utilities.SysExTransfer.MidiSystemExclusiveMessageHelper"
threadingModel="both"
xmlns="urn:schemas-microsoft-com:winrt.v1" />
</file>

<file name="Microsoft.Windows.Devices.Midi2.VirtualPatchBay.dll">
<activatableClass
name="Microsoft.Windows.Devices.Midi2.VirtualPatchBay.MidiVirtualPatchBayRouteCreationConfig"
name="Microsoft.Windows.Devices.Midi2.Utilities.SysExTransfer.MidiSystemExclusiveSender"
threadingModel="both"
xmlns="urn:schemas-microsoft-com:winrt.v1" />
<activatableClass
name="Microsoft.Windows.Devices.Midi2.VirtualPatchBay.MidiVirtualPatchBayRouteRemovalConfig"
threadingModel="both"
xmlns="urn:schemas-microsoft-com:winrt.v1" />
<activatableClass
name="Microsoft.Windows.Devices.Midi2.VirtualPatchBay.MidiVirtualPatchBayRouteUpdateConfig"
threadingModel="both"
xmlns="urn:schemas-microsoft-com:winrt.v1" />
<activatableClass
name="Microsoft.Windows.Devices.Midi2.VirtualPatchBay.MidiVirtualPatchBayDestinationDefinition"
threadingModel="both"
xmlns="urn:schemas-microsoft-com:winrt.v1" />
<activatableClass
name="Microsoft.Windows.Devices.Midi2.VirtualPatchBay.MidiVirtualPatchBayRouteDefinition"
threadingModel="both"
xmlns="urn:schemas-microsoft-com:winrt.v1" />
<activatableClass
name="Microsoft.Windows.Devices.Midi2.VirtualPatchBay.MidiVirtualPatchBaySourceDefinition"
threadingModel="both"
xmlns="urn:schemas-microsoft-com:winrt.v1" />
<activatableClass
name="Microsoft.Windows.Devices.Midi2.VirtualPatchBay.MidiVirtualPatchBayManager"
threadingModel="both"
xmlns="urn:schemas-microsoft-com:winrt.v1" />
xmlns="urn:schemas-microsoft-com:winrt.v1" />
</file>


</assembly>


21 changes: 21 additions & 0 deletions build/electron-projection/electron-midi-sample/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'">
<title>Hello World!</title>
</head>
<body>
<h1>Windows MIDI Services Sample</h1>
We are using Node.js <span id="node-version"></span>,
Chromium <span id="chrome-version"></span>,
and Electron <span id="electron-version"></span>.

<p>Shamelessly took the hello world example from https://www.electronjs.org/docs/latest/tutorial/quick-start and adapted it. </p>

<div id="endpointListElement">
</div>


</body>
</html>
Loading

0 comments on commit bc94917

Please sign in to comment.