mirror of
https://gitee.com/LongbowEnterprise/BootstrapBlazor.git
synced 2024-11-30 02:58:37 +08:00
25 lines
436 B
Bash
Executable File
25 lines
436 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ $1 = "" ]; then
|
|
echo Please provider SolutionDir like: "$(MSBuildThisFileDirectory)"
|
|
exit 1
|
|
fi
|
|
|
|
if [ $2 = "" ]; then
|
|
echo Please provider TargetDir like: "$(TargetDir)publish"
|
|
exit 1
|
|
fi
|
|
|
|
sourceDir=$2/wwwroot/
|
|
targetDir=$1../../dist/
|
|
|
|
echo "Ready to copy files to dist"
|
|
|
|
echo copy $sourceDir $targetDir
|
|
|
|
\cp -rf $sourceDir $targetDir
|
|
|
|
\cp -f $targetDir/404.html $targetDir/index.html
|
|
|
|
echo Sync success!
|