From 9eaa66d89b10469ae936a571d3cb96b2821dace8 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Tue, 5 Jul 2022 16:22:07 +0530 Subject: [PATCH] Add support for event extension on unix --- dist/index.js | 4 +-- src/configs/brew_extensions | 1 + src/extensions.ts | 6 ++-- src/scripts/extensions/event.sh | 50 +++++++++++++++++++++++++++++++++ 4 files changed, 56 insertions(+), 5 deletions(-) create mode 100644 src/scripts/extensions/event.sh diff --git a/dist/index.js b/dist/index.js index 6b5e04db..bdd2736e 100644 --- a/dist/index.js +++ b/dist/index.js @@ -245,7 +245,7 @@ async function addExtensionDarwin(extension_csv, version) { add_script += await utils.parseExtensionSource(extension, ext_prefix); return; case /^(5\.[3-6]|7\.[0-4]|8\.[0-1])blackfire(-\d+\.\d+\.\d+)?$/.test(version_extension): - case /^couchbase|^geos$|^pdo_oci$|^oci8$|^(pecl_)?http|^pdo_firebird$/.test(extension): + case /^couchbase|^event|^geos$|^pdo_oci$|^oci8$|^(pecl_)?http|^pdo_firebird$/.test(extension): case /^(5\.[3-6]|7\.[0-4])ioncube$/.test(version_extension): case /(5\.6|7\.[0-3])phalcon3|7\.[2-4]phalcon4/.test(version_extension): case /(?/dev/null 2>&1 + else + add_event_helper "$ext" >/dev/null 2>&1 + fi + add_extension_log "event" "Installed and enabled" + fi +} + +os="$(uname -s)"