-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_build.cmd
More file actions
76 lines (64 loc) · 1.98 KB
/
Copy path_build.cmd
File metadata and controls
76 lines (64 loc) · 1.98 KB
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
set src=hoard
set dst=_deploy
call :incrementBuild
rd /s /q %dst%
md %dst%
set dst=%dst%\hoard
md %dst%
copy LICENSE %dst%
copy README.md %dst%
copy %src%\build_number.txt %dst%
copy %src%\config.json.example %dst%
copy %src%\config.py %dst%
copy %src%\filesystem.py %dst%
copy %src%\flags.py %dst%
copy %src%\gallery.html %dst%
copy %src%\handle_directory.py %dst%
copy %src%\handle_file.py %dst%
copy %src%\handle_flag.py %dst%
copy %src%\handle_request.py %dst%
copy %src%\handle_thumbnail.py %dst%
copy %src%\log.py %dst%
copy %src%\main.py %dst%
copy %src%\plugins.py %dst%
copy %src%\requirements.txt %dst%
copy %src%\resources.py %dst%
copy %src%\start.bat %dst%
copy %src%\stats.py %dst%
set src=%src%\resources
set dst=%dst%\resources
md %dst%
copy %src%\background.webp %dst%
copy %src%\DejaVuSansMono.ttf %dst%
copy %src%\Enso.png %dst%
copy %src%\Enso.png_LICENSE %dst%
copy %src%\favicon.svg %dst%
copy %src%\gallery.js %dst%
copy %src%\hoard3.png %dst%
copy %src%\style.css %dst%
copy %src%\thumbnail-placeholder.png %dst%
copy %src%\thumbs.js %dst%
copy %src%\viewer-mask.png %dst%
set /p extdeps=Include external dependencies such as dcraw? (y/n):
set src=%src%\external_dependencies
if "%extdeps%"=="y" (
copy %src%\*.* %dst%
)
:: render plugins (drop-in .py files)
set dst=_deploy\hoard\plugins
md _deploy\hoard\plugins
copy hoard\plugins\*.py %dst%
copy hoard\plugins\*.md %dst%
set dst=_deploy
explorer %dst%
:: todo: make a separate build for Windows,
:: run venv and pip install -r on it
:: then zip the result automatically
goto :eof
:incrementBuild
if not exist %src%\build_number.txt echo 0 > %src%\build_number.txt
set /p _build=<%src%\build_number.txt
set /a _build+=1
echo %_build% > %src%\build_number.txt
echo Build #%_build%
exit /b