mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-08-08 04:20:07 +02:00
🚀 Version 5.1.1
Merge branch 'dev/5.x'
This commit is contained in:
@ -1207,7 +1207,7 @@
|
|||||||
CODE_SIGN_IDENTITY = "Apple Development";
|
CODE_SIGN_IDENTITY = "Apple Development";
|
||||||
CODE_SIGN_STYLE = Automatic;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
COMBINE_HIDPI_IMAGES = YES;
|
COMBINE_HIDPI_IMAGES = YES;
|
||||||
CURRENT_PROJECT_VERSION = 715;
|
CURRENT_PROJECT_VERSION = 717;
|
||||||
DEBUG = YES;
|
DEBUG = YES;
|
||||||
DEVELOPMENT_TEAM = 8M54J5J787;
|
DEVELOPMENT_TEAM = 8M54J5J787;
|
||||||
ENABLE_HARDENED_RUNTIME = YES;
|
ENABLE_HARDENED_RUNTIME = YES;
|
||||||
@ -1217,7 +1217,7 @@
|
|||||||
"@executable_path/../Frameworks",
|
"@executable_path/../Frameworks",
|
||||||
);
|
);
|
||||||
MACOSX_DEPLOYMENT_TARGET = 11.0;
|
MACOSX_DEPLOYMENT_TARGET = 11.0;
|
||||||
MARKETING_VERSION = 5.1;
|
MARKETING_VERSION = 5.1.1;
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.nicoverbruggen.phpmon;
|
PRODUCT_BUNDLE_IDENTIFIER = com.nicoverbruggen.phpmon;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||||
@ -1233,7 +1233,7 @@
|
|||||||
CODE_SIGN_IDENTITY = "Apple Development";
|
CODE_SIGN_IDENTITY = "Apple Development";
|
||||||
CODE_SIGN_STYLE = Automatic;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
COMBINE_HIDPI_IMAGES = YES;
|
COMBINE_HIDPI_IMAGES = YES;
|
||||||
CURRENT_PROJECT_VERSION = 715;
|
CURRENT_PROJECT_VERSION = 717;
|
||||||
DEBUG = NO;
|
DEBUG = NO;
|
||||||
DEVELOPMENT_TEAM = 8M54J5J787;
|
DEVELOPMENT_TEAM = 8M54J5J787;
|
||||||
ENABLE_HARDENED_RUNTIME = YES;
|
ENABLE_HARDENED_RUNTIME = YES;
|
||||||
@ -1243,7 +1243,7 @@
|
|||||||
"@executable_path/../Frameworks",
|
"@executable_path/../Frameworks",
|
||||||
);
|
);
|
||||||
MACOSX_DEPLOYMENT_TARGET = 11.0;
|
MACOSX_DEPLOYMENT_TARGET = 11.0;
|
||||||
MARKETING_VERSION = 5.1;
|
MARKETING_VERSION = 5.1.1;
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.nicoverbruggen.phpmon;
|
PRODUCT_BUNDLE_IDENTIFIER = com.nicoverbruggen.phpmon;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||||
|
@ -85,6 +85,9 @@ class Startup {
|
|||||||
// MARK: - Check (List)
|
// MARK: - Check (List)
|
||||||
|
|
||||||
public var checks: [EnvironmentCheck] = [
|
public var checks: [EnvironmentCheck] = [
|
||||||
|
// =================================================================================
|
||||||
|
// The Homebrew binary must exist.
|
||||||
|
// =================================================================================
|
||||||
EnvironmentCheck(
|
EnvironmentCheck(
|
||||||
command: { return !FileManager.default.fileExists(atPath: Paths.brew) },
|
command: { return !FileManager.default.fileExists(atPath: Paths.brew) },
|
||||||
name: "`\(Paths.brew)` exists",
|
name: "`\(Paths.brew)` exists",
|
||||||
@ -99,6 +102,9 @@ class Startup {
|
|||||||
buttonText: "alert.homebrew_missing.quit".localized,
|
buttonText: "alert.homebrew_missing.quit".localized,
|
||||||
requiresAppRestart: true
|
requiresAppRestart: true
|
||||||
),
|
),
|
||||||
|
// =================================================================================
|
||||||
|
// The PHP binary must exist.
|
||||||
|
// =================================================================================
|
||||||
EnvironmentCheck(
|
EnvironmentCheck(
|
||||||
command: { return !Filesystem.fileExists(Paths.php) },
|
command: { return !Filesystem.fileExists(Paths.php) },
|
||||||
name: "`\(Paths.php)` exists",
|
name: "`\(Paths.php)` exists",
|
||||||
@ -106,6 +112,9 @@ class Startup {
|
|||||||
subtitleText: "startup.errors.php_binary.subtitle".localized,
|
subtitleText: "startup.errors.php_binary.subtitle".localized,
|
||||||
descriptionText: "startup.errors.php_binary.desc".localized(Paths.php)
|
descriptionText: "startup.errors.php_binary.desc".localized(Paths.php)
|
||||||
),
|
),
|
||||||
|
// =================================================================================
|
||||||
|
// Make sure we can detect one or more PHP installations.
|
||||||
|
// =================================================================================
|
||||||
EnvironmentCheck(
|
EnvironmentCheck(
|
||||||
command: { return !Shell.pipe("ls \(Paths.optPath) | grep php").contains("php") },
|
command: { return !Shell.pipe("ls \(Paths.optPath) | grep php").contains("php") },
|
||||||
name: "`ls \(Paths.optPath) | grep php` returned php result",
|
name: "`ls \(Paths.optPath) | grep php` returned php result",
|
||||||
@ -115,10 +124,12 @@ class Startup {
|
|||||||
),
|
),
|
||||||
descriptionText: "startup.errors.php_opt.desc".localized
|
descriptionText: "startup.errors.php_opt.desc".localized
|
||||||
),
|
),
|
||||||
|
// =================================================================================
|
||||||
|
// The Valet binary must exist.
|
||||||
|
// =================================================================================
|
||||||
EnvironmentCheck(
|
EnvironmentCheck(
|
||||||
command: {
|
command: {
|
||||||
return !(Filesystem.fileExists(Paths.valet)
|
return !(Filesystem.fileExists(Paths.valet) || Filesystem.fileExists("~/.composer/vendor/bin/valet"))
|
||||||
|| Filesystem.fileExists("~/.composer/vendor/bin/valet"))
|
|
||||||
},
|
},
|
||||||
name: "`valet` binary exists",
|
name: "`valet` binary exists",
|
||||||
titleText: "startup.errors.valet_executable.title".localized,
|
titleText: "startup.errors.valet_executable.title".localized,
|
||||||
@ -127,13 +138,11 @@ class Startup {
|
|||||||
Paths.valet
|
Paths.valet
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
EnvironmentCheck(
|
// =================================================================================
|
||||||
command: { return HomebrewDiagnostics.cannotLoadService() },
|
// Check if Valet and Homebrew need manual password intervention. If they do, then
|
||||||
name: "`sudo \(Paths.brew) services info` JSON loaded",
|
// PHP Monitor will be unable to run these commands, which prevents PHP Monitor from
|
||||||
titleText: "startup.errors.services_json_error.title".localized,
|
// functioning correctly. Let the user know that they need to run `valet trust`.
|
||||||
subtitleText: "startup.errors.services_json_error.subtitle".localized,
|
// =================================================================================
|
||||||
descriptionText: "startup.errors.services_json_error.desc".localized
|
|
||||||
),
|
|
||||||
EnvironmentCheck(
|
EnvironmentCheck(
|
||||||
command: { return !Shell.pipe("cat /private/etc/sudoers.d/brew").contains(Paths.brew) },
|
command: { return !Shell.pipe("cat /private/etc/sudoers.d/brew").contains(Paths.brew) },
|
||||||
name: "`/private/etc/sudoers.d/brew` contains brew",
|
name: "`/private/etc/sudoers.d/brew` contains brew",
|
||||||
@ -146,10 +155,21 @@ class Startup {
|
|||||||
titleText: "startup.errors.sudoers_valet.title".localized,
|
titleText: "startup.errors.sudoers_valet.title".localized,
|
||||||
subtitleText: "startup.errors.sudoers_valet.subtitle".localized
|
subtitleText: "startup.errors.sudoers_valet.subtitle".localized
|
||||||
),
|
),
|
||||||
|
// =================================================================================
|
||||||
|
// Verify if the Homebrew services are running (as root).
|
||||||
|
// =================================================================================
|
||||||
|
EnvironmentCheck(
|
||||||
|
command: { return HomebrewDiagnostics.cannotLoadService() },
|
||||||
|
name: "`sudo \(Paths.brew) services info` JSON loaded",
|
||||||
|
titleText: "startup.errors.services_json_error.title".localized,
|
||||||
|
subtitleText: "startup.errors.services_json_error.subtitle".localized,
|
||||||
|
descriptionText: "startup.errors.services_json_error.desc".localized
|
||||||
|
),
|
||||||
|
// =================================================================================
|
||||||
|
// Determine the Valet version and ensure it isn't unknown.
|
||||||
|
// =================================================================================
|
||||||
EnvironmentCheck(
|
EnvironmentCheck(
|
||||||
command: {
|
command: {
|
||||||
// Determine the Valet version only AFTER confirming the correct permission is in place
|
|
||||||
// or otherwise this command will never return a valid version number
|
|
||||||
Valet.shared.version = VersionExtractor.from(valet("--version", sudo: false))
|
Valet.shared.version = VersionExtractor.from(valet("--version", sudo: false))
|
||||||
return Valet.shared.version == nil
|
return Valet.shared.version == nil
|
||||||
},
|
},
|
||||||
|
@ -240,7 +240,7 @@ problem manually, using your own Terminal app (this just shows you the output)."
|
|||||||
|
|
||||||
"alert.fix_homebrew_permissions_done.title" = "All file and folder permissions for Valet's dependencies have been restored.";
|
"alert.fix_homebrew_permissions_done.title" = "All file and folder permissions for Valet's dependencies have been restored.";
|
||||||
"alert.fix_homebrew_permissions_done.subtitle" = "Because of this, all of Valet's services are currently no longer running. You can now interact with Homebrew, but your Valet sites will be unavailable as all services are disabled.";
|
"alert.fix_homebrew_permissions_done.subtitle" = "Because of this, all of Valet's services are currently no longer running. You can now interact with Homebrew, but your Valet sites will be unavailable as all services are disabled.";
|
||||||
"alert.fix_homebrew_permissions_done.desc" = "When you are done with Homebrew (after running `brew upgrade`, for example, you should restart PHP Monitor and select \"Restart All Services\" if you want Valet to work again. It is always recommended to restart PHP Monitor whenever you upgrade PHP versions with `brew upgrade`, or things might break.";
|
"alert.fix_homebrew_permissions_done.desc" = "When you are done with Homebrew (after running `brew upgrade`, for example) you should restart PHP Monitor and select \"Restart All Services\" if you want Valet to work again. It is always recommended to restart PHP Monitor whenever you upgrade PHP versions with `brew upgrade`, or things might break.";
|
||||||
|
|
||||||
// PHP FPM Broken
|
// PHP FPM Broken
|
||||||
"alert.php_fpm_broken.title" = "PHP-FPM configuration is incorrect";
|
"alert.php_fpm_broken.title" = "PHP-FPM configuration is incorrect";
|
||||||
|
Reference in New Issue
Block a user