Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm-play-gui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Roman Alifanov
eepm-play-gui
Commits
b6eec0dc
Commit
b6eec0dc
authored
Dec 28, 2024
by
Roman Alifanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added flag: `--latest' (appears if epm version >= 3.64.0)
parent
0fe97096
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
49 additions
and
10 deletions
+49
-10
ru.po
po/ru.po
+17
-9
meson.build
src/meson.build
+1
-0
epm_version.py
src/tools/epm_version.py
+17
-0
window.py
src/window.py
+14
-1
No files found.
po/ru.po
View file @
b6eec0dc
...
@@ -2,8 +2,8 @@ msgid ""
...
@@ -2,8 +2,8 @@ msgid ""
msgstr ""
msgstr ""
"Project-Id-Version: ru.eepm.PlayGUI\n"
"Project-Id-Version: ru.eepm.PlayGUI\n"
"Report-Msgid-Bugs-To: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-1
0-28 18:5
9+0300\n"
"POT-Creation-Date: 2024-1
2-28 20:0
9+0300\n"
"PO-Revision-Date: 2024-1
0-28 19:14
+0300\n"
"PO-Revision-Date: 2024-1
2-28 20:10
+0300\n"
"Last-Translator: \n"
"Last-Translator: \n"
"Language-Team: \n"
"Language-Team: \n"
"Language: ru\n"
"Language: ru\n"
...
@@ -53,34 +53,42 @@ msgstr "выберите нужные флаги"
...
@@ -53,34 +53,42 @@ msgstr "выберите нужные флаги"
msgid "Flags"
msgid "Flags"
msgstr "Флаги"
msgstr "Флаги"
#: window.py:72
#: window.py:77
msgid ""
"It helps you get the latest version of the program that hasn't been tested "
"on your epm version."
msgstr ""
"Помогает получить последнюю версию программы, которая не тестировалась на "
"вашей версии epm."
#: window.py:87
msgid ""
msgid ""
"Sometimes it helps to get the latest version of the program. (Not "
"Sometimes it helps to get the latest version of the program. (Not "
"recommended)"
"recommended)"
msgstr ""
msgstr ""
"Иногда помогает получить последнюю версию приложения. (Не рекомендуется)"
"Иногда помогает получить последнюю версию приложения. (Не рекомендуется)"
#: window.py:
77
#: window.py:
92
msgid "It helps to get resources that are unavailable from your network"
msgid "It helps to get resources that are unavailable from your network"
msgstr "Помогает получить доступ к ресурсам, которые недоступны в вашей сети"
msgstr "Помогает получить доступ к ресурсам, которые недоступны в вашей сети"
#: window.py:
82
#: window.py:
97
msgid "The user will not be asked any questions"
msgid "The user will not be asked any questions"
msgstr "Пользователю не будет задано никаких вопросов"
msgstr "Пользователю не будет задано никаких вопросов"
#: window.py:1
56
#: window.py:1
82
msgid "Remove and install applications"
msgid "Remove and install applications"
msgstr "Удалить и установить приложения"
msgstr "Удалить и установить приложения"
#: window.py:1
57
#: window.py:1
83
msgid "Install applications"
msgid "Install applications"
msgstr "Установить приложения"
msgstr "Установить приложения"
#: window.py:1
58
#: window.py:1
84
msgid "Remove applications"
msgid "Remove applications"
msgstr "Удалить приложения"
msgstr "Удалить приложения"
#: window.py:1
59
window.ui:117
#: window.py:1
85
window.ui:117
msgid "Update applications"
msgid "Update applications"
msgstr "Обновить приложения"
msgstr "Обновить приложения"
...
...
src/meson.build
View file @
b6eec0dc
...
@@ -36,6 +36,7 @@ eepm_play_gui_tools = [
...
@@ -36,6 +36,7 @@ eepm_play_gui_tools = [
'__init__.py',
'__init__.py',
'tools/command_runner.py',
'tools/command_runner.py',
'tools/appsmanager.py',
'tools/appsmanager.py',
'tools/epm_version.py',
]
]
install_data(eepm_play_gui_main, install_dir: moduledir)
install_data(eepm_play_gui_main, install_dir: moduledir)
...
...
src/tools/epm_version.py
0 → 100644
View file @
b6eec0dc
import
subprocess
from
packaging
import
version
def
check_epm_version
(
required_version
=
"3.64.0"
):
# Выполнение команды epm --short --version
result
=
subprocess
.
run
([
'epm'
,
'--short'
,
'--version'
],
capture_output
=
True
,
text
=
True
,
check
=
True
)
# Извлечение версии из вывода
epm_version
=
result
.
stdout
.
strip
()
print
(
f
"epm version: {epm_version}"
)
# Сравнение версий
if
version
.
parse
(
epm_version
)
>=
version
.
parse
(
required_version
):
return
True
else
:
return
False
src/window.py
View file @
b6eec0dc
...
@@ -20,6 +20,7 @@ from gi.repository import Gtk, Adw, GObject, GLib
...
@@ -20,6 +20,7 @@ from gi.repository import Gtk, Adw, GObject, GLib
import
gettext
import
gettext
from
.tools.epm_version
import
check_epm_version
from
.widgets.applicationrow
import
ApplicationRow
from
.widgets.applicationrow
import
ApplicationRow
from
.widgets.logdialog
import
LogDialog
from
.widgets.logdialog
import
LogDialog
...
@@ -57,6 +58,7 @@ class EepmPlayGuiWindow(Adw.ApplicationWindow):
...
@@ -57,6 +58,7 @@ class EepmPlayGuiWindow(Adw.ApplicationWindow):
self
.
applications
=
None
self
.
applications
=
None
self
.
installed_apps
=
None
self
.
installed_apps
=
None
self
.
reset_button
.
connect
(
"clicked"
,
lambda
_
:
self
.
update_ui
())
self
.
reset_button
.
connect
(
"clicked"
,
lambda
_
:
self
.
update_ui
())
self
.
apply_button
.
connect
(
"activated"
,
self
.
on_apply_clicked
)
self
.
apply_button
.
connect
(
"activated"
,
self
.
on_apply_clicked
)
...
@@ -66,6 +68,17 @@ class EepmPlayGuiWindow(Adw.ApplicationWindow):
...
@@ -66,6 +68,17 @@ class EepmPlayGuiWindow(Adw.ApplicationWindow):
self
.
flagsdialog
=
FlagsDialog
()
self
.
flagsdialog
=
FlagsDialog
()
self
.
flags_button
.
connect
(
"clicked"
,
lambda
_
:
self
.
flagsdialog
.
present
(
self
))
self
.
flags_button
.
connect
(
"clicked"
,
lambda
_
:
self
.
flagsdialog
.
present
(
self
))
if
check_epm_version
(
"3.64.0"
):
self
.
flagsdialog
.
add_flags
(
[
{
"flag"
:
"--latest"
,
"name"
:
"Latest"
,
"description"
:
_
(
"It helps you get the latest version of the program that hasn't been tested on your epm version."
),
}
]
)
self
.
flagsdialog
.
add_flags
(
self
.
flagsdialog
.
add_flags
(
[
[
{
{
...
@@ -283,7 +296,7 @@ class EepmPlayGuiWindow(Adw.ApplicationWindow):
...
@@ -283,7 +296,7 @@ class EepmPlayGuiWindow(Adw.ApplicationWindow):
f
"epm play --remove {' '.join(to_remove)}"
,
f
"epm play --remove {' '.join(to_remove)}"
,
ignored_flags
=
[
ignored_flags
=
[
"--force"
,
"--ipfs"
"--force"
,
"--ipfs"
,
"--latest"
]
]
)
)
)
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment