Browse Source

修改readme

master
tianzhendong 2 years ago
parent
commit
ea710ef10f
  1. 2
      .gitignore
  2. 2
      CMakeLists.txt
  3. 21
      README.md
  4. 0
      src/MainWindow.ui
  5. 2
      src/rename.cpp
  6. 0
      src/rename.h

2
.gitignore

@ -2,3 +2,5 @@
/cmake-build-release/
/.idea/
/windeploy/
*.user
build

2
CMakeLists.txt

@ -6,7 +6,7 @@ set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_PREFIX_PATH "C:/Qt/Qt5.14.2/5.14.2/mingw73_64")
set(CMAKE_PREFIX_PATH "/home/tian/Qt5.12.9/5.12.9/gcc_64")
aux_source_directory(${PROJECT_SOURCE_DIR} DIR_MAIN_SRCS)
aux_source_directory(${PROJECT_SOURCE_DIR}/resources DIR_RESOURCES_SRCS)

21
README.md

@ -31,15 +31,32 @@
## 重复文件处理
当前文件夹有重复文件时,在新名后加“-旧名”字符串
## Release
## 使用
### windows
[windowsRelease-v1.0.2](https://github.com/tianzhendong/FileRename/releases/download/v1.0.2/FileRename.zip
)
[windowsRelease-v1.0.3](https://github.com/tianzhendong/FileRename/releases/download/v1.0.3/windowsRelease-v1.0.3.zip
)
### linux
修改CmakeLists.txt中的qt路径:
set(CMAKE_PREFIX_PATH "/home/tian/Qt5.12.9/5.12.9/gcc_64")
执行:
```bash
mkdir build
cd build
cmake ..
make
FileRename
```
### 替换模式
- 输入新旧字符串,选择替换模式,点击确认
- 选择文件或者文件夹

0
src/mainwindow.ui → src/MainWindow.ui

2
src/Rename.cpp → src/rename.cpp

@ -2,7 +2,7 @@
// Created by 12038 on 2022/6/16.
//
#include <QDateTime>
#include "Rename.h"
#include "rename.h"
#include <QProcess>
Rename::Rename(QObject *) {

0
src/Rename.h → src/rename.h

Loading…
Cancel
Save