feat: Update application version to 0.5.0 and refactor version syncing script
This commit is contained in:
parent
dffc925bb6
commit
ff804790e6
4 changed files with 23 additions and 22 deletions
|
|
@ -28,14 +28,13 @@ from pathlib import Path
|
|||
from datetime import datetime
|
||||
|
||||
# Import shared version utilities
|
||||
from version_utils import get_current_version
|
||||
from sync_version import get_current_version, sync_version
|
||||
|
||||
# Fix Unicode output on Windows
|
||||
# Fix Unicode output on Windows (removed TextIOWrapper due to subprocess conflicts)
|
||||
# TextIOWrapper causes issues when subprocess tries to write to file descriptors
|
||||
if sys.platform == "win32":
|
||||
import io
|
||||
|
||||
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8")
|
||||
sys.stderr = io.TextIOWrapper(sys.stderr.buffer, encoding="utf-8")
|
||||
import os
|
||||
os.environ["PYTHONIOENCODING"] = "utf-8"
|
||||
|
||||
|
||||
class WindowsBuilder:
|
||||
|
|
@ -116,8 +115,7 @@ class WindowsBuilder:
|
|||
result = subprocess.run(
|
||||
cmd,
|
||||
cwd=str(self.project_root),
|
||||
encoding="utf-8",
|
||||
errors="replace",
|
||||
text=True,
|
||||
env=env
|
||||
)
|
||||
|
||||
|
|
@ -205,8 +203,7 @@ class WindowsBuilder:
|
|||
print(f" Compiling WiX source...")
|
||||
result = subprocess.run(
|
||||
candle_cmd,
|
||||
encoding="utf-8",
|
||||
errors="replace"
|
||||
text=True
|
||||
)
|
||||
if result.returncode != 0:
|
||||
print("❌ WiX compilation failed")
|
||||
|
|
@ -223,8 +220,7 @@ class WindowsBuilder:
|
|||
print(f" Linking MSI installer...")
|
||||
result = subprocess.run(
|
||||
light_cmd,
|
||||
encoding="utf-8",
|
||||
errors="replace"
|
||||
text=True
|
||||
)
|
||||
if result.returncode != 0:
|
||||
print("❌ MSI linking failed")
|
||||
|
|
@ -330,8 +326,7 @@ class WindowsBuilder:
|
|||
|
||||
result = subprocess.run(
|
||||
cmd,
|
||||
encoding="utf-8",
|
||||
errors="replace"
|
||||
text=True
|
||||
)
|
||||
if result.returncode != 0:
|
||||
print("❌ Code signing failed")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue