Skip to content

Commit 8ffb523

Browse files
authored
chore: Merge pull request #269 from WebFiori/dev
Release-As: v3.0.0-Beta.30
2 parents 22433ff + afde21b commit 8ffb523

4 files changed

Lines changed: 51 additions & 6 deletions

File tree

.gitattributes

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Files and folders here will be not included when creating package
22
/tests export-ignore
3-
/app export-ignore
3+
/App export-ignore
44
/public export-ignore
5-
/themes export-ignore
6-
/webfiori/framework/db export-ignore
5+
/Themes export-ignore
6+
/Webfiori/Framework/Db export-ignore
77
/.github export-ignore
88
/.gitignore export-ignore
99
/.travis.yml export-ignore

WebFiori/Framework/App.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ public static function initFrameworkVersionInfo() {
642642
*
643643
* @since 2.1
644644
*/
645-
define('WF_VERSION', '3.0.0-Beta.29');
645+
define('WF_VERSION', '3.0.0-Beta.30');
646646
/**
647647
* A constant that tells the type of framework version.
648648
*
@@ -658,7 +658,7 @@ public static function initFrameworkVersionInfo() {
658658
*
659659
* @since 2.1
660660
*/
661-
define('WF_RELEASE_DATE', '2025-10-09');
661+
define('WF_RELEASE_DATE', '2025-10-22');
662662
}
663663

664664
/**

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"type": "library",
77
"support": {
88
"issues": "https://github.com/webfiori/framework/issues",
9-
"source": "https://github.com/webfior/framework"
9+
"source": "https://github.com/webfiori/framework"
1010
},
1111
"authors": [
1212
{

update-version.php

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<?php
2+
/**
3+
* Script to update WebFiori Framework version constants
4+
* Usage: php update-version.php --version=3.0.0 --type=Stable
5+
*/
6+
7+
$options = getopt('', ['version:', 'type:']);
8+
9+
if (!isset($options['version']) || !isset($options['type'])) {
10+
echo "Usage: php update-version.php --version=VERSION --type=TYPE\n";
11+
echo "Example: php update-version.php --version=3.0.0 --type=Stable\n";
12+
exit(1);
13+
}
14+
15+
$version = $options['version'];
16+
$type = $options['type'];
17+
$date = date('Y-m-d');
18+
19+
$appFile = __DIR__ . '/WebFiori/Framework/App.php';
20+
$content = file_get_contents($appFile);
21+
22+
$content = preg_replace(
23+
"/define\('WF_VERSION', '[^']*'\);/",
24+
"define('WF_VERSION', '$version');",
25+
$content
26+
);
27+
28+
$content = preg_replace(
29+
"/define\('WF_VERSION_TYPE', '[^']*'\);/",
30+
"define('WF_VERSION_TYPE', '$type');",
31+
$content
32+
);
33+
34+
$content = preg_replace(
35+
"/define\('WF_RELEASE_DATE', '[^']*'\);/",
36+
"define('WF_RELEASE_DATE', '$date');",
37+
$content
38+
);
39+
40+
file_put_contents($appFile, $content);
41+
42+
echo "Updated version constants:\n";
43+
echo "WF_VERSION: $version\n";
44+
echo "WF_VERSION_TYPE: $type\n";
45+
echo "WF_RELEASE_DATE: $date\n";

0 commit comments

Comments
 (0)