summaryrefslogtreecommitdiffstats
path: root/ComicRackWebViewer
diff options
context:
space:
mode:
Diffstat (limited to 'ComicRackWebViewer')
-rw-r--r--ComicRackWebViewer/ComicRackWebViewer.csproj13
-rw-r--r--ComicRackWebViewer/postbuild.bat13
2 files changed, 17 insertions, 9 deletions
diff --git a/ComicRackWebViewer/ComicRackWebViewer.csproj b/ComicRackWebViewer/ComicRackWebViewer.csproj
index 17d583a..ca49ccf 100644
--- a/ComicRackWebViewer/ComicRackWebViewer.csproj
+++ b/ComicRackWebViewer/ComicRackWebViewer.csproj
@@ -1541,16 +1541,11 @@
<DependentUpon>MainForm.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup>
- <ItemGroup>
- <Content Include="x64\SQLite.Interop.dll">
- <CopyToOutputDirectory>Always</CopyToOutputDirectory>
- </Content>
- <Content Include="x86\SQLite.Interop.dll">
- <CopyToOutputDirectory>Always</CopyToOutputDirectory>
- </Content>
- </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