1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2026-03-28 15:00:06 +01:00

🏗 Test build

This commit is contained in:
2023-02-02 19:50:41 +01:00
parent b182218cad
commit f8642b21e6
3 changed files with 6 additions and 7 deletions

View File

@@ -134,7 +134,7 @@ class Startup {
Paths.optPath Paths.optPath
), ),
descriptionText: "startup.errors.php_opt.desc".localized descriptionText: "startup.errors.php_opt.desc".localized
), )
]), ]),
EnvironmentCheckGroup(name: "valet", condition: { return Valet.shared.installed }, checks: [ EnvironmentCheckGroup(name: "valet", condition: { return Valet.shared.installed }, checks: [
// ================================================================================= // =================================================================================
@@ -142,7 +142,8 @@ class Startup {
// ================================================================================= // =================================================================================
EnvironmentCheck( EnvironmentCheck(
command: { command: {
return !(FileSystem.fileExists(Paths.valet) || FileSystem.fileExists("~/.composer/vendor/bin/valet")) return !(FileSystem.fileExists(Paths.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,

View File

@@ -62,10 +62,8 @@ class Valet {
} }
lazy var installed: Bool = { lazy var installed: Bool = {
return false // TODO: Make this properly lazy
return FileSystem.fileExists(Paths.binPath.appending("/valet"))
// TODO: Make this lazy
// return FileSystem.fileExists(Paths.binPath.appending("/valet"))
}() }()
/** /**

View File

@@ -122,7 +122,7 @@ extension MainMenu {
Log.info("PHP Monitor is ready to serve!") Log.info("PHP Monitor is ready to serve!")
// Check if we upgraded just now // Check if we upgraded just now
self.checkIfUpgradeWasPerformed() // self.checkIfUpgradeWasPerformed()
} }
/** /**