feat: Windows 服务 安装,启动,停止 功能
This commit is contained in:
@ -288,13 +288,15 @@ class CoreConfigManager:
|
||||
print("❌ No active subscription found")
|
||||
return False
|
||||
|
||||
if not active_subscription.file_path or not Path(active_subscription.file_path).exists():
|
||||
file_path = active_subscription.get_file_path(self.storage.config_dir)
|
||||
|
||||
if not file_path or not Path(file_path).exists():
|
||||
print("❌ Active subscription file not found. Please refresh the subscription first.")
|
||||
return False
|
||||
|
||||
try:
|
||||
# Load the subscription content
|
||||
with open(active_subscription.file_path, 'r', encoding='utf-8') as f:
|
||||
with open(file_path, 'r', encoding='utf-8') as f:
|
||||
subscription_content = f.read()
|
||||
|
||||
# Parse subscription YAML
|
||||
@ -350,7 +352,6 @@ class CoreConfigManager:
|
||||
|
||||
print(f"✅ Generated final configuration: {generated_path}")
|
||||
print(f" Active subscription: {active_subscription.name}")
|
||||
print(f" Source file: {active_subscription.file_path}")
|
||||
|
||||
# Execute hooks after successful config generation
|
||||
self._execute_hooks(generated_path)
|
||||
|
||||
Reference in New Issue
Block a user