瀏覽代碼

!33 更新 README 中 Arch Linux 说明
* update README

taotieren 2 年之前
父節點
當前提交
061aaf6067
共有 4 個文件被更改,包括 18 次插入12 次删除
  1. 8 5
      README.md
  2. 8 5
      README_EN.md
  3. 1 1
      src/plugin/helloworld/helloworld.pro
  4. 1 1
      src/plugin/test/test.pro

+ 8 - 5
README.md

@@ -41,11 +41,14 @@ NDD已初步推出插件编写功能,希望广大的CPP/QT开发者加入我
 
 - ArchLinux
 
-1. 安装编译环境 `sudo pacman -S gcc cmake make `
-1. 安装qt工具和库 `sudo pacman -S qt5-tools qt5-base qt5-xmlpatterns `
-1. 配置 `cmake -B build -DCMAKE_BUILD_TYPE=Release`
-1. 编译 `cd build && make -j` 
-1. 打包:使用aur
+1. 安装编译环境 `sudo pacman -S gcc cmake make ninja`
+1. 安装 qt 工具和库 `sudo pacman -S qt5-tools qt5-base qt5-xmlpatterns`
+1. 配置 `cmake -S . -Bbuild -GNinja -DCMAKE_BUILD_TYPE=Release  -DCMAKE_INSTALL_PREFIX=/usr -W no-dev`
+1. 编译 `ninja -C build && ninja -C build install`
+1. 打包: 使用 [AUR/notepad---git](https://aur.archlinux.org/packages/notepad---git) `yay -S notepad---git`
+1. 安装:
+    - 预编译包添加 [ArchLinuxCN/notepad---git](https://github.com/archlinuxcn/repo) 镜像 `yay -S archlinuxcn/notepad---git`
+    - 预编译包 [Debuginfod/notepad---git-debug](https://wiki.archlinux.org/title/Debuginfod) 包 `yay -S archlinuxcn/notepad---git-debug`
 
 - openSUSE Tumbleweed
 

+ 8 - 5
README_EN.md

@@ -34,11 +34,14 @@ Creating a free text editor requires support from users like you. If you'd like
 
 - ArchLinux
 
-1. Install compilation environment `sudo pacman -S gcc cmake make `
+1. Install compilation environment `sudo pacman -S gcc cmake make ninja`
 1. Install qt tools and libraries `sudo pacman -S qt5-tools qt5-base qt5-xmlpatterns `
-1. Configure `cmake -B build -DCMAKE_BUILD_TYPE=Release`
-1. Compile `cd build && make -j`
-1. Package: use aur
+1. Configure `cmake -S . -Bbuild -GNinja -DCMAKE_BUILD_TYPE=Release  -DCMAKE_INSTALL_PREFIX=/usr -W no-dev`
+1. Compile `ninja -C build && ninja -C build install`
+1. Package: use [AUR/notepad---git](https://aur.archlinux.org/packages/notepad---git) `yay -S notepad---git`
+1. Installation:
+    - Pre-compiled package add [ArchLinuxCN/notepad---git](https://github.com/archlinuxcn/repo) mirror `yay -S archlinuxcn/notepad---git`
+    - Pre-compiled package [Debuginfod/notepad---git-debug](https://wiki.archlinux.org/title/Debuginfod) package `yay -S archlinuxcn/notepad---git-debug`
 
 **Qt Project Compilation Instructions:** 
 
@@ -63,4 +66,4 @@ yay -S notepad---git
 
 ![Input description picture](png/3.png)
 
-![Input description picture](png/7.png)
+![Input description picture](png/7.png)

+ 1 - 1
src/plugin/helloworld/helloworld.pro

@@ -1,7 +1,7 @@
 TEMPLATE	= lib
 LANGUAGE	= C++
 
-CONFIG	+= qt warn_on Debug
+CONFIG	+= qt warn_on
 QT += core gui widgets
 
 HEADERS	+= *.h

+ 1 - 1
src/plugin/test/test.pro

@@ -1,7 +1,7 @@
 TEMPLATE	= lib
 LANGUAGE	= C++
 
-CONFIG	+= qt warn_on Debug
+CONFIG	+= qt warn_on
 QT += core gui widgets
 
 HEADERS	+= *.h