From 57fd5fae22642d35686224eac960c75575d1add4 Mon Sep 17 00:00:00 2001 From: RaidMax Date: Sun, 8 Apr 2018 01:44:27 -0500 Subject: [PATCH] add bat scripts --- WebfrontCore2/BuildScripts/PostBuild.bat | 16 ++++++++++++++++ WebfrontCore2/BuildScripts/PostPublish.bat | 9 +++++++++ WebfrontCore2/BuildScripts/PreBuild.bat | 3 +++ 3 files changed, 28 insertions(+) create mode 100644 WebfrontCore2/BuildScripts/PostBuild.bat create mode 100644 WebfrontCore2/BuildScripts/PostPublish.bat create mode 100644 WebfrontCore2/BuildScripts/PreBuild.bat diff --git a/WebfrontCore2/BuildScripts/PostBuild.bat b/WebfrontCore2/BuildScripts/PostBuild.bat new file mode 100644 index 000000000..2009b3abc --- /dev/null +++ b/WebfrontCore2/BuildScripts/PostBuild.bat @@ -0,0 +1,16 @@ +set SolutionDir=%1 +set ProjectDir=%2 +set TargetDir=%3 + +if not exist "%TargetDir%x86" ( + echo "Copying SQLCe binaries" + md "%TargetDir%x86" + xcopy /y "%SolutionDir%SharedLibrary\LibSQLCe\x86" "%TargetDir%x86\" +) + +if not exist "%TargetDir%Plugins" ( + echo "Making plugin dir" + md "%TargetDir%Plugins" +) + +xcopy /y "%SolutionDir%Build\Plugins" "%TargetDir%Plugins\" \ No newline at end of file diff --git a/WebfrontCore2/BuildScripts/PostPublish.bat b/WebfrontCore2/BuildScripts/PostPublish.bat new file mode 100644 index 000000000..e5486b1ab --- /dev/null +++ b/WebfrontCore2/BuildScripts/PostPublish.bat @@ -0,0 +1,9 @@ +set SolutionDir=%1 +set ProjectDir=%2 +set TargetDir=%3 + +if "TargetDir" == "*Undefined*" ( + echo "Copying extra files to publish dir" + xcopy /Y "%SolutionDir%BUILD\Plugins" "%SolutionDir%Publish\Plugins\" + xcopy /Y "%SolutionDir%SharedLibrary\LibSQLCe\x86" "%SolutionDir%Publish\x86\" +) \ No newline at end of file diff --git a/WebfrontCore2/BuildScripts/PreBuild.bat b/WebfrontCore2/BuildScripts/PreBuild.bat new file mode 100644 index 000000000..fbde9f9b5 --- /dev/null +++ b/WebfrontCore2/BuildScripts/PreBuild.bat @@ -0,0 +1,3 @@ +set SolutionDir=%1 +set ProjectDir=%2 +set TargetDir=%3