mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-13 03:19:54 +03:00
Beta more carefull while renaming files and update artifact names
This commit is contained in:
parent
3711abb3db
commit
56ef6ac502
2 changed files with 9 additions and 7 deletions
|
@ -11,6 +11,8 @@ module.exports = {
|
|||
"^(\/support$)",
|
||||
".gitattributes",
|
||||
".gitignore",
|
||||
".github",
|
||||
".git",
|
||||
"3D_model_creation.md",
|
||||
"LICENSE",
|
||||
"MAPPROXY.md",
|
||||
|
@ -27,9 +29,9 @@ module.exports = {
|
|||
result.artifacts.forEach(artifact => {
|
||||
var artifactStr = artifact.toString();
|
||||
var newPath = path.join(path.dirname(artifactStr), baseName + path.extname(artifactStr));
|
||||
newPath = newPath.replace('win32_ia32', 'Win32');
|
||||
newPath = newPath.replace('win32_x64', 'Win64');
|
||||
newPath = newPath.replace('darwin', 'MacOS');
|
||||
newPath = newPath.replace('Configurator_win32_ia32', 'Configurator_Win32');
|
||||
newPath = newPath.replace('Configurator_win32_x64', 'Configurator_Win64');
|
||||
newPath = newPath.replace('Configurator_darwin', 'Configurator_MacOS');
|
||||
fs.renameSync(artifactStr, newPath);
|
||||
console.log('Artifact: ' + newPath);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue