@@ -106,7 +106,22 @@ jobs:
106
106
run : |
107
107
install_dir="$HOME/.local/bin"
108
108
cd "$install_dir"
109
- ./browsers --no-gui https://browsers.software
109
+ #set -x
110
+
111
+ command_output="$(./browsers --no-gui https://browsers.software)"
112
+ echo "$command_output"
113
+
114
+ if echo "$command_output" | grep -q 'Firefox Web Browser'; then
115
+ echo "matched Firefox Web Browser"
116
+ fi
117
+
118
+ if echo "$command_output" | grep -q 'Google Chrome'; then
119
+ echo "matched Google Chrome"
120
+ fi
121
+
122
+ if echo "$command_output" | grep -q 'Microsoft Edge'; then
123
+ echo "matched Microsoft Edge"
124
+ fi
110
125
shell : bash
111
126
- name : Upload release artifact
112
127
uses : actions/upload-artifact@v4
@@ -201,9 +216,27 @@ jobs:
201
216
run : |
202
217
target_dir='target/universal-apple-darwin/release'
203
218
cd "$target_dir"
204
- set -x
205
- open ./Browsers.app --env BROWSERS_LOG_LEVEL=DEBUG --stdout /tmp/my-stdout --stderr /tmp/my-stderr --args --no-gui https://browsers.software && cat /tmp/my-stdout && cat /tmp/my-stderr
206
- shell : bash
219
+ #set -x
220
+
221
+ touch ./output_file
222
+ open ./Browsers.app -W --stdout output_file --stderr output_file --args --no-gui https://browsers.software
223
+
224
+ command_output=`cat ./output_file`
225
+ echo "$command_output"
226
+
227
+ if echo "$command_output" | grep -q 'Safari'; then
228
+ echo "matched Safari"
229
+ fi
230
+
231
+ if echo "$command_output" | grep -q 'Chrome'; then
232
+ echo "matched Chrome"
233
+ fi
234
+
235
+ if echo "$command_output" | grep -q 'Google Chrome for Testing'; then
236
+ echo "matched Google Chrome for Testing"
237
+ fi
238
+ # special shell script to make tty working
239
+ shell : ' script -q /dev/null bash -e {0}'
207
240
- name : Upload mac artifacts
208
241
uses : actions/upload-artifact@v4
209
242
with :
@@ -280,7 +313,26 @@ jobs:
280
313
run : |
281
314
install_dir="$PROGRAMFILES/software.Browsers"
282
315
cd "$install_dir"
283
- ./browsers.exe --no-gui https://browsers.software
316
+ #set -x
317
+
318
+ command_output="$(./browsers.exe --no-gui https://browsers.software)"
319
+ echo "$command_output"
320
+
321
+ if echo "$command_output" | grep -q 'Mozilla Firefox'; then
322
+ echo "matched Mozilla Firefox"
323
+ fi
324
+
325
+ if echo "$command_output" | grep -q 'Google Chrome'; then
326
+ echo "matched Google Chrome"
327
+ fi
328
+
329
+ if echo "$command_output" | grep -q 'Internet Explorer'; then
330
+ echo "matched Internet Explorer"
331
+ fi
332
+
333
+ if echo "$command_output" | grep -q ' Microsoft Edge (Profile 1)'; then
334
+ echo "matched Microsoft Edge (Profile 1)"
335
+ fi
284
336
shell : bash
285
337
- name : Upload release artifact
286
338
uses : actions/upload-artifact@v4
0 commit comments