xref: /DragonOS/user/apps/about/about.c (revision 52bcb59e9286def2b66d766f6bf6f46745795ec8)
1 #include "sys_version.h" // 这是系统的版本头文件,在编译过程中自动生成
2 #include <stdio.h>
3 #include <unistd.h>
4 
5 void print_ascii_logo()
6 {
7     printf(" ____                                      ___   ____ \n");
8     printf("|  _ \\  _ __   __ _   __ _   ___   _ __   / _ \\ / ___| \n");
9     printf("| | | || '__| / _` | / _` | / _ \\ | '_ \\ | | | |\\___ \\  \n");
10     printf("| |_| || |   | (_| || (_| || (_) || | | || |_| | ___) |\n");
11     printf("|____/ |_|    \\__,_| \\__, | \\___/ |_| |_| \\___/ |____/ \n");
12     printf("                     |___/     \n");
13 }
14 
15 void print_copyright()
16 {
17     printf(" DragonOS - An opensource operating system.\n");
18     printf(" Copyright: DragonOS Community. 2022-2024, All rights reserved.\n");
19     printf(" Version: ");
20     printf("\033[1;32m%s\033[0m", "V0.1.8\n");
21     printf(" Git commit SHA1: %s\n", DRAGONOS_GIT_COMMIT_SHA1);
22     printf(" Build time: %s %s\n", __DATE__, __TIME__);
23     printf(" \nYou can visit the project via:\n");
24     printf("\n");
25     printf("\x1B[1;36m%s\x1B[0m", "    Official Website: https://DragonOS.org\n");
26     printf("\x1B[1;33m%s\x1B[0m", "    GitHub: https://github.com/DragonOS-Community/DragonOS\n");
27     printf("\n");
28     printf(" Maintainer: longjin <longjin@DragonOS.org>\n");
29     printf(" Get contact with the community: <contact@DragonOS.org>\n");
30     printf("\n");
31     printf(" Join our development community:\n");
32     printf("\x1B[1;33m%s\x1B[0m", "    https://bbs.dragonos.org.cn\n");
33     printf("\n");
34 }
35 
36 int main()
37 {
38     print_ascii_logo();
39     print_copyright();
40     return 0;
41 }
42