-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.py
59 lines (47 loc) · 1.7 KB
/
constants.py
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
# -*- coding: utf-8 -*-
#constant values
#Copyright (C) 20XX anonimous <[email protected]>
import wx
#アプリケーション基本情報
APP_FULL_NAME = "Calm Radio Player"#アプリケーションの完全な名前
APP_NAME="CRP"#アプリケーションの名前
APP_ICON = None
APP_VERSION="1.0.0"
APP_LAST_RELEASE_DATE="2022-04-29"
APP_COPYRIGHT_YEAR="2022"
APP_LICENSE="GPL v2(or later)"
APP_DEVELOPERS="Kazto Kitabatake, ACT Laboratory"
APP_DEVELOPERS_URL="https://actlab.org/"
APP_DETAILS_URL="https://actlab.org/software/CRP"
APP_COPYRIGHT_MESSAGE = "Copyright (c) %s %s All lights reserved." % (APP_COPYRIGHT_YEAR, APP_DEVELOPERS)
SUPPORTING_LANGUAGE={"ja-JP": "日本語","en-US": "English"}
#各種ファイル名
LOG_PREFIX="crp"
LOG_FILE_NAME="crp.log"
SETTING_FILE_NAME="settings.ini"
KEYMAP_FILE_NAME="keymap.ini"
#フォントの設定可能サイズ範囲
FONT_MIN_SIZE=5
FONT_MAX_SIZE=35
#3ステートチェックボックスの状態定数
NOT_CHECKED=wx.CHK_UNCHECKED
HALF_CHECKED=wx.CHK_UNDETERMINED
FULL_CHECKED=wx.CHK_CHECKED
#build関連定数
BASE_PACKAGE_URL = "https://github.com/actlaboratory/CRP/releases/download/1.0.0/CRP-1.0.0.zip"
PACKAGE_CONTAIN_ITEMS = ("resources",)#パッケージに含めたいファイルやfolderがあれば指定
NEED_HOOKS = ()#pyinstallerのhookを追加したい場合は指定
STARTUP_FILE = "crp.py"#起動用ファイルを指定
UPDATER_URL = "https://github.com/actlaboratory/updater/releases/download/1.0.0/updater.zip"
# update情報
UPDATE_URL = "https://actlab.org/api/checkUpdate"
UPDATER_VERSION = "1.0.0"
UPDATER_WAKE_WORD = "hello"
# calm radio
AVAILABLE_BITRATE = [
"64",
"192",
"320",
]
# menu item id
DEVICE_MENU_START = 10000