Skip to content

Commit 21cc0c2

Browse files
fix!: use single file for each command (#6)
1 parent 999264b commit 21cc0c2

File tree

3 files changed

+9
-32
lines changed

3 files changed

+9
-32
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -53,40 +53,16 @@ jobs:
5353
run: |
5454
exit_code=0
5555
56-
# find invalid file names
57-
for file in $(find ./commands -type f -name '*.md'); do
58-
filename=$(basename "$file")
59-
if [[ $filename != 'body.md' && $filename != 'footer.md' ]]; then
60-
echo "Invalid file $file. Only body.md and footer.md are allowed" >> $GITHUB_STEP_SUMMARY
61-
exit_code=1
62-
fi
63-
done
64-
6556
# check character count
66-
for file in $(find ./commands -type f \( -name 'body.md' -o -name 'footer.md' \)); do
57+
for file in $(find ./commands -type f -name '*.md'); do
6758
echo "Checking $file"
6859
char_count=$(wc -c <"$file")
6960
echo "Character count: $char_count"
7061
filename=$(basename "$file")
7162
echo "Filename: $filename"
72-
if [[ $filename == 'body.md' && $char_count -gt 4096 ]]; then
63+
if [[ $char_count -gt 4096 ]]; then
7364
echo "$file exceeds the 4096 character limit" >> $GITHUB_STEP_SUMMARY
7465
exit_code=1
75-
elif [[ $filename == 'footer.md' && $char_count -gt 2048 ]]; then
76-
echo "$file exceeds the 2048 character limit"
77-
exit_code=1
78-
fi
79-
if [[ $filename == 'body.md' ]]; then
80-
dir=$(dirname "$file")
81-
if [[ -f "$dir/footer.md" ]]; then
82-
footer_char_count=$(wc -c <"$dir/footer.md")
83-
total_char_count=$((char_count + footer_char_count))
84-
if [[ $total_char_count -gt 6000 ]]; then
85-
echo "The combined character count of $file and $dir/footer.md exceeds the 6000 character limit" \
86-
>> $GITHUB_STEP_SUMMARY
87-
exit_code=1
88-
fi
89-
fi
9066
fi
9167
done
9268

commands/sunshine/vban/body.md renamed to commands/sunshine/vban.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,10 @@ configuration as follows:
1313
Then click the stream name. The stream you made from Talkie should appear as an option.
1414

1515
That's it!
16+
17+
:information_source: **Notes**
18+
19+
- As Receptor does not auto-start as it is not an installed program, you may want to add it as a
20+
Sunshine pre-launch command. Receptor will remember the last audio stream it was connected to.
21+
- You may have to configure Windows/Game audio setting on the host to use the Microphone if you are using VB cable.
22+
- To use Vban over the internet, you will also have to manually forward UDP Port 6980.

commands/sunshine/vban/footer.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)