1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-13 11:29:53 +03:00

Missed the fact replace is not in place

This commit is contained in:
Marcelo Bezerra 2025-01-29 22:48:04 +01:00
parent 80d2a6e756
commit 3711abb3db

View file

@ -27,9 +27,9 @@ module.exports = {
result.artifacts.forEach(artifact => { result.artifacts.forEach(artifact => {
var artifactStr = artifact.toString(); var artifactStr = artifact.toString();
var newPath = path.join(path.dirname(artifactStr), baseName + path.extname(artifactStr)); var newPath = path.join(path.dirname(artifactStr), baseName + path.extname(artifactStr));
newPath.replace('win32_ia32', 'Win32'); newPath = newPath.replace('win32_ia32', 'Win32');
newPath.replace('win32_x64', 'Win64'); newPath = newPath.replace('win32_x64', 'Win64');
newPath.replace('darwin', 'MacOS'); newPath = newPath.replace('darwin', 'MacOS');
fs.renameSync(artifactStr, newPath); fs.renameSync(artifactStr, newPath);
console.log('Artifact: ' + newPath); console.log('Artifact: ' + newPath);
}); });