From 2590b471372a0091e675c9457e434c310c9f5d10 Mon Sep 17 00:00:00 2001 From: DevWiki Date: Thu, 28 Aug 2025 17:30:32 +0800 Subject: [PATCH] =?UTF-8?q?gui=E6=94=B9=E4=B8=BA=E4=BD=BF=E7=94=A8python?= =?UTF-8?q?=20=E4=B8=8D=E5=86=8D=E4=BE=9D=E8=B5=96=E5=A4=96=E9=83=A8?= =?UTF-8?q?=E7=9A=84=E8=BF=90=E8=A1=8C=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 112 +++- HarmonyDevTools.sln | 16 - HarmonyDevTools.sln.DotSettings.user | 3 - HarmonyDevTools/App.xaml | 9 - HarmonyDevTools/App.xaml.cs | 18 - HarmonyDevTools/AssemblyInfo.cs | 10 - HarmonyDevTools/HarmonyDevTools.csproj | 31 -- HarmonyDevTools/MainWindow.xaml | 76 --- HarmonyDevTools/MainWindow.xaml.cs | 136 ----- HarmonyDevTools/control/TextBoxHelper.cs | 57 -- HarmonyDevTools/icon.ico | Bin 160498 -> 0 bytes HarmonyDevTools/pack/build.bat | 31 -- HarmonyDevTools/util/CmdUtil.cs | 119 ---- HarmonyDevTools/util/HdcUtil.cs | 19 - HarmonyDevTools_v1.4.0.zip | Bin 0 -> 13148152 bytes build.py | 323 +++++++++++ global.json | 7 - icon.ico | Bin 0 -> 204703 bytes libs/log4net.dll | Bin 270336 -> 0 bytes main.py | 664 +++++++++++++++++++++++ readme.md | 198 ++++++- requirements.txt | 14 + run.bat | 37 ++ update_version.py | 86 +++ version_info.txt | 43 ++ 25 files changed, 1449 insertions(+), 560 deletions(-) delete mode 100644 HarmonyDevTools.sln delete mode 100644 HarmonyDevTools.sln.DotSettings.user delete mode 100644 HarmonyDevTools/App.xaml delete mode 100644 HarmonyDevTools/App.xaml.cs delete mode 100644 HarmonyDevTools/AssemblyInfo.cs delete mode 100644 HarmonyDevTools/HarmonyDevTools.csproj delete mode 100644 HarmonyDevTools/MainWindow.xaml delete mode 100644 HarmonyDevTools/MainWindow.xaml.cs delete mode 100644 HarmonyDevTools/control/TextBoxHelper.cs delete mode 100644 HarmonyDevTools/icon.ico delete mode 100644 HarmonyDevTools/pack/build.bat delete mode 100644 HarmonyDevTools/util/CmdUtil.cs delete mode 100644 HarmonyDevTools/util/HdcUtil.cs create mode 100644 HarmonyDevTools_v1.4.0.zip create mode 100644 build.py delete mode 100644 global.json create mode 100644 icon.ico delete mode 100644 libs/log4net.dll create mode 100644 main.py create mode 100644 requirements.txt create mode 100644 run.bat create mode 100644 update_version.py create mode 100644 version_info.txt diff --git a/.gitignore b/.gitignore index 49f9515..c5bd364 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,108 @@ -/.idea -*/obj -*/bin -*/pack/output \ No newline at end of file +# Python运行时文件 +__pycache__/ +*.py[cod] +*$py.class +*.so + +# 分发/打包 +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +*.egg-info/ +.installed.cfg +*.egg + +# PyInstaller +*.manifest +*.spec + +# 单元测试/覆盖率报告 +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +.hypothesis/ +.pytest_cache/ + +# 翻译 +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py +db.sqlite3 + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# pyenv +.python-version + +# celery beat schedule file +celerybeat-schedule + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# 项目特定文件 +config.json +harmony_dev_tools.log +*.exe +*.spec + +# 导出目录(时间戳格式) +[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]-[0-9][0-9]-[0-9][0-9]-[0-9][0-9]/ + +.idea/ diff --git a/HarmonyDevTools.sln b/HarmonyDevTools.sln deleted file mode 100644 index e020f82..0000000 --- a/HarmonyDevTools.sln +++ /dev/null @@ -1,16 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HarmonyDevTools", "HarmonyDevTools\HarmonyDevTools.csproj", "{BBCBF001-B0B9-4F6D-A6EF-CC85E9D6FFFB}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {BBCBF001-B0B9-4F6D-A6EF-CC85E9D6FFFB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {BBCBF001-B0B9-4F6D-A6EF-CC85E9D6FFFB}.Debug|Any CPU.Build.0 = Debug|Any CPU - {BBCBF001-B0B9-4F6D-A6EF-CC85E9D6FFFB}.Release|Any CPU.ActiveCfg = Release|Any CPU - {BBCBF001-B0B9-4F6D-A6EF-CC85E9D6FFFB}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection -EndGlobal diff --git a/HarmonyDevTools.sln.DotSettings.user b/HarmonyDevTools.sln.DotSettings.user deleted file mode 100644 index 4734008..0000000 --- a/HarmonyDevTools.sln.DotSettings.user +++ /dev/null @@ -1,3 +0,0 @@ - - True - SOLUTION \ No newline at end of file diff --git a/HarmonyDevTools/App.xaml b/HarmonyDevTools/App.xaml deleted file mode 100644 index 834173e..0000000 --- a/HarmonyDevTools/App.xaml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - diff --git a/HarmonyDevTools/App.xaml.cs b/HarmonyDevTools/App.xaml.cs deleted file mode 100644 index dc5d6ec..0000000 --- a/HarmonyDevTools/App.xaml.cs +++ /dev/null @@ -1,18 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Configuration; -using System.Data; -using System.Linq; -using System.Threading.Tasks; -using System.Windows; - -namespace HarmonyDevTools -{ - /// - /// Interaction logic for App.xaml - /// - public partial class App : Application - { - - } -} \ No newline at end of file diff --git a/HarmonyDevTools/AssemblyInfo.cs b/HarmonyDevTools/AssemblyInfo.cs deleted file mode 100644 index 4a05c7d..0000000 --- a/HarmonyDevTools/AssemblyInfo.cs +++ /dev/null @@ -1,10 +0,0 @@ -using System.Windows; - -[assembly: ThemeInfo( - ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located - //(used if a resource is not found in the page, - // or application resource dictionaries) - ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located - //(used if a resource is not found in the page, - // app, or any theme specific resource dictionaries) -)] \ No newline at end of file diff --git a/HarmonyDevTools/HarmonyDevTools.csproj b/HarmonyDevTools/HarmonyDevTools.csproj deleted file mode 100644 index 7ed6cdf..0000000 --- a/HarmonyDevTools/HarmonyDevTools.csproj +++ /dev/null @@ -1,31 +0,0 @@ - - - - WinExe - net6.0-windows - enable - true - icon.ico - HarmonyDevTools - DevWiki - OpenHarmony and HarmonyOS Develop Tools - DevWiki - icon.ico - OpenHarmony,HarmonyOS - 1.0.2 - 1.0.2 - 1.0.2 - - - - - ..\libs\log4net.dll - - - - - - - - - diff --git a/HarmonyDevTools/MainWindow.xaml b/HarmonyDevTools/MainWindow.xaml deleted file mode 100644 index 26c037a..0000000 --- a/HarmonyDevTools/MainWindow.xaml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - - - - - - - - - - - - -