mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-08-07 03:50:08 +02:00
👌 Alter update notification for DEV & EAP
This commit is contained in:
@ -187,11 +187,19 @@ class AppUpdater {
|
|||||||
// Cleanup the upgrade.success file
|
// Cleanup the upgrade.success file
|
||||||
if FileSystem.fileExists("~/.config/phpmon/updater/upgrade.success") {
|
if FileSystem.fileExists("~/.config/phpmon/updater/upgrade.success") {
|
||||||
Task { @MainActor in
|
Task { @MainActor in
|
||||||
LocalNotification.send(
|
if App.identifier.contains(".phpmon.eap") || App.identifier.contains(".phpmon.dev") {
|
||||||
title: "notification.phpmon_updated.title".localized,
|
LocalNotification.send(
|
||||||
subtitle: "notification.phpmon_updated.desc".localized(App.shortVersion),
|
title: "notification.phpmon_updated.title".localized,
|
||||||
preference: nil
|
subtitle: "notification.phpmon_updated_dev.desc".localized(App.shortVersion, App.bundleVersion),
|
||||||
)
|
preference: nil
|
||||||
|
)
|
||||||
|
} else {
|
||||||
|
LocalNotification.send(
|
||||||
|
title: "notification.phpmon_updated.title".localized,
|
||||||
|
subtitle: "notification.phpmon_updated.desc".localized(App.shortVersion),
|
||||||
|
preference: nil
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Log.info("The `upgrade.success` file was found! An update was installed. Cleaning up...")
|
Log.info("The `upgrade.success` file was found! An update was installed. Cleaning up...")
|
||||||
|
@ -124,9 +124,6 @@ extension MainMenu {
|
|||||||
// Check if the linked version has changed between launches of phpmon
|
// Check if the linked version has changed between launches of phpmon
|
||||||
PhpGuard().compareToLastGlobalVersion()
|
PhpGuard().compareToLastGlobalVersion()
|
||||||
|
|
||||||
// Check if an update was performed earlier
|
|
||||||
AppUpdater.checkIfUpdateWasPerformed()
|
|
||||||
|
|
||||||
// We are ready!
|
// We are ready!
|
||||||
Log.info("PHP Monitor is ready to serve!")
|
Log.info("PHP Monitor is ready to serve!")
|
||||||
|
|
||||||
|
@ -426,7 +426,8 @@ This has no effect on other terminals, only for the particular terminal session
|
|||||||
"notification.preset_reverted_desc" = "The last preset you applied has been undone. Your previous configuration is now active.";
|
"notification.preset_reverted_desc" = "The last preset you applied has been undone. Your previous configuration is now active.";
|
||||||
|
|
||||||
"notification.phpmon_updated.title" = "PHP Monitor has been updated!";
|
"notification.phpmon_updated.title" = "PHP Monitor has been updated!";
|
||||||
"notification.phpmon_updated.desc" = "You are now running PHP Monitor v%@.";
|
"notification.phpmon_updated.desc" = "You are now running PHP Monitor v%@. Thanks for staying up-to-date!";
|
||||||
|
"notification.phpmon_updated_dev.desc" = "PHP Monitor v%@ (build %@) is now installed and active.";
|
||||||
|
|
||||||
// Composer Update
|
// Composer Update
|
||||||
"alert.composer_missing.title" = "Composer not found!";
|
"alert.composer_missing.title" = "Composer not found!";
|
||||||
|
Reference in New Issue
Block a user