sys-shim 0.0.1-12 → 0.0.1-13
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -154,7 +154,7 @@ function genFile(cfg) {
|
|
154
154
|
shelljs.cp(`-f`, `${pkgDir}/script/npm-pkg/shim/win/main.exe`, newCfg.input)
|
155
155
|
shelljs.cp(`-f`, `${pkgDir}/script/npm-pkg/shim/win/favicon.ico`, newCfg.input)
|
156
156
|
shelljs.cp(`-f`, cfg.icon, `${newCfg.input}/favicon.ico`)
|
157
|
-
fs.statSync(cfg.input).isDirectory() && shelljs.cp(`-fr`, `${cfg.input}/*`, newCfg.input)
|
157
|
+
determinePathType(cfg.input) !== `url` && fs.statSync(cfg.input).isDirectory() && shelljs.cp(`-fr`, `${cfg.input}/*`, newCfg.input)
|
158
158
|
if(fs.existsSync(`${cfg.input}/package.json`) === false) {
|
159
159
|
const newStr = simpleTemplate(fs.readFileSync(`${newCfg.input}/package.json`, `utf8`), {
|
160
160
|
page: getIndex(cfg),
|