158 Star 1.4K Fork 242

GVPElliott / 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")
);
TypeScript
1
https://gitee.com/ylzheng/CopyTranslator.git
git@gitee.com:ylzheng/CopyTranslator.git
ylzheng
CopyTranslator
CopyTranslator
master

搜索帮助