fix(dev): 使用 after_update 替代 on_change 确保每次同步都安装全局包
This commit is contained in:
+1
-1
@@ -40,7 +40,7 @@ class DevModule(Module):
|
|||||||
"zoxide",
|
"zoxide",
|
||||||
}
|
}
|
||||||
|
|
||||||
def on_change(self, store):
|
def after_update(self, store):
|
||||||
for pkg in BUN_GLOBAL_PACKAGES:
|
for pkg in BUN_GLOBAL_PACKAGES:
|
||||||
decman.prg(["su", "-", self.user, "-c", f"bun add -g {pkg}"])
|
decman.prg(["su", "-", self.user, "-c", f"bun add -g {pkg}"])
|
||||||
for pkg in GO_INSTALL_PACKAGES:
|
for pkg in GO_INSTALL_PACKAGES:
|
||||||
|
|||||||
Reference in New Issue
Block a user