Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
104 lines (99 loc) · 3.11 KB
/
Copy pathsetup.py
File metadata and controls
104 lines (99 loc) · 3.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
"""
py2app setup script for Steam Achievement Localizer
"""
from setuptools import setup
import os
# Get version from source
VERSION = "0.10.0"
with open("SteamAchievementLocalizer.py", "r", encoding="utf-8") as f:
for line in f:
if "APP_VERSION" in line:
VERSION = line.split('"')[1]
break
APP = ['SteamAchievementLocalizer.py']
DATA_FILES = [
('assets', ['assets/icon.icns']),
('assets/locales', [
'assets/locales/lang_en.json',
'assets/locales/lang_pl.json',
'assets/locales/lang_ua.json',
]),
('assets/themes', [
'assets/themes/catppuccin_mocha.json',
'assets/themes/dark.json',
'assets/themes/darkfemboy.json',
'assets/themes/femboy.json',
'assets/themes/light.json',
'assets/themes/system.json',
'assets/steam.api.allgamenames.json',
]),
]
OPTIONS = {
'argv_emulation': False,
'iconfile': 'assets/icon.icns',
'plist': {
'CFBundleName': 'Steam Achievement Localizer',
'CFBundleDisplayName': 'Steam Achievement Localizer',
'CFBundleIdentifier': 'com.panvena.steamachievementlocalizer',
'CFBundleVersion': VERSION,
'CFBundleShortVersionString': VERSION,
'CFBundleGetInfoString': f'Steam Achievement Localizer {VERSION}, Copyright © 2025 Pan Vena',
'NSHumanReadableCopyright': 'Copyright © 2025 Pan Vena. MIT License.',
'NSHumanReadableDescription': 'Tool for localizing Steam achievement files',
'LSMinimumSystemVersion': '10.13.0',
'NSHighResolutionCapable': True,
'CFBundleDocumentTypes': [
{
'CFBundleTypeName': 'Steam Achievement Schema',
'CFBundleTypeRole': 'Editor',
'LSItemContentTypes': ['public.data'],
'LSHandlerRank': 'Owner',
}
],
},
'packages': ['PyQt6', 'certifi', 'requests', 'urllib3'],
'includes': [
'PyQt6.QtCore',
'PyQt6.QtGui',
'PyQt6.QtWidgets',
'PyQt6.sip',
'certifi',
'plugins.highlight_delegate',
'plugins.find_replace_dialog',
'plugins.user_game_stats_list_dialog',
'plugins.context_lang_dialog',
'plugins.theme_manager',
'plugins.binary_parser',
'plugins.steam_integration',
'plugins.csv_handler',
'plugins.file_manager',
'plugins.ui_builder',
'plugins.help_dialog',
'plugins.context_menu',
'plugins.steam_lang_codes',
'plugins.drag_drop_overlay',
'plugins.game_name_fetch_worker',
'plugins.auto_updater',
'plugins.http_client',
],
'excludes': [
'tkinter',
'matplotlib',
'numpy',
'pandas',
'packaging',
],
'strip': True,
'semi_standalone': False,
}
setup(
name='Steam Achievement Localizer',
app=APP,
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
version=VERSION,
description='Tool for localizing Steam achievement files',
author='Pan Vena',
url='https://github.com/PanVena/SteamAchievementLocalizer',
)