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:
@ -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);
|
||||
|
||||
@ -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',
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user