From b2986f3718b486dec641056af8630ff4dc6e22b1 Mon Sep 17 00:00:00 2001 From: heng30 <2238288979@qq.com> Date: Tue, 3 Sep 2024 01:01:23 +0800 Subject: [PATCH] [+] add some scripts to help init a new project --- ui/panel/desktop/examples/introducion.slint | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/ui/panel/desktop/examples/introducion.slint b/ui/panel/desktop/examples/introducion.slint index 77a172c..a4b48da 100644 --- a/ui/panel/desktop/examples/introducion.slint +++ b/ui/panel/desktop/examples/introducion.slint @@ -24,12 +24,19 @@ export component Introduction inherits Flickable { "6. 如果是Web平台,需要替换`web/index.html`文件相关信息。" ], }, + { + title: "如何使用脚本初始化新项目?", + contents: [ + "1. 在`script`目录下包含了一些初始化项目脚本,帮助我们快速启动一个新项目。脚本文件: init-project.sh , replace-android-icon.sh, replace-android-splash.sh, replace-brand-picture.sh, replace-windows-icon.sh", + "2. 使用命令`./init-project.sh --help`可查看初始化脚本使用方法。其他脚本也可使用`--help`查看使用方法", + ], + }, { title: "如何编译项目?", contents: [ "1. 桌面平台:`make desktop-build-release`", "2. Android平台:`make android-build-release`", - "3. Web平台:make web-buid-dist", + "3. Web平台:`make web-buid-dist`", "4. 更多命令可参考Makefile文件", ] }, @@ -81,12 +88,20 @@ export component Introduction inherits Flickable { "6. If using Web platform,replace `web/index.html` informations about the project" ], }, + { + title: "How to start a new project using scripts?", + contents: [ + "1. There are some scripts that can help us quickly start a new project in the `script` directory. Script files: init-project.sh , replace-android-icon.sh, replace-android-splash.sh, replace-brand-picture.sh, replace-windows-icon.sh", + + "2. Use `--help` command to shows the usage", + ], + }, { title: "How to compile the project?", contents: [ "1. Desktop platform:`make desktop-build-release`", "2. Android platform:`make android-build-release`", - "3. Web platform:make web-buid-dist", + "3. Web platform:`make web-buid-dist`", "4. Refer the Makefile for more information", ] },