2022-07-28 03:55:04 -05:00
|
|
|
const path = require('path');
|
|
|
|
const fs = require('fs');
|
|
|
|
const crypto = require('crypto');
|
|
|
|
|
|
|
|
const yaml = require('js-yaml');
|
|
|
|
|
2022-11-25 01:51:19 -06:00
|
|
|
const INSTALLERS_URL = 'https://static.symphony.com/sda/';
|
2022-07-28 03:55:04 -05:00
|
|
|
|
|
|
|
function updateYamlFile(yamlFilePath) {
|
|
|
|
let doc = yaml.load(fs.readFileSync(yamlFilePath, 'utf-8'));
|
2022-11-25 01:51:19 -06:00
|
|
|
doc.files[0].url = INSTALLERS_URL + doc.files[0].url;
|
|
|
|
doc.path = INSTALLERS_URL + doc.path;
|
2022-07-28 03:55:04 -05:00
|
|
|
fs.writeFileSync(yamlFilePath, yaml.dump(doc, { lineWidth: -1 }));
|
|
|
|
}
|
|
|
|
|
|
|
|
(async () => {
|
|
|
|
const yamlFilePath = process.argv[2];
|
|
|
|
updateYamlFile(yamlFilePath);
|
|
|
|
})();
|