mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-07-21 08:05:57 +00:00
Fix psl dist folder issue by copying from source after npm install
This commit is contained in:
@@ -397,6 +397,19 @@
|
||||
|
||||
<Exec Command="cmd /c del Resources && mklink /D Resources "Versions\Current\Resources"" WorkingDirectory="%(_ElectronFrameworkDirs.Identity)" Condition="'$(ElectronPlatform)' == 'mac' AND '$(_CurrentOSPlatform)' == 'win'" />
|
||||
|
||||
<!-- Fix psl dist folder issue - copy from source if it exists -->
|
||||
<PropertyGroup>
|
||||
<_PslSourceDist>$(ElectronSourceFilesPath)\node_modules\psl\dist</_PslSourceDist>
|
||||
<_PslTargetDist>$(ElectronOutDir)node_modules\psl\dist</_PslTargetDist>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<_PslDistFiles Include="$(_PslSourceDist)\**\*.*" Condition="Exists('$(_PslSourceDist)')" />
|
||||
</ItemGroup>
|
||||
|
||||
<Message Importance="High" Text="Copying psl dist folder from source" Condition="@(_PslDistFiles->Count()) > 0" />
|
||||
<Copy SourceFiles="@(_PslDistFiles)" DestinationFolder="$(_PslTargetDist)\%(RecursiveDir)" Condition="@(_PslDistFiles->Count()) > 0" />
|
||||
|
||||
</Target>
|
||||
|
||||
<Target Name="BeforePublishElectronApp" BeforeTargets="PrepareForPublish">
|
||||
|
||||
Reference in New Issue
Block a user