creating building files for packaging the app into an executable file
3
.gitignore
vendored
@ -7,3 +7,6 @@ todo.txt
|
|||||||
anime_backlog.db.bk
|
anime_backlog.db.bk
|
||||||
*.db-wal
|
*.db-wal
|
||||||
*.db-shm
|
*.db-shm
|
||||||
|
dist/
|
||||||
|
build/
|
||||||
|
anime_env/
|
||||||
|
55
build.spec
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
# -*- mode: python -*-
|
||||||
|
from PyInstaller.utils.hooks import collect_data_files, collect_submodules
|
||||||
|
|
||||||
|
block_cipher = None
|
||||||
|
|
||||||
|
a = Analysis(
|
||||||
|
['frontend.py'],
|
||||||
|
pathex=[],
|
||||||
|
binaries=[],
|
||||||
|
datas=[
|
||||||
|
('icons', 'icons'),
|
||||||
|
('anime_backlog.db', '.')
|
||||||
|
],
|
||||||
|
hiddenimports=[
|
||||||
|
'backend',
|
||||||
|
'sqlite3',
|
||||||
|
*collect_submodules('PyQt5')
|
||||||
|
],
|
||||||
|
hookspath=['.'],
|
||||||
|
hooksconfig={},
|
||||||
|
runtime_hooks=[],
|
||||||
|
excludes=[],
|
||||||
|
noarchive=False
|
||||||
|
)
|
||||||
|
|
||||||
|
pyz = PYZ(a.pure)
|
||||||
|
|
||||||
|
exe = EXE(
|
||||||
|
pyz,
|
||||||
|
a.scripts,
|
||||||
|
[],
|
||||||
|
exclude_binaries=True,
|
||||||
|
name='AnimeTracker',
|
||||||
|
debug=False,
|
||||||
|
bootloader_ignore_signals=False,
|
||||||
|
strip=False,
|
||||||
|
upx=True,
|
||||||
|
console=False,
|
||||||
|
disable_windowed_tracker=False,
|
||||||
|
argv_emulation=False,
|
||||||
|
target_arch=None,
|
||||||
|
codesign_identity=None,
|
||||||
|
entitlements_file=None,
|
||||||
|
icon='icons/anime-app-icon.png'
|
||||||
|
)
|
||||||
|
|
||||||
|
coll = COLLECT(
|
||||||
|
exe,
|
||||||
|
a.binaries,
|
||||||
|
a.zipfiles,
|
||||||
|
a.datas,
|
||||||
|
strip=False,
|
||||||
|
upx=True,
|
||||||
|
name='AnimeTracker',
|
||||||
|
)
|
@ -152,6 +152,11 @@ class AnimeTracker(QMainWindow):
|
|||||||
self.settings = QSettings("xAI", "AnimeBacklogTracker")
|
self.settings = QSettings("xAI", "AnimeBacklogTracker")
|
||||||
self.last_used_season = self.settings.value("lastUsedSeason", "winter")
|
self.last_used_season = self.settings.value("lastUsedSeason", "winter")
|
||||||
self.setWindowTitle("Anime Backlog Tracker")
|
self.setWindowTitle("Anime Backlog Tracker")
|
||||||
|
# Add application icon
|
||||||
|
icon_path = os.path.join(os.path.dirname(__file__), './icons/anime-app-icon.png')
|
||||||
|
print("icon_path = " + icon_path)
|
||||||
|
if os.path.exists(icon_path):
|
||||||
|
self.setWindowIcon(QIcon(icon_path))
|
||||||
self.resize(800, 600)
|
self.resize(800, 600)
|
||||||
self.backend = AnimeBackend()
|
self.backend = AnimeBackend()
|
||||||
self.tab_widget = QTabWidget()
|
self.tab_widget = QTabWidget()
|
||||||
|
BIN
icons/android-chrome-192x192.png
Normal file
After Width: | Height: | Size: 61 KiB |
BIN
icons/android-chrome-512x512.png
Normal file
After Width: | Height: | Size: 306 KiB |
BIN
icons/anime-app-icon.png
Normal file
After Width: | Height: | Size: 82 KiB |
BIN
icons/apple-touch-icon.png
Normal file
After Width: | Height: | Size: 55 KiB |
BIN
icons/favicon-16x16.png
Normal file
After Width: | Height: | Size: 924 B |
BIN
icons/favicon-32x32.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
icons/favicon.ico
Normal file
After Width: | Height: | Size: 15 KiB |
1
requirements.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
PyQt5==5.15.10
|