-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.bat
88 lines (64 loc) · 4.09 KB
/
build.bat
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
@echo OFF
set outputDir=%1
set sourceDir=%2
set build_type=%3
set build_everythingPluginDir__debug=%outputDir%\AssistantPlugins\EverythingPlugin
set build_programPluginDir__debug=%outputDir%\AssistantPlugins\ProgramsPlugin
set build_wallpaperPluginDir__debug=%outputDir%\WallpaperPlugins\BaseWallPaperPlugin
set out_everythingPluginDir__debug=%outputDir%\DesktopManager\AssistantPlugins\EverythingPlugin
set out_programPluginDir__debug=%outputDir%\DesktopManager\AssistantPlugins\ProgramsPlugin
set out_wallpaperPluginDir__debug=%outputDir%\DesktopManager\WallpaperPlugins\BaseWallPaperPlugin
set out_thumbnailDir__debug=%outputDir%\thumbnail
echo %build_type%
if %build_type%=="release" (
set out_everythingPluginDir__release=%outputDir%\DesktopManager\release\AssistantPlugins\EverythingPlugin
set out_programPluginDir__release=%outputDir%\DesktopManager\release\AssistantPlugins\ProgramsPlugin
set out_wallpaperPluginDir__release=%outputDir%\DesktopManager\release\WallpaperPlugins\BaseWallPaperPlugin
set out_thumbnailPluginDir__release=%outputDir%\DesktopManager\release\thumbnail
mkdir "%out_everythingPluginDir__debug%"
mkdir "%out_programPluginDir__debug%"
mkdir "%out_wallpaperPluginDir__debug%"
mkdir "%out_thumbnailDir__debug%"
copy "%build_everythingPluginDir__debug%\release\EverythingPlugin.dll" "%out_everythingPluginDir__debug%"
copy "%sourceDir%\everything\dll\*.dll" "%out_everythingPluginDir__debug%\"
copy "%build_programPluginDir__debug%\release\ProgramsPlugin.dll" "%out_programPluginDir__debug%"
copy "%build_wallpaperPluginDir__debug%\release\BaseWallPaperPlugin.dll" "%out_wallpaperPluginDir__debug%"
copy "%sourceDir%\ffmpeg\bin\*" "%out_wallpaperPluginDir__debug%"
copy "%sourceDir%\MinHookDllDemo\MinHookDllDemo.dll" "%outputDir%\DesktopManager\MinHookDllDemo.dll"
copy "%out_everythingPluginDir__debug%" "%out_everythingPluginDir__release%"
copy "%out_programPluginDir__debug%" "%out_programPluginDir__release%"
copy "%out_wallpaperPluginDir__debug%" "%out_wallpaperPluginDir__release%"
copy "%outputDir%\DesktopManager\MinHookDllDemo.dll" "%outputDir%\DesktopManager\release\"
if not exist "%outputDir%\DesktopManager\release\setting.ini" (
copy "%sourceDir%\setting.ini" "%outputDir%\DesktopManager\release\"
)
if not exist "%outputDir%\DesktopManager\setting.ini" (
copy "%sourceDir%\setting.ini" "%outputDir%\DesktopManager\"
)
)
if %build_type% equ "profile" (
set out_everythingPluginDir__release=%outputDir%\DesktopManager\release\AssistantPlugins\EverythingPlugin
set out_programPluginDir__release=%outputDir%\DesktopManager\release\AssistantPlugins\ProgramsPlugin
set out_wallpaperPluginDir__release=%outputDir%\DesktopManager\release\WallpaperPlugins\BaseWallPaperPlugin
set out_thumbnailPluginDir__release=%outputDir%\DesktopManager\release\thumbnail
mkdir "%out_everythingPluginDir__debug%"
mkdir "%out_programPluginDir__debug%"
mkdir "%out_wallpaperPluginDir__debug%"
mkdir "%out_thumbnailDir__debug%"
copy "%build_everythingPluginDir__debug%\release\EverythingPlugin.dll" "%out_everythingPluginDir__debug%\EverythingPlugin.dll"
copy "%sourceDir%\everything\dll\*.dll" "%out_everythingPluginDir__debug%\"
copy "%build_programPluginDir__debug%\release\ProgramsPlugin.dll" "%out_programPluginDir__debug%\ProgramsPlugin.dll"
copy "%build_wallpaperPluginDir__debug%\release\BaseWallPaperPlugin.dll" "%out_wallpaperPluginDir__debug%\BaseWallPaperPlugin.dll"
copy "%sourceDir%\ffmpeg\bin\*" "%out_wallpaperPluginDir__debug%\"
copy "%sourceDir%\MinHookDllDemo\MinHookDllDemo.dll" "%outputDir%\DesktopManager\MinHookDllDemo.dll"
copy "%out_everythingPluginDir__debug%" "%out_everythingPluginDir__release%"
copy "%out_programPluginDir__debug%" "%out_programPluginDir__release%"
copy "%out_wallpaperPluginDir__debug%" "%out_wallpaperPluginDir__release%"
copy "%outputDir%\DesktopManager\MinHookDllDemo.dll" "%outputDir%\DesktopManager\release\MinHookDllDemo.dll"
if not exist "%outputDir%\DesktopManager\release\setting.ini" (
copy "%sourceDir%\setting.ini" "%outputDir%\DesktopManager\release\"
)
if not exist "%outputDir%\DesktopManager\setting.ini" (
copy "%sourceDir%\setting.ini" "%outputDir%\DesktopManager\"
)
)