summaryrefslogtreecommitdiff
path: root/Plugins/skins/ZIP/doit.bat
blob: a222ed758ef47df7cd34e843f114e3b6a4ae0538 (plain)
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
rem @echo off

rem Batch file to build and upload files
rem 
rem TODO: Integration with FL

set name=skins

rem To upload, this var must be set here or in other batch
rem set ftp=ftp://<user>:<password>@<ftp>/<path>

echo Building %name% ...

rem msdev ..\%name%.dsp /MAKE "%name% - Win32 Release" /REBUILD
rem msdev ..\%name%.dsp /MAKE "%name% - Win32 Unicode Release" /REBUILD

echo Generating files for %name% ...

del *.zip
del *.dll
del *.pdb
rd /S /Q Plugins
rd /S /Q Docs
rd /S /Q Skins
rd /S /Q src

copy ..\Docs\%name%_changelog.txt
copy ..\Docs\%name%_version.txt
copy ..\Docs\%name%_readme.txt
mkdir Skins
cd Skins
mkdir Default
cd Default
copy ..\..\..\..\mydetails\data\Skins\Default\*.msk
cd..
cd..
mkdir Docs
cd Docs
del /Q *.*
copy ..\..\Docs\%name%_readme.txt
copy ..\..\Docs\langpack_%name%.txt
copy ..\..\m_%name%.h
copy ..\..\m_%name%_cpp.h
cd ..
copy ..\Release\%name%.pdb
copy "..\Unicode_Release\%name%W.pdb"

mkdir Plugins
cd Plugins
copy "..\..\..\..\bin\release unicode\Plugins\%name%W.dll"
copy "..\..\Unicode_Release\%name%W.pdb"
copy "..\..\..\..\bin\release\Plugins\mydetails.dll"
copy "..\..\..\mydetails\Release\mydetails.pdb"
cd ..

"C:\Program Files\Filzip\Filzip.exe" -a -rp %name%W.zip Plugins Docs Skins


cd Plugins
del /Q %name%W.dll
del /Q %name%W.pdb
copy "..\..\..\..\bin\release\Plugins\%name%.dll"
copy ..\..\Release\%name%.pdb
cd ..

"C:\Program Files\Filzip\Filzip.exe" -a -rp %name%.zip Plugins Docs Skins

"C:\Program Files\Filzip\Filzip.exe" -a -rp %name%_src.zip src\*.*
"C:\Program Files\Filzip\Filzip.exe" -a -rp %name%.pdb.zip %name%.pdb
"C:\Program Files\Filzip\Filzip.exe" -a -rp %name%W.pdb.zip %name%W.pdb

del *.pdb
rd /S /Q Plugins
rd /S /Q Docs
rd /S /Q Skins
rd /S /Q src

if "%ftp%"=="" GOTO END

echo Going to upload files...
pause

"C:\Program Files\FileZilla\FileZilla.exe" -u .\%name%.zip %ftp% -overwrite -close 
"C:\Program Files\FileZilla\FileZilla.exe" -u .\%name%W.zip %ftp% -overwrite -close 
"C:\Program Files\FileZilla\FileZilla.exe" -u .\%name%.pdb.zip %ftp% -overwrite -close 
"C:\Program Files\FileZilla\FileZilla.exe" -u .\%name%W.pdb.zip %ftp% -overwrite -close 
"C:\Program Files\FileZilla\FileZilla.exe" -u .\%name%_changelog.txt %ftp% -overwrite -close 
"C:\Program Files\FileZilla\FileZilla.exe" -u .\%name%_version.txt %ftp% -overwrite -close 
"C:\Program Files\FileZilla\FileZilla.exe" -u .\%name%_readme.txt %ftp% -overwrite -close 


:END

echo Done.