fix version updates
This commit is contained in:
@@ -98,5 +98,5 @@
|
|||||||
"minimum-stability": "stable",
|
"minimum-stability": "stable",
|
||||||
"prefer-stable": true,
|
"prefer-stable": true,
|
||||||
"version": "26.0.2",
|
"version": "26.0.2",
|
||||||
"build": "68"
|
"build": "69"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -85,6 +85,7 @@ $PHP_BIN artisan migrate --force
|
|||||||
echo "Syncing version/build to settings..."
|
echo "Syncing version/build to settings..."
|
||||||
VERSION="$($PHP_BIN -r '$c=json_decode(file_get_contents("composer.json"), true); echo $c["version"] ?? "";')"
|
VERSION="$($PHP_BIN -r '$c=json_decode(file_get_contents("composer.json"), true); echo $c["version"] ?? "";')"
|
||||||
BUILD="$($PHP_BIN -r '$c=json_decode(file_get_contents("composer.json"), true); echo $c["build"] ?? "";')"
|
BUILD="$($PHP_BIN -r '$c=json_decode(file_get_contents("composer.json"), true); echo $c["build"] ?? "";')"
|
||||||
|
echo "Computed from composer.json: VERSION=$VERSION, BUILD=$BUILD"
|
||||||
|
|
||||||
if [[ -n "$VERSION" || -n "$BUILD" ]]; then
|
if [[ -n "$VERSION" || -n "$BUILD" ]]; then
|
||||||
echo "Updating settings version/build (VERSION=$VERSION, BUILD=$BUILD)..."
|
echo "Updating settings version/build (VERSION=$VERSION, BUILD=$BUILD)..."
|
||||||
@@ -101,6 +102,14 @@ if [[ -n "$VERSION" || -n "$BUILD" ]]; then
|
|||||||
' \
|
' \
|
||||||
SPEEDBB_VERSION="$VERSION" \
|
SPEEDBB_VERSION="$VERSION" \
|
||||||
SPEEDBB_BUILD="$BUILD"
|
SPEEDBB_BUILD="$BUILD"
|
||||||
|
$PHP_BIN -r '
|
||||||
|
require "vendor/autoload.php";
|
||||||
|
$app = require "bootstrap/app.php";
|
||||||
|
$app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();
|
||||||
|
$version = \App\Models\Setting::where("key", "version")->value("value");
|
||||||
|
$build = \App\Models\Setting::where("key", "build")->value("value");
|
||||||
|
echo "Settings now: version={$version}, build={$build}\n";
|
||||||
|
'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Update complete."
|
echo "Update complete."
|
||||||
|
|||||||
Reference in New Issue
Block a user