/
gather_aspnet.ps1
118 lines (81 loc) · 2.84 KB
/
gather_aspnet.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# 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.8.2.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 ($true) {
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
}