From eb6b22a847f473da9c6753cd038ebc48f1c04d8d Mon Sep 17 00:00:00 2001 From: cevoj35 Date: Wed, 5 Apr 2023 05:45:30 +0000 Subject: [PATCH] Add build script --- README.md | 2 +- build.bat | 14 ++++++++++++++ requirements.txt | 28 ++++++++++++++++++++++++++++ 3 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 build.bat create mode 100644 requirements.txt diff --git a/README.md b/README.md index cd1ee81..fc955d0 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ cd fmhy-dupe-checker\ [Python](https://www.python.org/downloads/) is required. ```bash -pip install requests grequests PyQt5 pyperclip fake-headers darkdetect +pip install -r requirements.txt ``` Run `FmhyChecker.pyw` diff --git a/build.bat b/build.bat new file mode 100644 index 0000000..3cbdf37 --- /dev/null +++ b/build.bat @@ -0,0 +1,14 @@ +:: Build script for compiled exe using nuitka + +@prompt Executing: +python -m nuitka --standalone --onefile --remove-output --assume-yes-for-downloads --disable-console --clean-cache=all --enable-plugin=pyqt5 --include-data-files=MainWindow.ui=MainWindow.ui --include-data-dir=assets=assets "--windows-icon-from-ico=%~dp0assets\icon.ico" FmhyChecker.pyw + +@echo off +if %errorlevel%==0 ( + echo.Complete&color 0a +) else ( + echo.Failed with error code %errorlevel%&color 04 +) + +echo.==================== +pause >nul \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..e222201 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,28 @@ +beautifulsoup4==4.12.0 +bs4==0.0.1 +certifi==2022.12.7 +cffi==1.15.1 +charset-normalizer==3.1.0 +darkdetect==0.8.0 +fake-headers==1.0.2 +gevent==22.10.2 +greenlet==2.0.2 +grequests==0.6.0 +html5lib==1.1 +idna==3.4 +msvc-runtime==14.34.31931 +Nuitka==1.5.4 +ordered-set==4.1.0 +pycparser==2.21 +pyperclip==1.8.2 +PyQt5==5.15.9 +PyQt5-Qt5==5.15.2 +PyQt5-sip==12.11.1 +requests==2.28.2 +six==1.16.0 +soupsieve==2.4 +urllib3==1.26.15 +webencodings==0.5.1 +zope.event==4.6 +zope.interface==6.0 +zstandard==0.20.0