@meshxdata/fops 0.1.35 → 0.1.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meshxdata/fops",
3
- "version": "0.1.35",
3
+ "version": "0.1.36",
4
4
  "description": "CLI to install and manage data mesh platforms",
5
5
  "keywords": [
6
6
  "fops",
@@ -1527,8 +1527,19 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSMenuDelegate {
1527
1527
  }
1528
1528
 
1529
1529
  @objc func runUpdate() {
1530
+ updateItem.title = "⬆ Updating…"
1531
+ updateItem.isEnabled = false
1530
1532
  let npm = "/opt/homebrew/bin/npm"
1531
- openTerminal(command: npm + " install -g @meshxdata/fops")
1533
+ let p = Process()
1534
+ p.executableURL = URL(fileURLWithPath: npm)
1535
+ p.arguments = ["install", "-g", "@meshxdata/fops"]
1536
+ p.terminationHandler = { _ in
1537
+ DispatchQueue.main.async {
1538
+ updateItem.title = "✓ Updated — restart tray to apply"
1539
+ updateItem.isEnabled = false
1540
+ }
1541
+ }
1542
+ try? p.run()
1532
1543
  }
1533
1544
 
1534
1545
  // Rebuild Compose submenu each time it opens