support specify ignored files patterns

Signed-off-by: liduo <liduo29@huawei.com>
This commit is contained in:
liduo
2025-02-19 11:41:59 +08:00
parent 644dddf9a2
commit a382e73eb8
11 changed files with 98 additions and 30 deletions
+8 -1
View File
@@ -49,13 +49,19 @@ 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.1.0.007" };
static const int8_t RESTOOL_VERSION[VERSION_MAX_LEN] = { "Restool 5.1.0.008" };
const static int32_t TAG_LEN = 4;
constexpr static int DEFAULT_POOL_SIZE = 8;
static std::set<std::string> g_resourceSet;
static std::set<std::string> g_hapResourceSet;
const static int8_t INVALID_ID = -1;
enum class IgnoreType {
IGNORE_FILE,
IGNORE_DIR,
IGNORE_ALL
};
enum class KeyType {
LANGUAGE = 0,
REGION = 1,
@@ -148,6 +154,7 @@ enum Option {
DEFINED_SYSIDS = 6,
COMPRESSED_CONFIG = 7,
THREAD = 8,
IGNORED_FILE = 9,
STARTID = 'e',
FORCEWRITE = 'f',
HELP = 'h',