From 24078f1088c1a49c7d4c8086a81f7415e74fbee7 Mon Sep 17 00:00:00 2001 From: "@ran-zhao-yu" Date: Thu, 5 Sep 2024 16:55:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=93=9D=E9=BB=84=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: @ran-zhao-yu --- README.md | 4 ++++ README_zh.md | 2 +- include/resource_data.h | 2 +- src/config_parser.cpp | 3 +-- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8e10d0d..5768f72 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,10 @@ resource tool is used in computer.In OpenHarmony SDK toolchain.Provide to IDE.Su ## Instructions +### SDK Build + +[SDK build refer](https://gitee.com/openharmony/build/blob/master/README.md) + ### Test In PC, run `python test.py ./restool ./out` diff --git a/README_zh.md b/README_zh.md index a05b73a..9ec4388 100644 --- a/README_zh.md +++ b/README_zh.md @@ -124,4 +124,4 @@ restool -i entry/src/main -j entry/src/main/module.json -p com.ohos.demo -o out [third_party_libpng](https://gitee.com/openharmony/third_party_libpng/blob/master/README.md) -[third_party_bounds_checking_function](https://gitee.com/openharmony/third_party_bounds_checking_function/blob/master/README.md ) +[third_party_bounds_checking_function](https://gitee.com/openharmony/third_party_bounds_checking_function/README_zh.md ) diff --git a/include/resource_data.h b/include/resource_data.h index ed77124..fdaae88 100644 --- a/include/resource_data.h +++ b/include/resource_data.h @@ -48,7 +48,7 @@ const static std::string SOLUTIONS_ARROW = "> "; const static std::string LONG_PATH_HEAD = "\\\\?\\"; const static int32_t VERSION_MAX_LEN = 128; const static int32_t INT_TO_BYTES = sizeof(uint32_t); -static const int8_t RESTOOL_VERSION[VERSION_MAX_LEN] = { "Restool 5.010" }; +static const int8_t RESTOOL_VERSION[VERSION_MAX_LEN] = { "Restool 5.009" }; const static int32_t TAG_LEN = 4; static std::set g_resourceSet; diff --git a/src/config_parser.cpp b/src/config_parser.cpp index 15b3d27..02e1c48 100644 --- a/src/config_parser.cpp +++ b/src/config_parser.cpp @@ -40,8 +40,7 @@ const map ConfigParser::JSON_STRING_IDS = { { "startWindowBackground", "^\\$color:"}, { "resource", "^\\$[a-z]+:" }, { "extra", "^\\$[a-z]+:" }, - { "fileContextMenu", "^\\$profile:" }, - { "orientation", "^\\$string:" } + { "fileContextMenu", "^\\$profile:" } }; const map ConfigParser::JSON_ARRAY_IDS = {