Skip to content

Commit acdae2b

Browse files
authored
merge: Beta v0.2.1.3 (Goo-aw233#56)
* docs: Update LICENSE & README & ThirdPartyNotices.txt * chore: Update build scripts * perf(main_window): Optimize the font selection for `en-us` - When appropriate, `en-us` will use Segoe UI Variable Text instead of `Segoe UI`. * perf(*_feature): Optimize PowerShell command speed - Add the `-NoProfile` parameter so that PowerShell does not load any user profiles. * perf(*_feature): Add the `shell=False` parameter - Added the `shell=False` parameter to prevent shell injection. * fix(*_feature): Fix the issue of the command line window not being hidden - Fix the issue of the command line window not being hidden. * fix(*_feature): Fix error reg path - Change some single-slash paths to double slashes. * chore(deps): Update Requirements
1 parent e9d5a7f commit acdae2b

18 files changed

Lines changed: 184 additions & 257 deletions

.gitattributes

Lines changed: 0 additions & 63 deletions
This file was deleted.

.gitignore

Lines changed: 68 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Byte-compiled / optimized / DLL files
22
__pycache__/
3-
*.py[cod]
3+
*.py[codz]
44
*$py.class
55

66
# C extensions
@@ -27,8 +27,8 @@ share/python-wheels/
2727
MANIFEST
2828

2929
# PyInstaller
30-
# Usually these files are written by a python script from a template
31-
# before PyInstaller builds the exe, so as to inject date/other infos into it.
30+
# Usually these files are written by a python script from a template
31+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
3232
*.manifest
3333
*.spec
3434

@@ -46,7 +46,7 @@ htmlcov/
4646
nosetests.xml
4747
coverage.xml
4848
*.cover
49-
*.py,cover
49+
*.py.cover
5050
.hypothesis/
5151
.pytest_cache/
5252
cover/
@@ -92,37 +92,64 @@ ipython_config.py
9292
# However, in case of collaboration, if having platform-specific dependencies or dependencies
9393
# having no cross-platform support, pipenv may install dependencies that don't work, or not
9494
# install all needed dependencies.
95-
#Pipfile.lock
95+
# Pipfile.lock
96+
97+
# UV
98+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99+
# This is especially recommended for binary packages to ensure reproducibility, and is more
100+
# commonly ignored for libraries.
101+
# uv.lock
96102

97103
# poetry
98104
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
99105
# This is especially recommended for binary packages to ensure reproducibility, and is more
100106
# commonly ignored for libraries.
101107
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
102-
#poetry.lock
108+
# poetry.lock
109+
# poetry.toml
103110

104111
# pdm
105112
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
106-
#pdm.lock
107-
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
108-
# in version control.
109-
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
110-
.pdm.toml
113+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
114+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
115+
# pdm.lock
116+
# pdm.toml
111117
.pdm-python
112118
.pdm-build/
113119

120+
# pixi
121+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
122+
# pixi.lock
123+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
124+
# in the .venv directory. It is recommended not to include this directory in version control.
125+
.pixi
126+
114127
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
115128
__pypackages__/
116129

117130
# Celery stuff
118131
celerybeat-schedule
119132
celerybeat.pid
120133

134+
# Redis
135+
*.rdb
136+
*.aof
137+
*.pid
138+
139+
# RabbitMQ
140+
mnesia/
141+
rabbitmq/
142+
rabbitmq-data/
143+
144+
# ActiveMQ
145+
activemq-data/
146+
121147
# SageMath parsed files
122148
*.sage.py
123149

124150
# Environments
125151
.env
152+
.envrc
126153
.venv
127154
env/
128155
venv/
@@ -154,91 +181,36 @@ dmypy.json
154181
# Cython debug symbols
155182
cython_debug/
156183

157-
# .MyPy
158-
.MyPy/
159-
UPX/
160-
161184
# PyCharm
162-
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
163-
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
164-
# and can be added to the global gitignore or merged into this file. For a more nuclear
165-
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
185+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
186+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
187+
# and can be added to the global gitignore or merged into this file. For a more nuclear
188+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
166189
.idea/
167190

168-
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
169-
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
170-
171-
# User-specific stuff
172-
.idea/**/workspace.xml
173-
.idea/**/tasks.xml
174-
.idea/**/usage.statistics.xml
175-
.idea/**/dictionaries
176-
.idea/**/shelf
177-
178-
# AWS User-specific
179-
.idea/**/aws.xml
180-
181-
# Generated files
182-
.idea/**/contentModel.xml
183-
184-
# Sensitive or high-churn files
185-
.idea/**/dataSources/
186-
.idea/**/dataSources.ids
187-
.idea/**/dataSources.local.xml
188-
.idea/**/sqlDataSources.xml
189-
.idea/**/dynamic.xml
190-
.idea/**/uiDesigner.xml
191-
.idea/**/dbnavigator.xml
192-
193-
# Gradle
194-
.idea/**/gradle.xml
195-
.idea/**/libraries
196-
197-
# Gradle and Maven with auto-import
198-
# When using Gradle or Maven with auto-import, you should exclude module files,
199-
# since they will be recreated, and may cause churn. Uncomment if using
200-
# auto-import.
201-
# .idea/artifacts
202-
# .idea/compiler.xml
203-
# .idea/jarRepositories.xml
204-
# .idea/modules.xml
205-
# .idea/*.iml
206-
# .idea/modules
207-
# *.iml
208-
# *.ipr
209-
210-
# CMake
211-
cmake-build-*/
212-
213-
# Mongo Explorer plugin
214-
.idea/**/mongoSettings.xml
215-
216-
# File-based project format
217-
*.iws
218-
219-
# IntelliJ
220-
out/
221-
222-
# mpeltonen/sbt-idea plugin
223-
.idea_modules/
224-
225-
# JIRA plugin
226-
atlassian-ide-plugin.xml
227-
228-
# Cursive Clojure plugin
229-
.idea/replstate.xml
230-
231-
# SonarLint plugin
232-
.idea/sonarlint/
233-
234-
# Crashlytics plugin (for Android Studio and IntelliJ)
235-
com_crashlytics_export_strings.xml
236-
crashlytics.properties
237-
crashlytics-build.properties
238-
fabric.properties
239-
240-
# Editor-based Rest Client
241-
.idea/httpRequests
242-
243-
# Android studio 3.1+ serialized cache file
244-
.idea/caches/build_file_checksums.ser
191+
# Abstra
192+
# Abstra is an AI-powered process automation framework.
193+
# Ignore directories containing user credentials, local state, and settings.
194+
# Learn more at https://abstra.io/docs
195+
.abstra/
196+
197+
# Visual Studio Code
198+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
199+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
200+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
201+
# you could uncomment the following to ignore the entire vscode folder
202+
# .vscode/
203+
204+
# Ruff stuff:
205+
.ruff_cache/
206+
207+
# PyPI configuration file
208+
.pypirc
209+
210+
# Marimo
211+
marimo/_static/
212+
marimo/_lsp/
213+
__marimo__/
214+
215+
# Streamlit
216+
.streamlit/secrets.toml
File renamed without changes.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,4 @@ Visit <https://pcmanager.microsoft.com> to download and experience the latest ve
7171
5. Build the EXE
7272

7373
Run `build.cmd` or `build_.venv.cmd` directly from the `scripts\build` directory to build it yourself.
74-
Finally, the built `EXE file` will be stored in the `dist` directory of the root directory and named `MSPCManagerHelper_..._<Arch>_v#.#.#.#.exe`.
74+
Finally, the built `EXE file` will be stored in the `dist` directory of the root directory and named `MSPCManagerHelper_..._v#.#.#.#_<Arch>.exe`.

ThirdPartyNotices.txt

Lines changed: 26 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,41 @@
1-
Third-Party Notices
2-
====================
1+
The attached notices are provided for information only.
32

4-
This project includes third-party components listed below. Their respective licenses and copyright statements are included.
3+
License Notice for NSudo
4+
------------------------
55

6-
---
6+
https://github.com/M2Team/NSudo
77

8-
1. ProcDump
9-
------------
8+
The MIT License (MIT)
109

11-
ProcDump is a Sysinternals tool provided by Microsoft.
12-
13-
Copyright (c) Microsoft Corporation.
14-
15-
License: Sysinternals Software License Terms
16-
Link: https://learn.microsoft.com/sysinternals/?wt.mc_id=studentamb_474966
17-
18-
Sysinternals Software License Terms:
19-
20-
Redistribution and use of the software in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
10+
Copyright (c) M2-Team and Contributors. All rights reserved.
2111

22-
1. Redistributions must retain the above copyright notice, this list of conditions, and the following disclaimer.
23-
2. The software is provided "as is," without warranty of any kind, express or implied.
24-
3. This software may not be used for commercial purposes without explicit permission from Microsoft.
12+
Permission is hereby granted, free of charge, to any person obtaining a copy
13+
of this software and associated documentation files (the "Software"), to deal
14+
in the Software without restriction, including without limitation the rights
15+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16+
copies of the Software, and to permit persons to whom the Software is
17+
furnished to do so, subject to the following conditions:
2518

26-
For more details, refer to the official license link above.
19+
The above copyright notice and this permission notice shall be included in all
20+
copies or substantial portions of the Software.
2721

28-
---
22+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28+
SOFTWARE.
2929

30-
2. NSudo
31-
---------
3230

33-
NSudo is an open-source system management tool developed by M2-Team.
31+
License Notice for Sysinternals (License from ProcDump-for-Mac: https://github.com/microsoft/ProcDump-for-Mac)
32+
-------------------------------
3433

35-
Copyright (c) M2-Team and Contributors. All rights reserved.
34+
https://learn.microsoft.com/sysinternals/license-terms/?wt.mc_id=studentamb_474966
3635

37-
License: MIT License
38-
Link: https://github.com/M2TeamArchived/NSudo/blob/master/License.md
36+
MIT License
3937

40-
MIT License:
38+
Copyright (c) 2024 Sysinternals
4139

4240
Permission is hereby granted, free of charge, to any person obtaining a copy
4341
of this software and associated documentation files (the "Software"), to deal
@@ -56,8 +54,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
5654
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
5755
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
5856
SOFTWARE.
59-
60-
---
61-
62-
End of Third-Party Notices
63-

docs/README.zh-Hans.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,4 @@ Please Select Your Language to Continue
7171
5. 构建 EXE
7272

7373
直接运行 `scripts\build` 目录下的 `build.cmd``build_.venv.cmd` 即可自己构建。
74-
最后,构建好的 `EXE 文件` 将会存放在根目录的 `dist` 目录下,并命名为 `MSPCManagerHelper_..._<架构>_v#.#.#.#.exe`
74+
最后,构建好的 `EXE 文件` 将会存放在根目录的 `dist` 目录下,并命名为 `MSPCManagerHelper_..._v#.#.#.#_<架构>.exe`

docs/README.zh-Hant.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,4 @@ Please Select Your Language to Continue
7171
5. 構建 EXE
7272

7373
直接執行 `scripts\build` 目錄下的 `build.cmd``build_.venv.cmd` 即可自己構建。
74-
最後,構建好的 `EXE 檔案` 將會存放在根目錄的 `dist` 目錄下,並命名為 `MSPCManagerHelper_..._<架構>_v#.#.#.#.exe`
74+
最後,構建好的 `EXE 檔案` 將會存放在根目錄的 `dist` 目錄下,並命名為 `MSPCManagerHelper_..._v#.#.#.#_<架構>.exe`

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
altgraph==0.17.5
2-
certifi==2025.11.12
2+
certifi==2026.1.4
33
charset-normalizer==3.4.4
44
click==8.3.1
55
colorama==0.4.6
@@ -13,4 +13,4 @@ pyinstaller-hooks-contrib==2025.11
1313
pywin32==311
1414
pywin32-ctypes==0.2.3
1515
requests==2.32.5
16-
urllib3==2.6.2
16+
urllib3==2.6.3

0 commit comments

Comments
 (0)