You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- `full-stack`: Complete PHP build with major extensions and database drivers
965
1026
966
1027
📦 **Usage with Launchpad**:
967
-
These binaries are automatically downloaded by Launchpad instead of compiling from source.
1028
+
You may use these however, but if you are looking for automation, these binaries are automatically downloaded by Launchpad instead of compiling from source.
Copy file name to clipboardExpand all lines: docs/scripts.md
+40-1Lines changed: 40 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,13 +6,20 @@ This document describes the utility scripts available in the Launchpad project f
6
6
7
7
### `scripts/get-php-versions.ts`
8
8
9
-
A TypeScript script that dynamically fetches the latest PHP versions from the ts-pkgx registry and generates improved configuration descriptions.
9
+
A TypeScript script that dynamically fetches the latest PHP versions from the ts-pkgx registry and generates configuration descriptions.
10
+
11
+
### `scripts/check-php-updates.ts`
12
+
13
+
A TypeScript script that checks if there are new PHP versions available and determines if a rebuild is needed. This script is used by the GitHub workflow to avoid unnecessary builds.
10
14
11
15
#### Usage
12
16
13
17
```bash
14
18
# Run the script to get latest PHP versions and configuration info
15
19
bun scripts/get-php-versions.ts
20
+
21
+
# Check if there are new PHP versions available
22
+
bun scripts/check-php-updates.ts
16
23
```
17
24
18
25
#### Features
@@ -25,6 +32,13 @@ bun scripts/get-php-versions.ts
25
32
- JSON output for GitHub Actions
26
33
- Markdown tables for documentation
27
34
35
+
#### Update Checking Features
36
+
37
+
-**Version Comparison**: Compares current versions with latest available versions
38
+
-**Smart Rebuild Logic**: Determines if a rebuild is needed based on version changes
39
+
-**GitHub Actions Integration**: Provides outputs for workflow decision making
40
+
-**Detailed Reporting**: Shows what changed and why a rebuild is needed
41
+
28
42
#### Output
29
43
30
44
The script provides three types of output:
@@ -51,6 +65,31 @@ The script provides three types of output:
51
65
| `laravel-mysql` | Laravel with MySQL/MariaDB | Laravel applications using MySQL or MariaDB | MySQL, MariaDB |
52
66
```
53
67
68
+
#### Update Check Output
69
+
70
+
The update checking script provides:
71
+
72
+
1.**Human-readable summary**:
73
+
```
74
+
🔍 PHP Version Update Check
75
+
76
+
📊 Version Comparison:
77
+
Current: 8.4.11, 8.3.14, 8.2.26, 8.1.30
78
+
Latest: 8.4.11, 8.3.24, 8.2.29, 8.1.32
79
+
80
+
🔄 Rebuild Required: YES
81
+
Reason: New versions available: 8.3.24, 8.2.29, 8.1.32
0 commit comments