提交 7c8a1649 编写于 作者: J Joao Moreno

product.portableTemp

上级 bd799550
......@@ -24,7 +24,7 @@ function getPortableDataPath() {
return path.join(path.dirname(getApplicationPath()), product.portable);
}
if (product.portable) {
if (product.portable && product.portableTemp) {
const portablePath = getPortableDataPath();
try { fs.mkdirSync(portablePath); } catch (err) { if (err.code !== 'EEXIST') { throw err; } }
......
......@@ -31,7 +31,7 @@ function getPortableDataPath() {
return path.join(path.dirname(getApplicationPath()), product.portable);
}
if (product.portable) {
if (product.portable && product.portableTemp) {
const portablePath = getPortableDataPath();
try { fs.mkdirSync(portablePath); } catch (err) { if (err.code !== 'EEXIST') { throw err; } }
......
......@@ -74,6 +74,7 @@ export interface IProductConfiguration {
};
logUploaderUrl: string;
portable?: string;
portableTemp?: string;
}
export interface ISurveyData {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册