mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-23 19:49:05 +08:00
Fix for builds where locale can't be set easily
On local github workflow runners setting system locale can be a bit cumbersome. This minor patch should be mostly harmless.
This commit is contained in:
parent
6e6a2cfbfe
commit
54db4951d6
2
build.py
2
build.py
@ -17,7 +17,7 @@ flutter_win_target_dir = 'flutter/build/windows/runner/Release/'
|
||||
|
||||
|
||||
def get_version():
|
||||
with open("Cargo.toml") as fh:
|
||||
with open("Cargo.toml", encoding="utf-8") as fh:
|
||||
for line in fh:
|
||||
if line.startswith("version"):
|
||||
return line.replace("version", "").replace("=", "").replace('"', '').strip()
|
||||
|
Loading…
Reference in New Issue
Block a user