mirror of
https://gitee.com/eolink_admin/postcat.git
synced 2024-12-02 03:38:03 +08:00
c0ca8abf11
* style:extension-detail * style: optimizi * feat: update UI * test: publish * test: build * chore: update .gitignore * testt: publish * test: relese * feat: check eoapi client is install * test: relese * feat: add save * feat: clickExtension tab query params * fix: update code * add i18n * chore: merge code * feat: extension support swtich enable status * fix: extension name not sure * fix: css style * chore: update desc * fix: some css style * feat: add single instance lock Co-authored-by: buqiyuan <1743369777@qq.com>
12 lines
312 B
JavaScript
12 lines
312 B
JavaScript
const fs = require('fs');
|
|
const glob = require('glob');
|
|
const { resolve } = require('path');
|
|
|
|
glob.sync(resolve('./release', './*.exe')).forEach((item, i) => {
|
|
const newName = item.replace(/ /g, '-');
|
|
fs.rename(item, newName, (err) => {
|
|
if (err) throw err;
|
|
console.log('Rename complete!');
|
|
});
|
|
});
|