Skip to content

Commit

Permalink
add software description
Browse files Browse the repository at this point in the history
  • Loading branch information
zfb132 committed May 3, 2022
1 parent 71c836f commit 2d077c7
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 5 deletions.
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
软件运行结束
<img src="docs/result.png" alt="软件运行结束" align=center />

## 功能
## 1. 功能
* 完全离线的软件,升级和更新在GitHub查看
* 能够批量排查图片是否包含二维码
* 支持文件夹导入排查范围,自动遍历所有子文件夹
Expand All @@ -21,7 +21,19 @@
* 支持实时日志显示与进度展示
* 支持多进程极速检测

## 免责声明
## 2. 下载软件
### 2.1. 使用已经编译成功的发布版软件
下载地址:[release](https://github.com/zfb132/QrScan/releases)
由于使用`github actions`机器和`pyinstaller`软件打包,所以有一定概率被反病毒软件误报为`Trojan`(特洛伊木马),目前还没有找到有效的方法解决(使用本地机器进行打包可能不会报毒)

### 2.2. 从代码编译运行打包软件
根据本机系统平台的不同,选择不同的文件后缀名: `Windows`平台选择`.bat``Linux`平台选择`.sh`
*`scripts/config_env``scripts/publish`移动到当前目录
* 执行`config_env`
*`Windows`系统此时可以通过命令`.\venv\Scripts\python.exe pyqt5_qr_scan.py`运行本软件;在`Linux`系统此时可以通过命令`venv/bin/python3 pyqt5_qr_scan.py`运行本软件
* 如要打包软件(剥离python环境),则执行`publish`,最终会在当前目录得到一个`QrScan.zip`压缩包

## 3. 免责声明
一切下载及使用本软件时均被视为已经仔细阅读并完全同意以下条款:
* 软件仅供个人学习与交流使用,严禁用于非法用途,转载需申请作者授权
* 严禁未经书面许可用于商业用途
Expand Down
3 changes: 2 additions & 1 deletion scripts/config_env.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ echo Creating virtual environment: venv
python -m venv venv
echo Upgrade pip version
.\venv\Scripts\python.exe -m pip install --upgrade pip
echoInstalling pyqt5 pyqt5-stubs pywin32 pyinstaller opencv-python opencv-contrib-python
.\venv\Scripts\pip.exe install -U setuptools wheel
echo Installing pyqt5 pyqt5-stubs pywin32 pyinstaller opencv-python opencv-contrib-python
.\venv\Scripts\pip.exe install -r requirements.txt
1 change: 1 addition & 0 deletions scripts/config_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ echo Creating virtual environment: venv
python3 -m venv venv
echo Upgrade pip version
venv/bin/python -m pip install --upgrade pip
venv/bin/pip install -U setuptools wheel
echo Installing pyqt5 pyqt5-stubs pywin32 pyinstaller opencv-python opencv-contrib-python
venv/bin/pip install -r requirements.txt
2 changes: 1 addition & 1 deletion scripts/publish.bat
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ REM compile images
%PRJ_PATH%\%PYTHON_NAME%\Scripts\pyrcc5.exe resources.qrc -o resources.py

echo Packing Analysis.py
%PYINSTALLER_FILE% --paths=%PYQT_PATH% --specpath=%SPEC_PATH% --workpath=%WORK_PATH% --distpath=%DIST_PATH% --key 8rdf-#875FGSDyrd7t --version-file %PRJ_PATH%\file_version_info.txt --icon=%ICON_FILE% -D -w %PRJ_PATH%\%PY_NAME%.py -y
%PYINSTALLER_FILE% --paths=%PYQT_PATH% --specpath=%SPEC_PATH% --workpath=%WORK_PATH% --distpath=%DIST_PATH% --key 8rdf-#875FGSDyrd7t --version-file %PRJ_PATH%\file_version_info.txt --icon=%ICON_FILE% -D -w %PRJ_PATH%\%PY_NAME%.py -y --clean

echo Creating %FINAL_PATH%
rename "%DIST_PATH%\%PY_NAME%" "%FINAL_PATH%"
Expand Down
4 changes: 3 additions & 1 deletion scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ rm -f resources.py

${PRJ_PATH}/${PYTHON_NAME}/bin/pyrcc5 resources.qrc -o resources.py

${PYINSTALLER_FILE} --paths=${PYQT_PATH} --specpath=${SPEC_PATH} --workpath=${WORK_PATH} --distpath=${DIST_PATH} --key "audYRD65jFDT87" --version-file ${PRJ_PATH}/file_version_info.txt --icon=${ICON_FILE} -D -w ${PRJ_PATH}/${PY_NAME}.py -y
${PYINSTALLER_FILE} --clean

${PYINSTALLER_FILE} --paths=${PYQT_PATH} --specpath=${SPEC_PATH} --workpath=${WORK_PATH} --distpath=${DIST_PATH} --key "audYRD65jFDT87" --version-file ${PRJ_PATH}/file_version_info.txt --icon=${ICON_FILE} -D -w ${PRJ_PATH}/${PY_NAME}.py -y --clean

mv ${DIST_PATH}/${PY_NAME} ${DIST_PATH}/${FINAL_PATH}

Expand Down

0 comments on commit 2d077c7

Please sign in to comment.