1 Star 0 Fork 0

天行有常/CopyTranslator

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
postbuild.js 598 Bytes
一键复制 编辑 原始数据 按行查看 历史
Elliott Zheng 提交于 2019-05-02 20:05 . remove extra css, more test needed
const os = require("os");
if (os.platform() !== "win32") {
return;
}
const fs = require("fs");
const path = require("path");
const dist_dir = "./dist_electron";
const filePath = "./package.json";
const file = fs.readFileSync(filePath, "utf8");
const packagejson = JSON.parse(file);
const source = `copytranslator Setup ${packagejson.version}.exe`;
const target = `copytranslator-setup-${packagejson.version}.exe`;
fs.renameSync(path.join(dist_dir, source), path.join(dist_dir, target));
fs.renameSync(
path.join(dist_dir, source + ".blockmap"),
path.join(dist_dir, target + ".blockmap")
);
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/simondong1979/CopyTranslator.git
git@gitee.com:simondong1979/CopyTranslator.git
simondong1979
CopyTranslator
CopyTranslator
master

搜索帮助