edit favicon
Before Width: | Height: | Size: 165 KiB After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 92 KiB |
|
@ -1 +0,0 @@
|
||||||
<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>
|
|
Before Width: | Height: | Size: 583 B |
After Width: | Height: | Size: 165 KiB |
Before Width: | Height: | Size: 166 KiB After Width: | Height: | Size: 166 KiB |
|
@ -7,10 +7,10 @@ if "%1"=="" (
|
||||||
|
|
||||||
if /I "%1"=="RELEASE" (
|
if /I "%1"=="RELEASE" (
|
||||||
echo Building RELEASE version...
|
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
|
pyinstaller --windowed --onefile --name=AutoGGUF --icon=../../assets/favicon_large.png --add-data "../../assets;assets" --distpath=build\release\dist --workpath=build\release\build --specpath=build\release src\main.py
|
||||||
) else if /I "%1"=="DEV" (
|
) else if /I "%1"=="DEV" (
|
||||||
echo Building DEV version...
|
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
|
pyinstaller --onefile --name=AutoGGUF --icon=../../assets/favicon_large.png --add-data "../../assets;assets" --distpath=build\dev\dist --workpath=build\dev\build --specpath=build\dev src\main.py
|
||||||
) else (
|
) else (
|
||||||
echo Invalid argument. Use RELEASE or DEV.
|
echo Invalid argument. Use RELEASE or DEV.
|
||||||
exit /b 1
|
exit /b 1
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
import zipfile
|
import zipfile
|
||||||
import re
|
import re
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from imports_and_globals import ensure_directory, open_file_safe
|
from imports_and_globals import ensure_directory, open_file_safe, resource_path
|
||||||
from DownloadThread import DownloadThread
|
from DownloadThread import DownloadThread
|
||||||
from ModelInfoDialog import ModelInfoDialog
|
from ModelInfoDialog import ModelInfoDialog
|
||||||
from TaskListItem import TaskListItem
|
from TaskListItem import TaskListItem
|
||||||
|
@ -31,6 +31,7 @@ def __init__(self):
|
||||||
|
|
||||||
self.logger.info(INITIALIZING_AUTOGGUF)
|
self.logger.info(INITIALIZING_AUTOGGUF)
|
||||||
self.setWindowTitle(WINDOW_TITLE)
|
self.setWindowTitle(WINDOW_TITLE)
|
||||||
|
self.setWindowIcon(QIcon(resource_path("assets/favicon.ico")))
|
||||||
self.setGeometry(100, 100, 1600, 1200)
|
self.setGeometry(100, 100, 1600, 1200)
|
||||||
|
|
||||||
ensure_directory(os.path.abspath("quantized_models"))
|
ensure_directory(os.path.abspath("quantized_models"))
|
||||||
|
|
|
@ -28,3 +28,12 @@ def open_file_safe(file_path, mode='r'):
|
||||||
except UnicodeDecodeError:
|
except UnicodeDecodeError:
|
||||||
continue
|
continue
|
||||||
raise ValueError(f"Unable to open file {file_path} with any of the encodings: {encodings}")
|
raise ValueError(f"Unable to open file {file_path} with any of the encodings: {encodings}")
|
||||||
|
|
||||||
|
def resource_path(relative_path):
|
||||||
|
try:
|
||||||
|
# PyInstaller creates a temp folder and stores path in _MEIPASS
|
||||||
|
base_path = sys._MEIPASS
|
||||||
|
except Exception:
|
||||||
|
base_path = os.path.abspath(".")
|
||||||
|
|
||||||
|
return os.path.join(base_path, relative_path)
|