Updating build_tools version syntax
This commit is contained in:
@ -39,7 +39,7 @@ copyfile('src/manifest.json', 'mopidy_iris/static/manifest.json', function(error
|
||||
|
||||
copydir('src/assets', 'mopidy_iris/static/assets', function(error){
|
||||
|
||||
if (error){
|
||||
if (error) {
|
||||
console.log('Build failed, could not copy assets', error);
|
||||
return false;
|
||||
|
||||
@ -56,14 +56,14 @@ copydir('src/assets', 'mopidy_iris/static/assets', function(error){
|
||||
console.log('Setting version in __init__.py');
|
||||
var init_file = "mopidy_iris/__init__.py";
|
||||
var init_file_content = fs.readFileSync(init_file, "utf8");
|
||||
init_file_content = init_file_content.replace(/(?:__version__\ \=\ \')(?:.*)'/, "__version__ = '"+version+"'");
|
||||
init_file_content = init_file_content.replace(/(?:__version__\ \=\ \")(?:.*)"/, "__version__ = '"+version+"'");
|
||||
fs.writeFileSync(init_file, init_file_content, 'utf8');
|
||||
|
||||
console.log('Setting version in setup.cfg');
|
||||
var init_file = "mopidy_iris/__init__.py";
|
||||
var init_file_content = fs.readFileSync(init_file, "utf8");
|
||||
init_file_content = init_file_content.replace(/(?:version\ \=\ \')(?:.*)'/, "version = '"+version+"'");
|
||||
fs.writeFileSync(init_file, init_file_content, 'utf8');
|
||||
var cfg_file = "setup.cfg";
|
||||
var cfg_file_content = fs.readFileSync(cfg_file, "utf8");
|
||||
cfg_file_content = cfg_file_content.replace(/(?:version\ \=\ )(?:.*)/, "version = "+version);
|
||||
fs.writeFileSync(cfg_file, cfg_file_content, 'utf8');
|
||||
|
||||
console.log('Setting version in package.json');
|
||||
var package_file = "package.json";
|
||||
|
||||
@ -3,7 +3,7 @@ import pathlib
|
||||
|
||||
from mopidy import config, ext
|
||||
|
||||
__version__ = "3.44.0"
|
||||
__version__ = '3.44.2'
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@ -100,7 +100,7 @@
|
||||
|
||||
// Release details
|
||||
// These are automatically injected to built HTML
|
||||
var build = "1581630917";
|
||||
var build = "1581633525";
|
||||
var version = "3.44.2";
|
||||
|
||||
// Construct the script tag
|
||||
|
||||
Reference in New Issue
Block a user