mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-08 17:35:36 +08:00
Update src/Package/Artifact/attr.php
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -17,7 +17,7 @@ class attr
|
|||||||
#[PatchDescription('Patch attr for Alpine Linux (musl) and macOS - gethostname declaration')]
|
#[PatchDescription('Patch attr for Alpine Linux (musl) and macOS - gethostname declaration')]
|
||||||
public function patchAttrForAlpine(Artifact $artifact): void
|
public function patchAttrForAlpine(Artifact $artifact): void
|
||||||
{
|
{
|
||||||
spc_skip_unless(SystemTarget::getTargetOS() === 'Darwin' || SystemTarget::getTargetOS() === 'Linux' && !LinuxUtil::isMuslDist(), 'Only for Alpine Linux (musl) and macOS');
|
spc_skip_unless(SystemTarget::getTargetOS() === 'Darwin' || SystemTarget::getTargetOS() === 'Linux' && LinuxUtil::isMuslDist(), 'Only for Alpine Linux (musl) and macOS');
|
||||||
SourcePatcher::patchFile('attr_alpine_gethostname.patch', $artifact->getSourceDir());
|
SourcePatcher::patchFile('attr_alpine_gethostname.patch', $artifact->getSourceDir());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user