Skip to content

Commit 6cb42f9

Browse files
committed
chore: wip
1 parent 5b9a13d commit 6cb42f9

File tree

5 files changed

+13
-21
lines changed

5 files changed

+13
-21
lines changed

packages/launchpad/launchpad.config.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,7 @@ export const defaultConfig: LaunchpadConfig = {
6969
},
7070
php: {
7171
enabled: true,
72-
strategy: 'precompiled-binary',
7372
version: '8.4.11',
74-
extensions: {
75-
core: ['cli', 'fpm', 'mbstring', 'opcache', 'intl', 'exif', 'bcmath'],
76-
database: ['pdo-mysql', 'pdo-pgsql', 'pdo-sqlite', 'mysqli', 'pgsql', 'sqlite3'],
77-
web: ['curl', 'openssl', 'gd', 'soap', 'sockets'],
78-
utility: ['zip', 'bz2', 'gettext', 'readline', 'libxml', 'zlib'],
79-
optional: ['pcntl', 'posix', 'shmop', 'sysvmsg', 'sysvsem', 'sysvshm'],
80-
},
8173
},
8274
frameworks: {
8375
enabled: true,

packages/launchpad/src/binary-downloader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export class PrecompiledBinaryDownloader {
163163
const phpConfig = config.services?.php
164164

165165
// Use manual configuration if specified
166-
if (phpConfig?.strategy === 'precompiled-binary' && phpConfig?.manual?.configuration) {
166+
if (phpConfig?.manual?.configuration) {
167167
console.log(`🔧 Using manual configuration: ${phpConfig.manual.configuration}`)
168168
return phpConfig.manual.configuration
169169
}

packages/launchpad/src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export const defaultConfig: LaunchpadConfig = {
115115
},
116116
php: {
117117
enabled: process.env.LAUNCHPAD_PHP_ENABLED !== 'false',
118-
strategy: (process.env.LAUNCHPAD_PHP_STRATEGY as 'auto-detect' | 'precompiled-binary') || 'auto-detect',
118+
strategy: (process.env.LAUNCHPAD_PHP_STRATEGY as 'auto-detect') || 'auto-detect',
119119
version: process.env.LAUNCHPAD_PHP_VERSION || '8.4.0',
120120
// Smart auto-detection based on project analysis
121121
autoDetect: {

packages/launchpad/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export interface LaunchpadConfig {
9898
}
9999
php?: {
100100
enabled?: boolean
101-
strategy?: 'auto-detect' | 'precompiled-binary'
101+
strategy?: 'auto-detect'
102102
version?: string
103103
autoDetect?: {
104104
enabled?: boolean

packages/launchpad/test/download-progress.test.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ describe('Download Progress', () => {
178178
const { downloadPackage } = await import('../src/install')
179179

180180
try {
181-
await downloadPackage('test.domain', '1.0.0', 'darwin', 'x86_64', tempDir)
181+
await downloadPackage('test.domain', '1.0.0', 'darwin', 'x86-64', tempDir)
182182
}
183183
catch {
184184
// Expected to fail due to mocking
@@ -219,7 +219,7 @@ describe('Download Progress', () => {
219219
const { downloadPackage } = await import('../src/install')
220220

221221
try {
222-
await downloadPackage('test.domain', '1.0.0', 'darwin', 'x86_64', tempDir)
222+
await downloadPackage('test.domain', '1.0.0', 'darwin', 'x86-64', tempDir)
223223
}
224224
catch {
225225
// Expected to fail due to mocking
@@ -255,7 +255,7 @@ describe('Download Progress', () => {
255255
const { downloadPackage } = await import('../src/install')
256256

257257
try {
258-
await downloadPackage('test.domain', '1.0.0', 'darwin', 'x86_64', tempDir)
258+
await downloadPackage('test.domain', '1.0.0', 'darwin', 'x86-64', tempDir)
259259
}
260260
catch {
261261
// Expected to fail due to mocking
@@ -292,7 +292,7 @@ describe('Download Progress', () => {
292292
const { downloadPackage } = await import('../src/install')
293293

294294
try {
295-
await downloadPackage('test.domain', '1.0.0', 'darwin', 'x86_64', tempDir)
295+
await downloadPackage('test.domain', '1.0.0', 'darwin', 'x86-64', tempDir)
296296
}
297297
catch {
298298
// Expected to fail due to mocking
@@ -329,7 +329,7 @@ describe('Download Progress', () => {
329329
const { downloadPackage } = await import('../src/install')
330330

331331
try {
332-
await downloadPackage('test.domain', '1.0.0', 'darwin', 'x86_64', tempDir)
332+
await downloadPackage('test.domain', '1.0.0', 'darwin', 'x86-64', tempDir)
333333
}
334334
catch {
335335
// Expected to fail due to mocking
@@ -368,7 +368,7 @@ describe('Download Progress', () => {
368368
const { downloadPackage } = await import('../src/install')
369369

370370
try {
371-
await downloadPackage('test.domain', '1.0.0', 'darwin', 'x86_64', tempDir)
371+
await downloadPackage('test.domain', '1.0.0', 'darwin', 'x86-64', tempDir)
372372
}
373373
catch {
374374
// Expected to fail due to mocking
@@ -400,7 +400,7 @@ describe('Download Progress', () => {
400400

401401
const { downloadPackage } = await import('../src/install')
402402

403-
await expect(downloadPackage('test.domain', '1.0.0', 'darwin', 'x86_64', tempDir))
403+
await expect(downloadPackage('test.domain', '1.0.0', 'darwin', 'x86-64', tempDir))
404404
.rejects
405405
.toThrow()
406406
})
@@ -417,7 +417,7 @@ describe('Download Progress', () => {
417417

418418
const { downloadPackage } = await import('../src/install')
419419

420-
await expect(downloadPackage('test.domain', '1.0.0', 'darwin', 'x86_64', tempDir))
420+
await expect(downloadPackage('test.domain', '1.0.0', 'darwin', 'x86-64', tempDir))
421421
.rejects
422422
.toThrow()
423423
})
@@ -446,7 +446,7 @@ describe('Download Progress', () => {
446446

447447
const { downloadPackage } = await import('../src/install')
448448

449-
await expect(downloadPackage('test.domain', '1.0.0', 'darwin', 'x86_64', tempDir))
449+
await expect(downloadPackage('test.domain', '1.0.0', 'darwin', 'x86-64', tempDir))
450450
.rejects
451451
.toThrow()
452452
})
@@ -547,7 +547,7 @@ describe('Download Progress', () => {
547547
const { downloadPackage } = await import('../src/install')
548548

549549
try {
550-
await downloadPackage('test.domain', '1.0.0', 'darwin', 'x86_64', tempDir)
550+
await downloadPackage('test.domain', '1.0.0', 'darwin', 'x86-64', tempDir)
551551
}
552552
catch {
553553
// Expected to fail due to mocking

0 commit comments

Comments
 (0)