diff options
Diffstat (limited to 'ComicRackWebViewer')
-rw-r--r-- | ComicRackWebViewer/ComicRackWebViewer.csproj | 5 | ||||
-rw-r--r-- | ComicRackWebViewer/postbuild.bat | 13 |
2 files changed, 17 insertions, 1 deletions
diff --git a/ComicRackWebViewer/ComicRackWebViewer.csproj b/ComicRackWebViewer/ComicRackWebViewer.csproj index 30b8387..aa5e7e7 100644 --- a/ComicRackWebViewer/ComicRackWebViewer.csproj +++ b/ComicRackWebViewer/ComicRackWebViewer.csproj @@ -1577,7 +1577,10 @@ <Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
- <Import Project="$(SolutionDir)\.nuget\nuget.targets" />
+ <PropertyGroup>
+ <PostBuildEvent>$(ProjectDir)postbuild.bat "$(ProjectDir)" "$(TargetDir)"
+</PostBuildEvent>
+ </PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
diff --git a/ComicRackWebViewer/postbuild.bat b/ComicRackWebViewer/postbuild.bat new file mode 100644 index 0000000..836a9d5 --- /dev/null +++ b/ComicRackWebViewer/postbuild.bat @@ -0,0 +1,13 @@ +xcopy "%~1FreeImage\FreeImage.32bit.dll" "%~2" /y +xcopy "%~1FreeImage\FreeImage.64bit.dll" "%~2" /y +xcopy "%~1SQLite\SQLite.Interop.32bit.dll" "%~2" /y +xcopy "%~1SQLite\SQLite.Interop.64bit.dll" "%~2" /y + +IF NOT EXIST "%~2\tablet\index.html" GOTO copy_tablet + +exit /b 0 + +:copy_tablet +rem md "%~2\tablet" +rem xcopy "%~1tablet\*.*" "%~2\tablet" /y /E +mklink /D /J "%~2\tablet" "%~1tablet"
\ No newline at end of file |