添加readme 以及修正部分内容

This commit is contained in:
DevWiki 2024-06-19 14:14:10 +08:00
parent 38fec1126d
commit 109449bdab
6 changed files with 46 additions and 1 deletions

View File

@ -5,6 +5,15 @@
<TargetFramework>net6.0-windows</TargetFramework> <TargetFramework>net6.0-windows</TargetFramework>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<UseWPF>true</UseWPF> <UseWPF>true</UseWPF>
<ApplicationIcon>icon.ico</ApplicationIcon>
<Title>HarmonyDevTools</Title>
<Authors>DevWiki</Authors>
<Description>OpenHarmony and HarmonyOS Develop Tools</Description>
<Copyright>DevWiki</Copyright>
<PackageIcon>icon.ico</PackageIcon>
<PackageTags>OpenHarmony,HarmonyOS</PackageTags>
<AssemblyVersion>1.0.0</AssemblyVersion>
<FileVersion>1.0.0</FileVersion>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

View File

@ -113,7 +113,7 @@ public partial class MainWindow : Window
ResultTb.ScrollToEnd(); ResultTb.ScrollToEnd();
} }
private async void GetImage_OnClick(object sender, RoutedEventArgs e) private void GetImage_OnClick(object sender, RoutedEventArgs e)
{ {
ExportFile("/storage/media/100/local/files/Photo"); ExportFile("/storage/media/100/local/files/Photo");
} }

BIN
HarmonyDevTools/icon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 157 KiB

BIN
image/主界面.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

BIN
image/解压后文件.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

36
readme.md Normal file
View File

@ -0,0 +1,36 @@
本项目为HarmonyOS/OpenHarmony的 toolchains 工具提供UI操作, 方便使用.
## 1. 版本说明
目前支持 hdc 工具的使用,后续会陆续增加其他工具~
![主界面](image/主界面.png)
## 2. 使用方式
下载最新的 Release包, 解压如下目录, 双击 `HarmonyDevTools.exe` 运行。
![解压](image/解压后文件.png)
运行环境要求: netcore6.0, 如果双击无法运行,请下载安装 netcore6.0 runtime:
- x64版本https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-desktop-6.0.31-windows-x64-installer
- x86版本https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-desktop-6.0.31-windows-x86-installer
## 3. 更新hdc
根据OpenHarmony官方的文档: [hdc使用指导](https://docs.openharmony.cn/pages/v4.1/zh-cn/device-dev/subsystems/subsys-toolchain-hdc-guide.md),
安装DevEco以后, 设置SDK路径, 下载最新的SDK, 里面包含 toolchains
> ## 环境准备
> hdc 工具获取方式:
>
> 通过OpenHarmony sdk获取hdc在sdk的toolchains目录下。
>
> **使用举例:**
>
> 下面以windows侧使用方式举例
>
> 获取windows的sdk将hdc.exe放到磁盘某个位置即可使用。