filecat 1.0.10 → 1.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "filecat",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "filecat 文件管理器",
5
5
  "author": "xiaobaidadada",
6
6
  "scripts": {
@@ -73,8 +73,7 @@
73
73
  "dependencies": {
74
74
  "@xiaobaidadada/node-pty-prebuilt": "^1.0.4",
75
75
  "@xiaobaidadada/node-tuntap2-wintun": "^1.0.6",
76
- "node-process-watcher": "^1.0.2",
77
- "node-unrar-js": "^2.0.2",
76
+ "node-process-watcher": "^1.0.3",
78
77
  "ssh2": "^1.15.0"
79
78
  },
80
79
  "devDependencies": {
@@ -115,6 +114,7 @@
115
114
  "needle": "^3.3.1",
116
115
  "node-forge": "^1.3.1",
117
116
  "node-loader": "^2.1.0",
117
+ "node-unrar-js": "^2.0.2",
118
118
  "normalize.css": "^8.0.1",
119
119
  "noty": "^3.2.0-beta-deprecated",
120
120
  "piping": "^1.0.0-rc.4",
package/shell/build.js CHANGED
@@ -1,5 +1,6 @@
1
1
  const {Listr} = require("listr2");
2
2
  const webpack = require('webpack');
3
+ const os = require("os");
3
4
  const config = require('./config/webpack.config.js');
4
5
  const args = process.argv.slice(2); // slice to remove the first two default values
5
6
  let serverConfig ;
@@ -59,7 +60,7 @@ const tasksLister = new Listr(
59
60
  // copyFileSync(path.join(__dirname, "..", "src", "main", "domain", "net", "wintun-x86.dll"), path.join(__dirname, "..", "build", "wintun-x86.dll"))
60
61
  // copyFileSync(path.join(__dirname, "..", "src", "main", "domain", "bin", "ffmpeg"), path.join(__dirname, "..", "build", "ffmpeg"))
61
62
  // copyFileSync(path.join(__dirname, "..", "src", "main", "domain", "bin", "ffmpeg.exe"), path.join(__dirname, "..", "build", "ffmpeg.exe"))
62
- if (args[0]!=="npm") {
63
+ if (args[0]!=="npm" && os.platform() === 'win32') {
63
64
  copyFiles(path.resolve("node_modules/@xiaobaidadada/node-tuntap2-wintun/wintun_dll"),path.join(__dirname, "..", "build"))
64
65
  }
65
66
  rimraf(path.join(__dirname,"..","build","server"));