3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-08-18 03:06:23 +00:00

Update version

This commit is contained in:
snipe
2026-08-11 13:55:39 +01:00
parent 2dcc39638c
commit ae790bb060
2 changed files with 13 additions and 8 deletions

View File

@ -126,8 +126,13 @@ class Version extends Command
\File::put($versionFile, $content);
info('New version: '.$full_app_version.' ('.$git_branch.')');
info('Building JS/CSS assets...');
passthru('npm run prod', $exitCode);
// Master ships production-minified assets; develop / topic
// branches ship the dev-build artifacts so partial merges
// don't drop into master with mismatched compiled JS/CSS.
$npmScript = $use_branch === 'master' ? 'npm run prod' : 'npm run dev';
info('Building JS/CSS assets ('.$npmScript.')...');
passthru($npmScript, $exitCode);
if ($exitCode !== 0) {
$this->error('Asset build failed with exit code '.$exitCode);

View File

@ -1,11 +1,11 @@
<?php
return [
'app_version' => 'v8.7.0-pre',
'full_app_version' => 'v8.7.0-pre - build 23531-gf80167fe1b',
'build_version' => '23531',
'app_version' => 'v8.7.0',
'full_app_version' => 'v8.7.3-pre - build 24424-gd3be770f25',
'build_version' => '24424',
'prerelease_version' => '',
'hash_version' => 'gf80167fe1b',
'full_hash' => 'v8.7.0-pre-386-gf80167fe1b',
'branch' => 'master',
'hash_version' => 'gd3be770f25',
'full_hash' => 'v8.7.0-1179-gd3be770f25',
'branch' => 'develop',
];