Skip to content

Commit 3c01389

Browse files
Updater 1.0
1 parent 205c001 commit 3c01389

File tree

13 files changed

+259
-0
lines changed

13 files changed

+259
-0
lines changed

Icon/updater.ico

4.19 KB
Binary file not shown.

Icon/updater.png

593 KB
Loading

Lang/en.ini

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[LangContent]
2+
software_name =
3+
w_title = Update Check
4+
new_update = A new
5+
new_update_ = version is available.
6+
new_version = New version:
7+
current_version = Current version:
8+
update_btn = Update
9+
software_name_last_ver = You are using the latest version of
10+
updater_msg_box = Updater
11+
updater_msg_box_details = Downloaded. Please complete the update.
12+
complete_update = Complete Update
13+
option_close = Close

Lang/lang.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[AppLang]
2+
lang = en

Lang/lang.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
""" Copyright© 2025 LinuxUsersLinuxMint
2+
Updater Tüm Hakları GPL(Genel Kamu Lisansı) altında korunmaktadır.
3+
Updater All Rights Reserved under the GPL(General Public License).
4+
Bu Yazılımın Bir Kopyası GitHub da yayınlanmaktadır Görüntülemek için: https://github.com/LinuxUsersLinuxMint/Updater
5+
A Copy of This Software is published on GitHub To view: https://github.com/LinuxUsersLinuxMint/Updater"""
6+
7+
import configparser
8+
9+
lang_config = configparser.ConfigParser()
10+
lang_config.read('Lang/lang.ini')
11+
12+
lang = lang_config['AppLang']['lang']
13+
14+
langconfig = configparser.ConfigParser()
15+
langconfig.read(f'Lang/{lang}.ini')
16+
17+
software_name = langconfig['LangContent']['software_name']
18+
w_title = langconfig['LangContent']['w_title']
19+
new_update = langconfig['LangContent']['new_update']
20+
new_update_ = langconfig['LangContent']['new_update_']
21+
new_version = langconfig['LangContent']['new_version']
22+
current_version = langconfig['LangContent']['current_version']
23+
update_btn = langconfig['LangContent']['update_btn']
24+
software_name_last_ver = langconfig['LangContent']['software_name_last_ver']
25+
updater_msg_box = langconfig['LangContent']['updater_msg_box']
26+
updater_msg_box_details = langconfig['LangContent']['updater_msg_box_details']
27+
complete_update = langconfig['LangContent']['complete_update']
28+
option_close = langconfig['LangContent']['option_close']

Lang/tr.ini

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[LangContent]
2+
software_name =
3+
w_title = Güncelleme kontrol
4+
new_update = Yeni bir
5+
new_update_ = versiyonu mevcut.
6+
new_version = Yeni versiyon:
7+
current_version = Mevcut versiyon:
8+
update_btn = Güncelle
9+
software_name_last_ver = 'in en son sürümünü kullanýyorsunuz
10+
updater_msg_box = Güncelleyici
11+
updater_msg_box_details = indirildi lütfen güncellemeyi tamamlayýnýz.
12+
complete_update = Güncellemeyi tamamla
13+
option_close = Kapat

Theme/theme.ini

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
[Icon]
2+
icon = Icon/updater.ico
3+
4+
[ThemeSettings]
5+
usertheme = dark
6+
pywinstyles_theme = dark
7+
8+
[FontSettings]
9+
userfont = Arial
10+
userfontsize = 15
11+
usertitlefontsize = 20
12+
userfontbold = True
13+
14+
[CornerRadiusSettings]
15+
usercornerradiusvalue = 9
16+
17+
[ButtonAppearanceSettings]
18+
userbuttoncolor = default
19+
userbuttonhovercolor = default
20+
userbuttontextcolor = default
21+
userbuttonbordercolor = default
22+
userbuttonborderwidth = default
23+
24+
[WindowSettings]
25+
userwindowtitlecolor = default
26+
w_default_res = 700x90
27+
w_res = 580x90
28+
updater_btn_place_x = 350

Theme/theme.py

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
""" Copyright© 2025 LinuxUsersLinuxMint
2+
Updater Tüm Hakları GPL(Genel Kamu Lisansı) altında korunmaktadır.
3+
Updater All Rights Reserved under the GPL(General Public License).
4+
Bu Yazılımın Bir Kopyası GitHub da yayınlanmaktadır Görüntülemek için: https://github.com/LinuxUsersLinuxMint/Updater
5+
A Copy of This Software is published on GitHub To view: https://github.com/LinuxUsersLinuxMint/Updater"""
6+
7+
import configparser
8+
9+
theme_file_config = configparser.ConfigParser()
10+
theme_file_config.read('Theme/theme_file.ini')
11+
12+
name = theme_file_config['ThemeDataFile']['name']
13+
14+
theme_config = configparser.ConfigParser()
15+
theme_config.read(f'Theme/{name}')
16+
17+
icon = theme_config['Icon']['icon']
18+
userTheme = theme_config['ThemeSettings']['userTheme']
19+
pywinstyles_theme = theme_config['ThemeSettings']['pywinstyles_theme']
20+
userFont = theme_config['FontSettings']['userFont']
21+
userFontSize = int(theme_config['FontSettings']['userFontSize'])
22+
userTitleFontSize = int(theme_config['FontSettings']['userTitleFontSize'])
23+
userFontBold = theme_config['FontSettings']['userFontBold']
24+
userCornerRadiusValue = int(theme_config['CornerRadiusSettings']['userCornerRadiusValue'])
25+
26+
userButtonColor = theme_config['ButtonAppearanceSettings']['userButtonColor']
27+
userButtonHoverColor = theme_config['ButtonAppearanceSettings']['userButtonHoverColor']
28+
userButtonTextColor = theme_config['ButtonAppearanceSettings']['userButtonTextColor']
29+
userButtonBorderColor = theme_config['ButtonAppearanceSettings']['userButtonBorderColor']
30+
userButtonBorderWidth = theme_config['ButtonAppearanceSettings']['userButtonBorderWidth']
31+
userWindowTitleColor = theme_config['WindowSettings']['userWindowTitleColor']
32+
w_default_res = theme_config['WindowSettings']['w_default_res']
33+
w_res = theme_config['WindowSettings']['w_res']
34+
updater_btn_place_x = int(theme_config['WindowSettings']['updater_btn_place_x'])
35+
36+
if userFontBold == "False":
37+
userFontBold = "normal"
38+
else:
39+
userFontBold = "bold"
40+
41+
if userButtonColor == "default":
42+
userButtonColor = None
43+
44+
if userButtonHoverColor == "default":
45+
userButtonHoverColor = None
46+
47+
if userButtonTextColor == "default":
48+
userButtonTextColor = None
49+
50+
if userButtonBorderColor == "default":
51+
userButtonBorderColor = None
52+
53+
if userButtonBorderWidth == "default":
54+
userButtonBorderWidth = None
55+
else:
56+
userButtonBorderWidth = int(userButtonBorderWidth)
57+
58+
if userWindowTitleColor == "default":
59+
userWindowTitleColor = None

Theme/theme_file.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[ThemeDataFile]
2+
name = theme.ini
3+

UpdaterSettings/updater.ini

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[GithubAccount]
2+
github_name =
3+
github_repository_name =
4+
5+
[UpdateMode]
6+
update_mode =
7+
releases_tag =
8+
9+
[DownloadFileSettings]
10+
file_name =
11+
file_url =
12+
chunk_size =
13+
14+
[UpdateCheckSettings]
15+
update_check_url =
16+
current_ver_file =
17+
18+
[Folder]
19+
update_folder_name =

0 commit comments

Comments
 (0)