File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 380380
381381 <Message Importance =" High" Text =" Electron setup failed!" Condition =" '$(ExecExitCode)' != '0'" />
382382
383+ <!-- Fix up incorrect symlinks created by npm on Windows when targeting macOS -->
384+ <PropertyGroup >
385+ <_ElectronFrameworksDir >$(ElectronOutDir)node_modules\electron\dist\Electron.app\Contents\Frameworks</_ElectronFrameworksDir >
386+ </PropertyGroup >
387+
388+ <ItemGroup >
389+ <_ElectronFrameworkDirs Include =" $(_ElectronFrameworksDir)\Electron Framework.framework" />
390+ <_ElectronFrameworkDirs Include =" $(_ElectronFrameworksDir)\Mantle.framework" />
391+ <_ElectronFrameworkDirs Include =" $(_ElectronFrameworksDir)\ReactiveObjC.framework" />
392+ <_ElectronFrameworkDirs Include =" $(_ElectronFrameworksDir)\Squirrel.framework" />
393+ </ItemGroup >
394+
395+ <!-- Only execute on Windows host when targeting macOS -->
396+ <Message Importance =" High" Text =" Fixing macOS framework Resources symlinks" Condition =" '$(ElectronPlatform)' == 'mac' AND '$(_CurrentOSPlatform)' == 'win'" />
397+
398+ <Exec Command =" cmd /c del Resources && mklink /D Resources " Versions\Current\Resources" " WorkingDirectory =" %(_ElectronFrameworkDirs.Identity)" Condition =" '$(ElectronPlatform)' == 'mac' AND '$(_CurrentOSPlatform)' == 'win'" />
399+
383400 </Target >
384401
385402 <Target Name =" BeforePublishElectronApp" BeforeTargets =" PrepareForPublish" >
You can’t perform that action at this time.
0 commit comments