Adding an automatic symlink for the Angular's app

This commit is contained in:
Zoe Roux 2021-03-04 22:56:14 +01:00
parent 1b1eafb901
commit 44323f42e7
3 changed files with 6 additions and 7 deletions

View File

@ -12,6 +12,7 @@
<!-- Set this to true if you enable server-side prerendering -->
<BuildServerSideRenderer>false</BuildServerSideRenderer>
<Company>SDG</Company>
<Authors>Zoe Roux</Authors>
<RepositoryUrl>https://github.com/AnonymusRaccoon/Kyoo</RepositoryUrl>
@ -88,6 +89,10 @@
<Exec WorkingDirectory="$(SpaRoot)" Command="npm install" />
</Target>
<Target Name="Symlink views to output - Linux" AfterTargets="Build" Condition="$(Configuration) == 'Debug' And $(OS) == 'Unix'">
<Exec WorkingDirectory="$(OutputPath)" Command="ln -fs ../../../Views"/>
</Target>
<Target Name="Compile the transcoder" BeforeTargets="BeforeBuild">
<Exec WorkingDirectory="$(TranscoderRoot)" Command="mkdir --parent build; cd build; cmake ..; make -j" />
<Copy SourceFiles="$(TranscoderRoot)/build/libtranscoder.so" DestinationFolder="." />
@ -103,8 +108,4 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<Folder Include="Models\DatabaseMigrations" />
<Folder Include="Models\DatabaseMigrations\Internal" />
</ItemGroup>
</Project>

View File

@ -199,9 +199,7 @@ namespace Kyoo
spa.Options.SourcePath = Path.Join(AppDomain.CurrentDomain.BaseDirectory, "Views/WebClient");
if (env.IsDevelopment())
{
spa.UseAngularCliServer("start");
}
});
}
}

@ -1 +1 @@
Subproject commit 09edd091b9bc75b697da4dc16eeaf9aadb9d4b05
Subproject commit 57d382f7246287a611892359e444355e745d0795