I developed a software with electron. It needs ffmpeg, but when I package it into appx, I won't be able to use ffmpeg.
let FFmpegPath = path.resolve(AppPath, "FFmpeg");
let FFMPEGPATH = path.resolve(FFmpegPath, "ffmpeg");
let FFPROBEPATH = path.resolve(FFmpegPath, "ffprobe");
let FFoption_V = '"'+FFPROBEPATH+'"' + " -i " +'"'+ path.normalize(PATH)+'"' + " -show_streams -select_streams v -of json";
EXEC_V = C_PRO.execSync(FFoption_V);
This is the information I found, but it doesn't seem to work for electron:https://learn.microsoft.com/en-us/windows/apps/desktop/modernize/desktop-to-uwp-extensions
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
xmlns:rescap=
"http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
xmlns:desktop="http://schemas.microsoft.com/appx/manifest/desktop/windows10">
...
<Capabilities>
<rescap:Capability Name="runFullTrust"/>
</Capabilities>
<Applications>
<Application>
<Extensions>
<desktop:Extension Category="windows.fullTrustProcess" Executable="fulltrustprocess.exe">
<desktop:FullTrustProcess>
<desktop:ParameterGroup GroupId="SyncGroup" Parameters="/Sync"/>
<desktop:ParameterGroup GroupId="OtherGroup" Parameters="/Other"/>
</desktop:FullTrustProcess>
</desktop:Extension>
</Extensions>
</Application>
</Applications>
</Package>