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:
parent
80d2a6e756
commit
3711abb3db
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue