From 481537624d0eb62ad84c0521d3352a6a4d6639c7 Mon Sep 17 00:00:00 2001 From: Tw93 Date: Wed, 28 Jun 2023 15:28:56 +0800 Subject: [PATCH] :art: Correct document format --- LICENSE | 2 +- README.md | 2 +- bin/README_CN.md | 3 +-- bin/builders/BaseBuilder.ts | 4 ++-- bin/utils/info.ts | 2 +- 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/LICENSE b/LICENSE index 7d2e69e..0ca62b7 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2022 Tw93 +Copyright (c) 2023 Tw93 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 2a88fc1..5d28265 100644 --- a/README.md +++ b/README.md @@ -159,7 +159,7 @@ In addition, double-click the title bar to switch to full-screen mode. For Mac u ![Pake](https://gw.alipayobjects.com/zos/k/zd/pake.gif) -**Pake provides a command line tool, making the flow of package customization quicker and easier. See [documentation](./bin/README_CN.md) for more information.** +**Pake provides a command line tool, making the flow of package customization quicker and easier. See [documentation](./bin/README.md) for more information.** ```bash # Install with npm diff --git a/bin/README_CN.md b/bin/README_CN.md index e28be37..8904969 100644 --- a/bin/README_CN.md +++ b/bin/README_CN.md @@ -11,8 +11,7 @@ npm install pake-cli -g ## Windows/Linux 注意事项 - **非常重要**:请参阅 Tauri 的 [依赖项指南](https://tauri.app/v1/guides/getting-started/prerequisites)。 -- 对于 Windows 用户,请确保至少安装了 `Win10 SDK(10.0.19041.0)` 和 `Visual Studio Build Tools 2022(版本 17.2 或更高)` - 。此外,还需要安装以下组件: +- 对于 Windows 用户,请确保至少安装了 `Win10 SDK(10.0.19041.0)` 和 `Visual Studio Build Tools 2022(版本 17.2 或更高)`,此外还需要安装以下组件: 1. Microsoft Visual C++ 2015-2022 Redistributable (x64) 2. Microsoft Visual C++ 2015-2022 Redistributable (x86) diff --git a/bin/builders/BaseBuilder.ts b/bin/builders/BaseBuilder.ts index 619181c..c47fe88 100644 --- a/bin/builders/BaseBuilder.ts +++ b/bin/builders/BaseBuilder.ts @@ -27,8 +27,8 @@ export default abstract class BaseBuilder { const tauriTargetPathExists = await fsExtra.pathExists(tauriTargetPath); if (!IS_MAC && !tauriTargetPathExists) { - logger.info('✺ The first use requires installing system dependencies.'); - logger.info('✺ See more in https://tauri.app/v1/guides/getting-started/prerequisites.'); + logger.warn('✼ The first use requires installing system dependencies.'); + logger.warn('✼ See more in https://tauri.app/v1/guides/getting-started/prerequisites.'); } if (!checkRustInstalled()) { diff --git a/bin/utils/info.ts b/bin/utils/info.ts index a08a726..f9ad6ac 100644 --- a/bin/utils/info.ts +++ b/bin/utils/info.ts @@ -6,7 +6,7 @@ import chalk from 'chalk'; // Generates an identifier based on the given URL. export function getIdentifier(url: string) { const postFixHash = crypto.createHash('md5').update(url).digest('hex').substring(0, 6); - return `pake-${postFixHash}`; + return `com.pake.${postFixHash}`; } export async function promptText(message: string, initial?: string): Promise {