mirror of
https://github.com/eerimoq/moblin.git
synced 2026-07-04 15:06:48 +00:00
Tests on linux.
This commit is contained in:
@@ -80,7 +80,7 @@ test:
|
||||
|
||||
test-generate-device-settings:
|
||||
cd test && \
|
||||
python generate_device_settings.py config.toml | pbcopy
|
||||
python generate_device_settings.py config.toml
|
||||
|
||||
machine-translate:
|
||||
python utils/translate.py Common/Localizable.xcstrings
|
||||
|
||||
+2
-1
@@ -4,4 +4,5 @@ pylint
|
||||
deep_translator
|
||||
moblin_assistant
|
||||
requests
|
||||
av
|
||||
av
|
||||
pyperclip
|
||||
|
||||
@@ -2,6 +2,7 @@ import argparse
|
||||
import json
|
||||
from pathlib import Path
|
||||
import tomllib
|
||||
import pyperclip
|
||||
|
||||
RTMP_STREAM_ID = "F3868489-D301-422D-A7DD-335572CA1385"
|
||||
RTMP_TALKBACK_STREAM_ID = "F3868489-D301-422D-A7DD-335572CA1386"
|
||||
@@ -156,7 +157,12 @@ def main():
|
||||
args = parser.parse_args()
|
||||
config = tomllib.loads(args.config_toml.read_text())
|
||||
settings = create_settings(config)
|
||||
print(json.dumps(settings, indent=4))
|
||||
settings = json.dumps(settings, indent=4)
|
||||
try:
|
||||
pyperclip.copy(settings)
|
||||
print('Settings copied to clipboard.')
|
||||
except pyperclip.PyperclipException:
|
||||
print(settings)
|
||||
|
||||
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user