ok
This commit is contained in:
@@ -207,8 +207,9 @@ def _platform_features(p: Platform) -> list[str]:
|
|||||||
return []
|
return []
|
||||||
|
|
||||||
|
|
||||||
def build_binary(root: Path, p: Platform, log: list[str], extra_args: list[str] | None = None) -> None:
|
def build_binary(root: Path, p: Platform, log: list[str], extra_args: list[str] | None = None, platform_features: bool = True) -> None:
|
||||||
cmd = [builder_for(p), "build", "--release", *target_flags(p), *_platform_features(p), *(extra_args or [])]
|
features = _platform_features(p) if platform_features else []
|
||||||
|
cmd = [builder_for(p), "build", "--release", *target_flags(p), *features, *(extra_args or [])]
|
||||||
log.append(f" Building: {' '.join(extra_args or ['default'])}")
|
log.append(f" Building: {' '.join(extra_args or ['default'])}")
|
||||||
run_cmd(cmd, log, env=_macos_env(p), cwd=root)
|
run_cmd(cmd, log, env=_macos_env(p), cwd=root)
|
||||||
|
|
||||||
@@ -228,7 +229,7 @@ def _bundle_plugins_native(root: Path, p: Platform, log: list[str]) -> None:
|
|||||||
|
|
||||||
def _bundle_plugins_cross(root: Path, p: Platform, log: list[str]) -> None:
|
def _bundle_plugins_cross(root: Path, p: Platform, log: list[str]) -> None:
|
||||||
log.append(" Bundling plugins (cross)")
|
log.append(" Bundling plugins (cross)")
|
||||||
build_binary(root, p, log, extra_args=["-p", PLUGIN_NAME])
|
build_binary(root, p, log, extra_args=["-p", PLUGIN_NAME], platform_features=False)
|
||||||
|
|
||||||
rd = release_dir(root, p)
|
rd = release_dir(root, p)
|
||||||
if p.os == "linux":
|
if p.os == "linux":
|
||||||
|
|||||||
Reference in New Issue
Block a user