mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-06 22:54:16 +02:00
29 lines
1.2 KiB
Python
29 lines
1.2 KiB
Python
import os
|
|
|
|
from bauh.api.paths import CONFIG_PATH, TEMP_DIR, CACHE_PATH
|
|
from bauh.commons import resource
|
|
|
|
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
|
|
BUILD_DIR = f'{TEMP_DIR}/arch'
|
|
ARCH_CACHE_PATH = f'{CACHE_PATH}/arch'
|
|
CATEGORIES_FILE_PATH = f'{ARCH_CACHE_PATH}/categories.txt'
|
|
URL_CATEGORIES_FILE = 'https://raw.githubusercontent.com/vinifmor/bauh-files/master/arch/categories.txt'
|
|
URL_GPG_SERVERS = 'https://raw.githubusercontent.com/vinifmor/bauh-files/master/arch/gpgservers.txt'
|
|
CONFIG_DIR = f'{CONFIG_PATH}/arch'
|
|
CUSTOM_MAKEPKG_FILE = '{}/makepkg.conf'.format(CONFIG_DIR)
|
|
AUR_INDEX_FILE = f'{ARCH_CACHE_PATH}/aur/index.txt'
|
|
AUR_INDEX_TS_FILE = f'{ARCH_CACHE_PATH}/aur/index.ts'
|
|
CONFIG_FILE = f'{CONFIG_PATH}/arch.yml'
|
|
SUGGESTIONS_FILE = 'https://raw.githubusercontent.com/vinifmor/bauh-files/master/arch/aur_suggestions.txt'
|
|
UPDATES_IGNORED_FILE = '{}/updates_ignored.txt'.format(CONFIG_DIR)
|
|
EDITABLE_PKGBUILDS_FILE = '{}/aur/editable_pkgbuilds.txt'.format(CONFIG_DIR)
|
|
IGNORED_REBUILD_CHECK_FILE = '{}/aur/ignored_rebuild_check.txt'.format(CONFIG_DIR)
|
|
|
|
|
|
def get_icon_path() -> str:
|
|
return resource.get_path('img/arch.svg', ROOT_DIR)
|
|
|
|
|
|
def get_repo_icon_path() -> str:
|
|
return resource.get_path('img/repo.svg', ROOT_DIR)
|