@makano/rew 1.2.79 → 1.2.81
Sign up to get free protection for your applications and to get access to all the features.
package/lib/rew/cli/helpers.js
CHANGED
@@ -2,6 +2,7 @@ const { CONFIG_PATH } = require("../const/config_path");
|
|
2
2
|
const path = require('path');
|
3
3
|
const fs = require('fs');
|
4
4
|
const conf = require("../pkgs/conf");
|
5
|
+
const { log } = require("./log");
|
5
6
|
|
6
7
|
const binpath = path.join(conf({}).create('').root, '.bin');
|
7
8
|
const logspath = path.join(conf({}).create('').root, '.logs');
|
package/lib/rew/cli/utils.js
CHANGED
@@ -234,8 +234,8 @@ module.exports = {
|
|
234
234
|
});
|
235
235
|
} catch(e){}
|
236
236
|
}
|
237
|
-
execSync(
|
238
|
-
execSync(`chmod 444 ${installPath}/app.yaml`);
|
237
|
+
execSync(`${process.platform == "win32" ? 'copy' : 'cp'} -r ${apppath} ${installPath}`);
|
238
|
+
if(process.platform != "win32") execSync(`chmod 444 ${installPath}/app.yaml`);
|
239
239
|
if (c.install) {
|
240
240
|
if (c.install.commands) {
|
241
241
|
for (let command of c.install.commands) {
|