Skip to content

Commit 67fce92

Browse files
committed
chore: wip
1 parent 13da29f commit 67fce92

File tree

14 files changed

+88
-120
lines changed

14 files changed

+88
-120
lines changed

.github/workflows/precompile-php.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,9 @@ jobs:
165165
- name: Install build dependencies (macOS)
166166
if: matrix.platform == 'darwin'
167167
run: |
168-
# Fallback to Homebrew for reliable CI builds
169-
brew install autoconf automake libtool pkg-config bison re2c libxml2 openssl curl libpng jpeg freetype oniguruma libzip postgresql readline bzip2 gmp openldap libxslt icu4c libsodium zlib gettext
170-
# Set up environment for Homebrew tools
171-
echo "/opt/homebrew/bin:/usr/local/bin:$PATH" >> $GITHUB_PATH
172-
echo "PKG_CONFIG_PATH=/opt/homebrew/lib/pkgconfig:/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH" >> $GITHUB_ENV
168+
# macOS: Let Launchpad handle all dependencies
169+
echo "📦 macOS build will use Launchpad for all dependencies"
170+
echo "🚀 No system package installation needed - Launchpad will provide everything"
173171
174172
- name: Install build dependencies (Windows)
175173
if: matrix.platform == 'win32'

packages/launchpad/src/binary-downloader.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Buffer } from 'node:buffer'
44
import { execSync } from 'node:child_process'
55
import * as fs from 'node:fs'
66
import * as path from 'node:path'
7+
import process from 'node:process'
78
import { config } from './config'
89
import { createShims } from './install-helpers'
910
import { logUniqueMessage } from './logging'
@@ -1508,7 +1509,7 @@ exec "${originalBinary}" "$@"
15081509
const metadata = JSON.parse(fs.readFileSync(metadataPath, 'utf8'))
15091510
if (metadata.icu_version && metadata.icu_version !== 'unknown') {
15101511
const icuMajor = Number.parseInt(metadata.icu_version, 10)
1511-
if (!isNaN(icuMajor)) {
1512+
if (!Number.isNaN(icuMajor)) {
15121513
if (config.verbose) {
15131514
console.log(`🔍 Detected ICU v${icuMajor} from binary metadata`)
15141515
}

packages/launchpad/src/commands/cache/clean.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable no-console */
12
import type { Command } from '../../cli/types'
23

34
const cmd: Command = {

packages/launchpad/src/commands/cache/stats.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable no-console */
12
import type { Command } from '../../cli/types'
23

34
const cmd: Command = {

packages/launchpad/src/commands/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable no-console */
12
import type { Command } from '../cli/types'
23
import type { ValidationResult } from '../config-validation'
34
import fs from 'node:fs'

packages/launchpad/src/commands/md5.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable no-console */
12
import type { Command } from '../cli/types'
23

34
const cmd: Command = {

packages/launchpad/src/commands/reinstall.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* eslint-disable no-console */
22
import type { Command } from '../cli/types'
3+
import process from 'node:process'
34
import { config } from '../config'
45

56
const cmd: Command = {

packages/launchpad/src/php/build-script.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import type { PhpBuildConfig } from './precompiler'
44
import { existsSync, mkdirSync } from 'node:fs'
55
import { arch, platform } from 'node:os'
66
import { join } from 'node:path'
7+
import process from 'node:process'
78
import { logUniqueMessage } from '../logging'
89
import { BuildDependencyManager } from './build-dependencies'
910
import { PhpPrecompiler } from './precompiler'

packages/launchpad/src/php/precompiler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { execSync } from 'node:child_process'
22
import { existsSync, mkdirSync, rmSync } from 'node:fs'
33
import * as fs from 'node:fs'
44
import { join } from 'node:path'
5+
import process from 'node:process'
56
import { logUniqueMessage } from '../logging'
67

78
export interface PhpBuildConfig {

packages/launchpad/src/setup.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
/* eslint-disable no-console */
12
import fs from 'node:fs'
23
import path from 'node:path'
4+
import process from 'node:process'
35

46
/**
57
* Core setup logic used by both setup and upgrade commands

0 commit comments

Comments
 (0)