sing-box-cli 0.0.7__tar.gz → 0.0.9__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.7 → sing_box_cli-0.0.9}/CHANGELOG.md +3 -1
- {sing_box_cli-0.0.7 → sing_box_cli-0.0.9}/PKG-INFO +1 -1
- {sing_box_cli-0.0.7 → sing_box_cli-0.0.9}/pyproject.toml +1 -1
- {sing_box_cli-0.0.7 → sing_box_cli-0.0.9}/src/sing_box_service/__init__.py +1 -1
- {sing_box_cli-0.0.7 → sing_box_cli-0.0.9}/src/sing_box_service/service.py +4 -3
- {sing_box_cli-0.0.7 → sing_box_cli-0.0.9}/uv.lock +1 -1
- {sing_box_cli-0.0.7 → sing_box_cli-0.0.9}/.github/dependabot.yml +0 -0
- {sing_box_cli-0.0.7 → sing_box_cli-0.0.9}/.github/workflows/main.yml +0 -0
- {sing_box_cli-0.0.7 → sing_box_cli-0.0.9}/.gitignore +0 -0
- {sing_box_cli-0.0.7 → sing_box_cli-0.0.9}/.pre-commit-config.yaml +0 -0
- {sing_box_cli-0.0.7 → sing_box_cli-0.0.9}/.vscode/PythonImportHelper-v2-Completion.json +0 -0
- {sing_box_cli-0.0.7 → sing_box_cli-0.0.9}/.vscode/settings.json +0 -0
- {sing_box_cli-0.0.7 → sing_box_cli-0.0.9}/LICENSE +0 -0
- {sing_box_cli-0.0.7 → sing_box_cli-0.0.9}/README.md +0 -0
- {sing_box_cli-0.0.7 → sing_box_cli-0.0.9}/assets/image.png +0 -0
- {sing_box_cli-0.0.7 → sing_box_cli-0.0.9}/scripts/bump.sh +0 -0
- {sing_box_cli-0.0.7 → sing_box_cli-0.0.9}/scripts/format.sh +0 -0
- {sing_box_cli-0.0.7 → sing_box_cli-0.0.9}/scripts/lint.sh +0 -0
- {sing_box_cli-0.0.7 → sing_box_cli-0.0.9}/src/sing_box_service/config.py +0 -0
- {sing_box_cli-0.0.7 → sing_box_cli-0.0.9}/src/sing_box_service/main.py +0 -0
- {sing_box_cli-0.0.7 → sing_box_cli-0.0.9}/src/sing_box_service/py.typed +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
-
## 0.0.
|
|
5
|
+
## 0.0.9 - 2025-01-14
|
|
6
6
|
|
|
7
7
|
### 🚀 Features
|
|
8
8
|
|
|
@@ -11,6 +11,8 @@ All notable changes to this project will be documented in this file.
|
|
|
11
11
|
### 🐛 Bug Fixes
|
|
12
12
|
|
|
13
13
|
- Service start before network connection
|
|
14
|
+
- Linux service After start condition
|
|
15
|
+
- Remove tool synctime -w in windows ,because newest sing-box has fixed ntp
|
|
14
16
|
|
|
15
17
|
### 📚 Documentation
|
|
16
18
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sing-box-cli
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.9
|
|
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
|
|
@@ -209,7 +209,7 @@ sort_commits = "oldest"
|
|
|
209
209
|
|
|
210
210
|
|
|
211
211
|
[tool.bumpversion]
|
|
212
|
-
current_version = "0.0.
|
|
212
|
+
current_version = "0.0.9"
|
|
213
213
|
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
|
|
214
214
|
serialize = ["{major}.{minor}.{patch}"]
|
|
215
215
|
search = "{current_version}"
|
|
@@ -62,7 +62,6 @@ if (Test-Path "{self.log_file}") {{
|
|
|
62
62
|
}}
|
|
63
63
|
|
|
64
64
|
try {{
|
|
65
|
-
& "{self.config.bin_path}" tools synctime -w -C "{self.config.install_dir}" *>&1 | Tee-Object -FilePath "{self.log_file}" -Append
|
|
66
65
|
& "{self.config.bin_path}" run -C "{self.config.install_dir}" *>&1 | Tee-Object -FilePath "{self.log_file}" -Append
|
|
67
66
|
}} catch {{
|
|
68
67
|
$_ | Out-File -FilePath "{self.log_file}" -Append
|
|
@@ -159,11 +158,14 @@ class LinuxServiceManager(ServiceManager):
|
|
|
159
158
|
self.service_file = Path("/etc/systemd/system/sing-box.service")
|
|
160
159
|
|
|
161
160
|
def create_service(self) -> None:
|
|
161
|
+
"""systemctl list-units | grep -i network"""
|
|
162
162
|
service_content = f"""
|
|
163
163
|
[Unit]
|
|
164
164
|
Description=sing-box service
|
|
165
165
|
Documentation=https://sing-box.sagernet.org
|
|
166
|
-
After=
|
|
166
|
+
After=network-online.target NetworkManager-wait-online.service nss-lookup.target
|
|
167
|
+
Wants=network-online.target nss-lookup.target
|
|
168
|
+
BindsTo=NetworkManager.service
|
|
167
169
|
|
|
168
170
|
[Service]
|
|
169
171
|
Type=simple
|
|
@@ -172,7 +174,6 @@ LimitNOFILE=1000000
|
|
|
172
174
|
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_RAW CAP_NET_BIND_SERVICE CAP_SYS_TIME CAP_SYS_PTRACE CAP_DAC_READ_SEARCH CAP_DAC_OVERRIDE
|
|
173
175
|
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_RAW CAP_NET_BIND_SERVICE CAP_SYS_TIME CAP_SYS_PTRACE CAP_DAC_READ_SEARCH CAP_DAC_OVERRIDE
|
|
174
176
|
Restart=always
|
|
175
|
-
ExecStartPre={self.config.bin_path} tools synctime -w -C {self.config.install_dir}
|
|
176
177
|
ExecStart={self.config.bin_path} run -C {self.config.install_dir}
|
|
177
178
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
178
179
|
|
|
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
|