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
@@ -8,46 +8,51 @@ This module uses a pure Gradle build system. The build process downloads phpMyAd
8
8
9
9
### Version Folder Inclusion
10
10
11
-
When building a release, the build system **includes the version folder** in the compressed archive. This is consistent with other Bearsampp modules (e.g., module-bruno).
11
+
When building a release, the build system **includes the version folder** in the compressed archive. This is consistent with other Bearsampp modules (e.g., module-bruno, module-php).
12
12
13
13
**Example structure in the final archive:**
14
14
```
15
15
phpmyadmin5.2.1/
16
16
βββ bearsampp.conf
17
17
βββ config.inc.php
18
+
βββ index.php
18
19
βββ [phpMyAdmin files]
19
20
```
20
21
21
22
### How It Works
22
23
23
-
1.**Bundle Folder Naming**: The `${bundle.folder}` variable is derived from the bundle path and includes the version:
24
+
1.**Bundle Folder Naming**: The bundle folder is derived from the bundle path and includes the version:
24
25
- Example: `phpmyadmin5.2.1`
25
26
26
-
2.**Preparation Directory**: Files are copied to `${bundle.tmp.prep.path}/${bundle.folder}`:
27
-
- This creates: `tmp/phpmyadmin5.2.1/[files]`
27
+
2.**Preparation Directory**: Files are copied to `${bundleTmpPrepPath}/${bundleName}${bundleVersion}`:
28
+
- This creates: `tmp/bundles_prep/apps/phpmyadmin/phpmyadmin5.2.1/[files]`
28
29
29
-
3.**Compression**: The build system compresses the entire folder structure, preserving the version folder:
30
+
3.**Compression**: The build system compresses from the parent directory, preserving the version folder:
30
31
- Archive contains: `phpmyadmin5.2.1/` as the root directory
31
32
32
33
### Build Process Flow
33
34
34
-
1.**Version Validation**: Checks if the specified version exists in `bin/` directory
35
+
1.**Version Validation**: Checks if the specified version exists in `bin/`or `bin/archived/`directory
35
36
2.**Preparation**: Creates temporary directory structure with version folder name
36
37
3.**Download**: Fetches phpMyAdmin from:
37
38
- modules-untouched repository (primary)
38
39
- releases.properties (fallback)
39
40
- Standard URL format (final fallback)
40
41
4.**Extraction**: Extracts phpMyAdmin archive using 7-Zip
41
42
5.**Configuration**: Copies custom configuration files from `bin/[version]/`
42
-
6.**Archiving**: Creates 7z archive with version folder included
43
-
7.**Hashing**: Generates MD5, SHA1, SHA256, and SHA512 hash files
43
+
6.**Build Copy**: Copies to bundles_build directory (uncompressed for development/testing)
44
+
7.**Archiving**: Creates 7z archive with version folder included
45
+
8.**Hashing**: Generates MD5, SHA1, SHA256, and SHA512 hash files
44
46
45
47
## Building a Release
46
48
47
49
### Using Gradle
48
50
49
51
```bash
50
-
# Build a specific version
52
+
# Build a specific version (interactive mode)
53
+
gradle release
54
+
55
+
# Build a specific version (non-interactive mode)
51
56
gradle release -PbundleVersion=5.2.1
52
57
53
58
# Build all available versions
@@ -67,7 +72,7 @@ gradle info
67
72
68
73
### Supported Versions
69
74
70
-
Versions are defined in `releases.properties`. Each entry maps a version to its download URL:
75
+
Versions are defined in `releases.properties` and can also be fetched from the modules-untouched repository. Each entry maps a version to its download URL:
0 commit comments