git updater plugin ok

This commit is contained in:
jr-k 2024-05-27 15:24:31 +02:00
parent d062fbc0a7
commit 0ba7fa0593

View File

@ -28,7 +28,7 @@ class GitUpdaterController(ObController):
logging.warn('Git Updater doesn\'t support macos dependency manager, install system dependencies manually with homebrew')
run_system_command(['git', '-C', get_working_directory(), 'stash'])
run_system_command(['git', '-C', get_working_directory(), 'checkout', 'tags/v{}'.format(Application.get_version)])
run_system_command(['git', '-C', get_working_directory(), 'checkout', 'tags/v{}'.format(Application.get_version())])
run_system_command(['git', '-C', get_working_directory(), 'pull'])
run_system_command(['pip3', 'install', '-r', 'requirements.txt'])
sudo_run_system_command(['systemctl', 'restart', Application.get_name()])