Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
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
etersoft
eepm
Commits
f41ada12
Commit
f41ada12
authored
Nov 15, 2024
by
Ivan Mazhukin
Committed by
Vitaly Lipatov
Nov 25, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm desktop: add postin/postun support (eterbug #17617)
parent
158ddf91
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
0 deletions
+21
-0
epm-desktop
bin/epm-desktop
+15
-0
hyprland-postin.sh
desktop.d/hyprland-postin.sh
+3
-0
hyprland-postun.sh
desktop.d/hyprland-postun.sh
+3
-0
No files found.
bin/epm-desktop
View file @
f41ada12
...
...
@@ -17,6 +17,18 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
json
=
0
run_script
()
{
local
script
=
"
$CONFIGDIR
/desktop.d/
$1
.sh"
[
-s
"
$script
"
]
||
return
[
-f
"
$script
.rpmnew"
]
&&
warning
'There is .rpmnew file(s) in $psdir dir. The desktop script`s can be outdated.'
shift
[
"
$PROGDIR
"
=
"/usr/bin"
]
&&
SCPATH
=
"
$PATH
"
||
SCPATH
=
"
$PROGDIR
:
$PATH
"
(
unset
EPMCURDIR
;
export
PATH
=
$SCPATH
;
$script
"
$@
"
)
return
}
is_de_exist
()
{
local
json_file
=
"
$(
realpath
$CONFIGDIR
/desktop.d/
$1
.json
)
"
local
de_name
=
$1
...
...
@@ -82,11 +94,13 @@ install_de() {
message
"Installing
$de_name
with dependencies:
$dependencies
"
if
epm
install
$dependencies
;
then
run_script
"
$de_name
-postin"
$de_name
||
warning
"Postinstall script for
$de_name
encountered an issue."
message
"
$de_name
successfully installed."
else
fatal
"Failed to install
$de_name
."
return
1
fi
}
remove_de
()
{
...
...
@@ -102,6 +116,7 @@ remove_de() {
message
"Removing
$de_name
with dependencies:
$dependencies
"
if
epm remove
$dependencies
;
then
run_script
"
$de_name
-postun"
$de_name
||
warning
"Postuninstall script for
$de_name
encountered an issue."
message
"
$de_name
successfully removed."
else
fatal
"Failed to remove
$de_name
."
...
...
desktop.d/hyprland-postin.sh
0 → 100755
View file @
f41ada12
#!/bin/sh
echo
"Running post-install actions..."
\ No newline at end of file
desktop.d/hyprland-postun.sh
0 → 100755
View file @
f41ada12
#!/bin/sh
echo
"Running post-uninstall actions..."
\ No newline at end of file
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