feat: ✨ add pacman hooks and update install script
This commit is contained in:
parent
1f33307608
commit
7282ad8025
|
@ -1,6 +1,6 @@
|
|||
#!/bin/fish
|
||||
cp ./pacman/snap-pac-uki-create.fish /usr/local/bin
|
||||
cp ./src/snap-pac-uki.fish /usr/local/bin/snap-pac-uki
|
||||
echo "installed creation script."
|
||||
|
||||
cp ./pacman/hooks/* /usr/share/libalpm/hooks/
|
||||
cp ./pacman/* /usr/share/libalpm/hooks/
|
||||
echo "installed pacman hooks."
|
||||
|
|
|
@ -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 snapshots
|
||||
AbortOnFail
|
|
@ -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 snapshots
|
|
@ -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 current
|
Loading…
Reference in New Issue