feat: ✨ add pacman hooks and install script
This commit is contained in:
parent
16ec7f0955
commit
5885881075
6
install.fish
Executable file
6
install.fish
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/fish
|
||||
cp ./pacman/snap-pac-uki-create.fish /usr/local/bin
|
||||
echo "installed creation script."
|
||||
|
||||
cp ./pacman/hooks/* /usr/share/libalpm/hooks/
|
||||
echo "installed pacman hooks."
|
12
pacman/hooks/01_snap-pac-uki_pre.hook
Normal file
12
pacman/hooks/01_snap-pac-uki_pre.hook
Normal file
@ -0,0 +1,12 @@
|
||||
[Trigger]
|
||||
Operation = Upgrade
|
||||
Operation = Install
|
||||
Operation = Remove
|
||||
Type = Package
|
||||
Target = *
|
||||
|
||||
[Action]
|
||||
Description = Performing pre UKI creation...
|
||||
When = PreTransaction
|
||||
Exec = /usr/local/bin/snap-pac-uki-create.fish
|
||||
AbortOnFail
|
11
pacman/hooks/zz_snap-pac-uki_post.hook
Normal file
11
pacman/hooks/zz_snap-pac-uki_post.hook
Normal file
@ -0,0 +1,11 @@
|
||||
[Trigger]
|
||||
Operation = Upgrade
|
||||
Operation = Install
|
||||
Operation = Remove
|
||||
Type = Package
|
||||
Target = *
|
||||
|
||||
[Action]
|
||||
Description = Performing post UKI creation...
|
||||
When = PostTransaction
|
||||
Exec = /usr/local/bin/snap-pac-uki-create.fish
|
Loading…
Reference in New Issue
Block a user