sing-box-cli 0.0.27__tar.gz → 0.0.28__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sing_box_cli-0.0.27 → sing_box_cli-0.0.28}/CHANGELOG.md +6 -0
- {sing_box_cli-0.0.27 → sing_box_cli-0.0.28}/PKG-INFO +1 -1
- {sing_box_cli-0.0.27 → sing_box_cli-0.0.28}/pyproject.toml +1 -1
- {sing_box_cli-0.0.27 → sing_box_cli-0.0.28}/src/sing_box_service/__init__.py +1 -1
- {sing_box_cli-0.0.27 → sing_box_cli-0.0.28}/src/sing_box_service/service/manager.py +1 -14
- {sing_box_cli-0.0.27 → sing_box_cli-0.0.28}/.github/dependabot.yml +0 -0
- {sing_box_cli-0.0.27 → sing_box_cli-0.0.28}/.github/workflows/main.yml +0 -0
- {sing_box_cli-0.0.27 → sing_box_cli-0.0.28}/.gitignore +0 -0
- {sing_box_cli-0.0.27 → sing_box_cli-0.0.28}/.pre-commit-config.yaml +0 -0
- {sing_box_cli-0.0.27 → sing_box_cli-0.0.28}/LICENSE +0 -0
- {sing_box_cli-0.0.27 → sing_box_cli-0.0.28}/README.md +0 -0
- {sing_box_cli-0.0.27 → sing_box_cli-0.0.28}/assets/image.png +0 -0
- {sing_box_cli-0.0.27 → sing_box_cli-0.0.28}/scripts/bump.sh +0 -0
- {sing_box_cli-0.0.27 → sing_box_cli-0.0.28}/scripts/format.sh +0 -0
- {sing_box_cli-0.0.27 → sing_box_cli-0.0.28}/scripts/lint.sh +0 -0
- {sing_box_cli-0.0.27 → sing_box_cli-0.0.28}/scripts/pre-commit.sh +0 -0
- {sing_box_cli-0.0.27 → sing_box_cli-0.0.28}/src/sing_box_service/api/__init__.py +0 -0
- {sing_box_cli-0.0.27 → sing_box_cli-0.0.28}/src/sing_box_service/api/client.py +0 -0
- {sing_box_cli-0.0.27 → sing_box_cli-0.0.28}/src/sing_box_service/api/connections.py +0 -0
- {sing_box_cli-0.0.27 → sing_box_cli-0.0.28}/src/sing_box_service/api/logs.py +0 -0
- {sing_box_cli-0.0.27 → sing_box_cli-0.0.28}/src/sing_box_service/api/monitor.py +0 -0
- {sing_box_cli-0.0.27 → sing_box_cli-0.0.28}/src/sing_box_service/api/policy.py +0 -0
- {sing_box_cli-0.0.27 → sing_box_cli-0.0.28}/src/sing_box_service/api/widget.py +0 -0
- {sing_box_cli-0.0.27 → sing_box_cli-0.0.28}/src/sing_box_service/common.py +0 -0
- {sing_box_cli-0.0.27 → sing_box_cli-0.0.28}/src/sing_box_service/config/__init__.py +0 -0
- {sing_box_cli-0.0.27 → sing_box_cli-0.0.28}/src/sing_box_service/config/config.py +0 -0
- {sing_box_cli-0.0.27 → sing_box_cli-0.0.28}/src/sing_box_service/config/utils.py +0 -0
- {sing_box_cli-0.0.27 → sing_box_cli-0.0.28}/src/sing_box_service/main.py +0 -0
- {sing_box_cli-0.0.27 → sing_box_cli-0.0.28}/src/sing_box_service/py.typed +0 -0
- {sing_box_cli-0.0.27 → sing_box_cli-0.0.28}/src/sing_box_service/service/__init__.py +0 -0
- {sing_box_cli-0.0.27 → sing_box_cli-0.0.28}/tests/test_config.py +0 -0
- {sing_box_cli-0.0.27 → sing_box_cli-0.0.28}/uv.lock +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sing-box-cli
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.28
|
|
4
4
|
Summary: cross-platform sing-box-service manager.
|
|
5
5
|
Project-URL: Homepage, https://github.com/aittcuszz/sing-box-service
|
|
6
6
|
Project-URL: Issues, https://github.com/atticuszz/sing-box-service/issues
|
|
@@ -213,7 +213,7 @@ sort_commits = "oldest"
|
|
|
213
213
|
|
|
214
214
|
|
|
215
215
|
[tool.bumpversion]
|
|
216
|
-
current_version = "0.0.
|
|
216
|
+
current_version = "0.0.28"
|
|
217
217
|
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
|
|
218
218
|
serialize = ["{major}.{minor}.{patch}"]
|
|
219
219
|
search = "{current_version}"
|
|
@@ -38,7 +38,6 @@ class WindowsServiceManager(ServiceManager):
|
|
|
38
38
|
def __init__(self, config: SingBoxConfig) -> None:
|
|
39
39
|
super().__init__(config)
|
|
40
40
|
self.task_name = "sing-box-service"
|
|
41
|
-
self.log_file = self.config.config_dir / "sing-box.log"
|
|
42
41
|
|
|
43
42
|
def create_service(self) -> None:
|
|
44
43
|
start_script = self.config.config_dir / "start-singbox.ps1"
|
|
@@ -52,21 +51,9 @@ public static extern bool ShowWindow(IntPtr hWnd, Int32 nCmdShow);
|
|
|
52
51
|
$console = [Console.Window]::GetConsoleWindow()
|
|
53
52
|
[Console.Window]::ShowWindow($console, 0)
|
|
54
53
|
|
|
55
|
-
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
|
|
56
|
-
$OutputEncoding = [System.Text.Encoding]::UTF8
|
|
57
|
-
chcp 65001 | Out-Null
|
|
58
|
-
|
|
59
54
|
Set-Location "{self.config.config_dir}"
|
|
60
55
|
|
|
61
|
-
|
|
62
|
-
Clear-Content "{self.log_file}"
|
|
63
|
-
}}
|
|
64
|
-
|
|
65
|
-
try {{
|
|
66
|
-
& "{self.config.bin_path}" run -C "{self.config.config_dir}" *>&1 | Tee-Object -FilePath "{self.log_file}" -Append
|
|
67
|
-
}} catch {{
|
|
68
|
-
$_ | Out-File -FilePath "{self.log_file}" -Append
|
|
69
|
-
}}
|
|
56
|
+
& "{self.config.bin_path}" run -C "{self.config.config_dir}"
|
|
70
57
|
"""
|
|
71
58
|
start_script.write_text(script_content, encoding="utf-8")
|
|
72
59
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|