Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
119 lines (81 sloc) 2.84 KB
# Script to gather files for ASP.NET version
# Create output folder
$path = $(get-location).ToString() + "\output";
$dir = new-object "System.IO.DirectoryInfo" -argumentlist $path;
if (!$dir.Exists) { $dir.Create(); }
$path = $(get-location).ToString() + "\output\aspnet";
$dir = new-object "System.IO.DirectoryInfo" -argumentlist $path;
if ($dir.Exists) {
Remove-Item $path\* -recurse;
Start-Sleep -s 1;
}
else {
$dir.Create();
}
# copy files
copy LICENSE $path
copy NOTICE $path
# create folders
mkdir $path\cover
mkdir $path\mangacache
# HTML files
copy source\aspnetserver\*.html $path
copy source\aspnetserver\favicon.ico $path
# CSS files
mkdir $path\css
copy source\aspnetserver\css\*.css $path\css
# js files
mkdir $path\js
copy source\aspnetserver\js\afung.MangaWeb3.Client.Admin.js $path\js
copy source\aspnetserver\js\afung.MangaWeb3.Client.Install.js $path\js
copy source\aspnetserver\js\afung.MangaWeb3.Client.js $path\js
copy source\aspnetserver\js\afung.MangaWeb3.Common.js $path\js
copy source\aspnetserver\js\mscorlib.js $path\js
copy source\aspnetserver\js\bootstrap.min.js $path\js
copy source\aspnetserver\js\jquery-1.9.0.min.js $path\js
copy source\aspnetserver\js\jquery.touch.js $path\js
copy source\aspnetserver\js\json2.js $path\js
copy source\aspnetserver\js\add2home.js $path\js
copy source\aspnetserver\js\servertype.js $path\js
# debug js files
if ($false) {
copy source\aspnetserver\js\afung.MangaWeb3.Client.Admin.debug.js $path\js
copy source\aspnetserver\js\afung.MangaWeb3.Client.Install.debug.js $path\js
copy source\aspnetserver\js\afung.MangaWeb3.Client.debug.js $path\js
copy source\aspnetserver\js\afung.MangaWeb3.Common.debug.js $path\js
copy source\aspnetserver\js\mscorlib.debug.js $path\js
}
# img files
mkdir $path\img
copy source\aspnetserver\img\*.* $path\img
# lang files
mkdir $path\lang
copy source\aspnetserver\lang\*.* $path\lang
# template files
mkdir $path\template
copy source\aspnetserver\template\*.* $path\template
# files needed during install
copy source\aspnetserver\empty.pdf $path
copy source\aspnetserver\install.sql $path
# aspx files
copy source\aspnetserver\*.aspx $path
copy source\aspnetserverinstall\*.aspx $path
# binary files
mkdir $path\bin
copy source\aspnetserver\bin\*.dll $path\bin
copy source\aspnetserverinstall\bin\afung.MangaWeb3.Server.Install.dll $path\bin
# debug files
if ($false) {
copy source\aspnetserver\bin\*.pdb $path\bin
copy source\aspnetserverinstall\bin\afung.MangaWeb3.Server.Install.pdb $path\bin
}
# web.config
copy source\aspnetserver\web.config $path
# ckfinder
if ($true) {
mkdir $path\ckfinder
Copy-Item external_libraries\ckfinder_aspnet\* $path\ckfinder -recurse -force;
copy source\ckfinder\config.js $path\ckfinder -force
copy source\ckfinder\config.ascx $path\ckfinder -force
copy external_libraries\ckfinder_aspnet\bin\Release\CKFinder.dll $path\bin -force
}