postcat/scripts/afterBuild.js
Scarqin c0ca8abf11
style:extension-detail (#135)
* 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>
2022-09-09 10:47:45 +08:00

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!');
});
});