mirror of https://github.com/leafspark/AutoGGUF
add build script + instructions and favicon
This commit is contained in:
parent
558ff49290
commit
86b1474c99
|
@ -11,5 +11,9 @@ __pycache__/
|
||||||
!*.md
|
!*.md
|
||||||
!LICENSE
|
!LICENSE
|
||||||
|
|
||||||
|
# Allow assets folder
|
||||||
|
!assets/
|
||||||
|
!assets/**
|
||||||
|
|
||||||
# Don't ignore .gitignore
|
# Don't ignore .gitignore
|
||||||
!.gitignore
|
!.gitignore
|
||||||
|
|
|
@ -22,13 +22,20 @@ # AutoGGUF - automated GGUF model quantizer
|
||||||
2. Enjoy!
|
2. Enjoy!
|
||||||
|
|
||||||
**Building**:
|
**Building**:
|
||||||
|
|
||||||
|
Cross platform:
|
||||||
```bash
|
```bash
|
||||||
cd src
|
cd src
|
||||||
pip install -U pyinstaller
|
pip install -U pyinstaller
|
||||||
pyinstaller main.py
|
pyinstaller main.py --onefile
|
||||||
cd dist/main
|
cd dist/main
|
||||||
./main
|
./main
|
||||||
```
|
```
|
||||||
|
Windows:
|
||||||
|
```bash
|
||||||
|
build RELEASE/DEV
|
||||||
|
```
|
||||||
|
Find exe in `build/<type>/dist/AutoGGUF.exe`.
|
||||||
|
|
||||||
**Dependencies**:
|
**Dependencies**:
|
||||||
- PyQt6
|
- PyQt6
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 165 KiB |
Binary file not shown.
After Width: | Height: | Size: 166 KiB |
|
@ -0,0 +1 @@
|
||||||
|
<svg class="text-black inline-block text-sm" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 17 14"><path fill-rule="evenodd" clip-rule="evenodd" d="M2.668 1.076v1.078H1.5v9.692h1.168v1.078h11.666v-1.078H15.5V2.154h-1.166V1.076Zm.986 1.615h4.307v2.694H6.885V3.77H4.732v4.306h2.153V7H5.809V5.924H7.96v3.23H3.654ZM9.04 4.846h4.309v2.691H12.27V5.924h-2.155v4.306h2.155V9.154h-1.077V8.076h2.155v3.233H9.039Z" fill="white"></path></svg>
|
After Width: | Height: | Size: 583 B |
|
@ -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.
|
||||||
|
)
|
Loading…
Reference in New Issue