diff --git a/.gitignore b/.gitignore index e7c15c0..41eddb6 100644 --- a/.gitignore +++ b/.gitignore @@ -11,5 +11,9 @@ __pycache__/ !*.md !LICENSE +# Allow assets folder +!assets/ +!assets/** + # Don't ignore .gitignore !.gitignore diff --git a/README.md b/README.md index 098cbd1..9f7fb5e 100644 --- a/README.md +++ b/README.md @@ -22,13 +22,20 @@ # AutoGGUF - automated GGUF model quantizer 2. Enjoy! **Building**: + +Cross platform: ```bash cd src pip install -U pyinstaller -pyinstaller main.py +pyinstaller main.py --onefile cd dist/main ./main ``` +Windows: +```bash +build RELEASE/DEV +``` +Find exe in `build//dist/AutoGGUF.exe`. **Dependencies**: - PyQt6 diff --git a/assets/favicon.ico b/assets/favicon.ico new file mode 100644 index 0000000..c2814b4 Binary files /dev/null and b/assets/favicon.ico differ diff --git a/assets/favicon_light.ico b/assets/favicon_light.ico new file mode 100644 index 0000000..d568787 Binary files /dev/null and b/assets/favicon_light.ico differ diff --git a/assets/gguf.svg b/assets/gguf.svg new file mode 100644 index 0000000..ae5b6af --- /dev/null +++ b/assets/gguf.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/build.bat b/build.bat new file mode 100644 index 0000000..4fd4083 --- /dev/null +++ b/build.bat @@ -0,0 +1,24 @@ +@echo off + +if "%1"=="" ( + echo Usage: build.bat [RELEASE^|DEV] + exit /b 1 +) + +if /I "%1"=="RELEASE" ( + echo Building RELEASE version... + pyinstaller --windowed --onefile --name=AutoGGUF --icon=../../assets/favicon_light.ico --distpath=build\release\dist --workpath=build\release\build --specpath=build\release src\main.py +) else if /I "%1"=="DEV" ( + echo Building DEV version... + pyinstaller --onefile --name=AutoGGUF --icon=../../assets/favicon.ico --distpath=build\dev\dist --workpath=build\dev\build --specpath=build\dev src\main.py +) else ( + echo Invalid argument. Use RELEASE or DEV. + exit /b 1 +) + +if errorlevel 1 ( + echo Build failed. + exit /b 1 +) else ( + echo Build completed successfully. +)