@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/CHANGELOG.md +157 -1276
- package/package.json +1 -1
- package/src/plugins/bundled/fops-plugin-foundation/index.js +12 -1
package/package.json
CHANGED
|
@@ -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
|
-
|
|
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
|