Skip to content

Commit dc72a4e

Browse files
Update KPM hook docs
1 parent 269d913 commit dc72a4e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

content/kindle-dev/kpm/creating-a-package.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@ It is encouraged to use the `install.sh` hook to place a scriptlet in the `/mnt/
6666
It is recommended that the scriptlet runs `/var/local/kmc/bin/kpm launch PACKAGENAME` to run the package's `launch.sh`
6767

6868
### Guidelines
69-
- During upgrades, the `install.sh` hook is ran directly without running `uninstall.sh` on the previous package.
69+
- During upgrades:
70+
- `uninstall.sh` is ran with the `upgrade` parameter, ie: `uninstall.sh upgrade`
71+
- The package files are deleted
72+
- The new package files are extracted
73+
- `install.sh` is ran on the new version
7074
- The `uninstall.sh` hook should NOT delete package files, this is handled by KPM
7175

7276
## Writing To Rootfs

0 commit comments

Comments
 (0)