Elim system migrations
This commit is contained in:
1 parent
d3c4d828f1
commit
1b8f0b47ce
2 files changed
+6
-14
No files matched your search
@@ -10,8 +10,6 @@ url='https://github.com/basecamp/omarchy'
|
|||||||
license=('MIT')
|
license=('MIT')
|
||||||
provides=('omarchy')
|
provides=('omarchy')
|
||||||
conflicts=('omarchy')
|
conflicts=('omarchy')
|
||||||
install='omarchy-dev.install'
|
|
||||||
|
|
||||||
# Hard depends: only packages whose removal would brick the desktop. The ISO
|
# Hard depends: only packages whose removal would brick the desktop. The ISO
|
||||||
# pacstraps the full default install set from install/omarchy-base.packages.
|
# pacstraps the full default install set from install/omarchy-base.packages.
|
||||||
depends=(
|
depends=(
|
||||||
@@ -134,15 +132,14 @@ package() {
|
|||||||
cp -a migrations "$pkgdir/usr/share/omarchy/"
|
cp -a migrations "$pkgdir/usr/share/omarchy/"
|
||||||
|
|
||||||
# Fresh users created after install are already on the package layout in this
|
# Fresh users created after install are already on the package layout in this
|
||||||
# build, so seed user migration markers through /etc/skel. Existing users keep
|
# build, so seed migration markers through /etc/skel. Existing users keep
|
||||||
# their own state and still run pending user migrations on update.
|
# their own state and still run pending migrations on update.
|
||||||
if compgen -G 'migrations/user/*.sh' >/dev/null; then
|
if compgen -G 'migrations/*.sh' >/dev/null; then
|
||||||
install -d "$pkgdir/etc/skel/.local/state/omarchy/migrations/user"
|
install -d "$pkgdir/etc/skel/.local/state/omarchy/migrations"
|
||||||
for migration in migrations/user/*.sh; do
|
for migration in migrations/*.sh; do
|
||||||
touch "$pkgdir/etc/skel/.local/state/omarchy/migrations/user/$(basename "$migration")"
|
touch "$pkgdir/etc/skel/.local/state/omarchy/migrations/$(basename "$migration")"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Quickshell desktop shell tree.
|
# Quickshell desktop shell tree.
|
||||||
cp -a shell "$pkgdir/usr/share/omarchy/"
|
cp -a shell "$pkgdir/usr/share/omarchy/"
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
post_upgrade() {
|
|
||||||
if [ -x /usr/bin/omarchy-migrate-system ]; then
|
|
||||||
/usr/bin/omarchy-migrate-system
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
Reference in new issue
Block a user