-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
build.bat
216 lines (170 loc) · 5.96 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
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
@echo off
SET FOLD=BuiltPlugins
SET DEPS=Dependencies
SET quit=true
rmdir /q /s %FOLD%
mkdir %FOLD%
copy %DEPS%\* %FOLD%\
if "%1%"=="hotkey" (goto hotkeyaction)
if "%1%"=="mediakey" (goto mediakeyaction)
if "%1%"=="obs-suite" (goto obssuite)
if "%1%"=="playaudioclip" (goto playaudioclipaction)
if "%1%"=="runcommand" (goto runcommandaction)
if "%1%"=="textblock" (goto textblockaction)
if "%1%"=="twitch-talk" (goto twitch)
if "%1%"=="twitter" (goto twitteraction)
if "%1%"=="website" (goto websiteaction)
if "%1%"=="webhook" (goto webhookaction)
if "%1%"=="openfile" (goto openfileaction)
if "%1%"=="runexecutable" (goto runexecutableaction)
if "%1%"=="digitalclock" (goto digitalclockaction)
if NOT "%1%"=="" (
echo Invalid argument %1%
EXIT /B 0
)
set quit=false
:hotkeyaction
pushd %CD%
cd hotkeyaction
call mvn clean -Dmaven.test.skip package
move target\hotkeyaction-*.jar ..\%FOLD%\hotkeyaction.jar
popd
if "%quit%" == "true" (EXIT /B 0)
:mediakeyaction
pushd %CD%
cd mediakeyaction
call mvn clean -Dmaven.test.skip package
move target\mediakeyaction-*.jar ..\%FOLD%\mediakeyaction.jar
popd
if "%quit%" == "true" (EXIT /B 0)
:obssuite
pushd %CD%
cd obssuite\
CALL mvn clean -Dmaven.test.skip package
cd mother
move target\obssuite_motheraction-*.jar ..\..\%FOLD%\obssuite_motheraction.jar
cd ..\setcurrentprofile
move target\obssuite_setcurrentprofileaction-*.jar ..\..\%FOLD%\obssuite_setcurrentprofileaction.jar
cd ..\setcurrentscene
move target\obssuite_setcurrentsceneaction-*.jar ..\..\%FOLD%\obssuite_setcurrentsceneaction.jar
cd ..\setcurrenttransition
move target\obssuite_setcurrenttransitionaction-*.jar ..\..\%FOLD%\obssuite_setcurrenttransitionaction.jar
cd ..\togglemute
move target\obssuite_togglemuteaction-*.jar ..\..\%FOLD%\obssuite_togglemuteaction.jar
cd ..\setcurrentprofile
move target\obssuite_setcurrentprofileaction-*.jar ..\..\%FOLD%\obssuite_setcurrentprofileaction.jar
cd ..\setpreviewscene
move target\obssuite_setpreviewsceneaction-*.jar ..\..\%FOLD%\obssuite_setpreviewsceneaction.jar
cd ..\togglerecording
move target\obssuite_togglerecordingaction-*.jar ..\..\%FOLD%\obssuite_togglerecordingaction.jar
cd ..\setreplaybuffer
move target\obssuite_setreplaybufferaction-*.jar ..\..\%FOLD%\obssuite_setreplaybufferaction.jar
cd ..\togglestreaming
move target\obssuite_togglestreamingaction-*.jar ..\..\%FOLD%\obssuite_togglestreamingaction.jar
cd ..\togglestudiomode
move target\obssuite_togglestudiomodeaction-*.jar ..\..\%FOLD%\obssuite_togglestudiomodeaction.jar
cd ..\togglesourcevisibility
move target\obssuite_togglesourcevisibility-*.jar ..\..\%FOLD%\obssuite_togglesourcevisibility.jar
cd ..\togglesourcefiltervisibility
move target\obssuite_togglesourcefiltervisibility-*.jar ..\..\%FOLD%\obssuite_togglesourcefiltervisibility.jar
cd ..\setvolume
move target\obssuite_setvolumeaction-*.jar ..\..\%FOLD%\obssuite_setvolumeaction.jar
popd
if "%quit%" == "true" (EXIT /B 0)
:playaudioclipaction
pushd %CD%
cd playaudioclipaction
call mvn clean -Dmaven.test.skip package
move target\playaudioclipaction-*.jar ..\%FOLD%\playaudioclipaction.jar
popd
if "%quit%" == "true" (EXIT /B 0)
:runcommandaction
pushd %CD%
cd runcommandaction
call mvn clean -Dmaven.test.skip package
move target\runcommandaction-*.jar ..\%FOLD%\runcommandaction.jar
popd
if "%quit%" == "true" (EXIT /B 0)
:textblockaction
pushd %CD%
cd textblockaction
call mvn clean -Dmaven.test.skip package
move target\textblockaction-*.jar ..\%FOLD%\textblockaction.jar
popd
if "%quit%" == "true" (EXIT /B 0)
:twitch
pushd %CD%
cd twitch-chat-action
CALL mvn clean -Dmaven.test.skip package
cd twitch-chat-connect
move target\twitch-chat-connect-*.jar ..\..\%FOLD%\twitch-chat-connect.jar
cd ..\send-channel-msg
move target\twitch-send-channel-msg-*.jar ..\..\%FOLD%\twitch-send-channel-msg.jar
cd ..\clear-chat
move target\twitch-clear-chat-*.jar ..\..\%FOLD%\twitch-clear-chat.jar
cd ..\set-color
move target\twitch-set-color-*.jar ..\..\%FOLD%\twitch-set-color.jar
cd ..\whisper
move target\twitch-whisper-*.jar ..\..\%FOLD%\twitch-whisper.jar
cd ..\unraid
move target\twitch-unraid-*.jar ..\..\%FOLD%\twitch-unraid.jar
cd ..\unhost
move target\twitch-unhost-*.jar ..\..\%FOLD%\twitch-unhost.jar
cd ..\add-stream-marker
move target\twitch-add-stream-marker-*.jar ..\..\%FOLD%\twitch-add-stream-marker.jar
cd ..\host-channel
move target\twitch-host-channel-*.jar ..\..\%FOLD%\twitch-host-channel.jar
cd ..\raid-channel
move target\twitch-raid-channel-*.jar ..\..\%FOLD%\twitch-raid-channel.jar
cd ..\start-commercial
move target\twitch-start-commercial-*.jar ..\..\%FOLD%\twitch-start-commercial.jar
cd ..\subs-only
move target\twitch-subs-only-*.jar ..\..\%FOLD%\twitch-subs-only.jar
cd ..\slow-mode
move target\twitch-slow-mode-*.jar ..\..\%FOLD%\twitch-slow-mode.jar
cd ..\emote-only
move target\twitch-emote-only-*.jar ..\..\%FOLD%\twitch-emote-only.jar
popd
if "%quit%" == "true" (EXIT /B 0)
:twitteraction
pushd %CD%
cd twitteraction
call mvn clean -Dmaven.test.skip package
move target\twitteraction-*.jar ..\%FOLD%\twitteraction.jar
popd
if "%quit%" == "true" (EXIT /B 0)
:websiteaction
pushd %CD%
cd websiteaction
call mvn clean -Dmaven.test.skip package
move target\websiteaction-*.jar ..\%FOLD%\websiteaction.jar
popd
if "%quit%" == "true" (EXIT /B 0)
:webhookaction
pushd %CD%
cd webhookaction
call mvn clean -Dmaven.test.skip package
move target\webhookaction-*.jar ..\%FOLD%\webhookaction.jar
popd
if "%quit%" == "true" (EXIT /B 0)
:openfileaction
pushd %CD%
cd openfileaction
call mvn clean -Dmaven.test.skip package
move target\openfileaction-*.jar ..\%FOLD%\openfileaction.jar
popd
if "%quit%" == "true" (EXIT /B 0)
:runexecutableaction
pushd %CD%
cd runexecutableaction
call mvn clean -Dmaven.test.skip package
move target\runexecutableaction-*.jar ..\%FOLD%\runexecutableaction.jar
popd
if "%quit%" == "true" (EXIT /B 0)
:digitalclockaction
pushd %CD%
cd digitalclockaction
call mvn clean -Dmaven.test.skip package
move target\digitalclockaction-*.jar ..\%FOLD%\digitalclockaction.jar
popd
if "%quit%" == "true" (EXIT /B 0)