filecat 5.57.0 → 5.58.0
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/build/dist/{377.70907f1eb047946b6091.js → 377.51daea9b9cdfa883fbf2.js} +2 -2
- package/build/dist/{505.d6a34e1202bd0d8b68df.js → 505.c5c3d97c1cb34fb02a36.js} +2 -2
- package/build/dist/{943.9b2bcf75010b6663780b.js → 943.1c7d32bfdec767d28082.js} +2 -2
- package/build/dist/index.html +1 -1
- package/build/dist/main.61526dd32747542d743d.js +2 -0
- package/build/main.js +1 -1
- package/package.json +3 -2
- package/shell/build.js +23 -0
- package/shell/config/base.webpack.config.js +3 -1
- package/build/dist/main.3016b615fbde4ee1b25c.js +0 -2
- /package/build/dist/{377.70907f1eb047946b6091.js.LICENSE.txt → 377.51daea9b9cdfa883fbf2.js.LICENSE.txt} +0 -0
- /package/build/dist/{505.d6a34e1202bd0d8b68df.js.LICENSE.txt → 505.c5c3d97c1cb34fb02a36.js.LICENSE.txt} +0 -0
- /package/build/dist/{943.9b2bcf75010b6663780b.js.LICENSE.txt → 943.1c7d32bfdec767d28082.js.LICENSE.txt} +0 -0
- /package/build/dist/{main.3016b615fbde4ee1b25c.js.LICENSE.txt → main.61526dd32747542d743d.js.LICENSE.txt} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "filecat",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.58.0",
|
|
4
4
|
"description": "FileCat Server Manager",
|
|
5
5
|
"author": "xiaobaidadada",
|
|
6
6
|
"scripts": {
|
|
@@ -45,7 +45,8 @@
|
|
|
45
45
|
"@xiaobaidadada/node-tuntap2-wintun": "^3.0.2",
|
|
46
46
|
"@xiaobaidadada/ssh2-prebuilt": "^1.16.0",
|
|
47
47
|
"better-sqlite3": "^12.6.2",
|
|
48
|
-
"node-process-watcher": "^1.6.6"
|
|
48
|
+
"node-process-watcher": "^1.6.6",
|
|
49
|
+
"7zip-min": "^3.0.1"
|
|
49
50
|
},
|
|
50
51
|
"devDependencies": {
|
|
51
52
|
"@babel/core": "^7.24.3",
|
package/shell/build.js
CHANGED
|
@@ -33,6 +33,25 @@ function ensure_copyFileSync(sourcePath, destPath) {
|
|
|
33
33
|
copyFileSync(sourcePath, destPath);
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
function get_platform () {
|
|
37
|
+
const platform = os.platform();
|
|
38
|
+
if(platform === "win32") {
|
|
39
|
+
return 'win'
|
|
40
|
+
} else if (platform === "linux") {
|
|
41
|
+
return 'linux'
|
|
42
|
+
} else if (platform === "darwin") {
|
|
43
|
+
return 'mac'
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function get_exe() {
|
|
48
|
+
const arch = os.platform()
|
|
49
|
+
if(arch === "win32") {
|
|
50
|
+
return '7za.exe'
|
|
51
|
+
} else {
|
|
52
|
+
return '7za'
|
|
53
|
+
}
|
|
54
|
+
}
|
|
36
55
|
|
|
37
56
|
const tasksLister = new Listr(
|
|
38
57
|
[
|
|
@@ -90,6 +109,10 @@ const tasksLister = new Listr(
|
|
|
90
109
|
if(is_exe) {
|
|
91
110
|
copy_wintun_dll()
|
|
92
111
|
fs.copyFileSync(path.resolve('package.json'), path.resolve('build','package.json'));
|
|
112
|
+
fse.copySync(path.resolve('node_modules','7zip-min'), path.resolve('build','node_modules','7zip-min'));
|
|
113
|
+
fse.copySync(path.resolve('node_modules','7zip-bin','package.json'), path.resolve('build','node_modules','7zip-bin','package.json'));
|
|
114
|
+
fse.copySync(path.resolve('node_modules','7zip-bin','index.js'), path.resolve('build','node_modules','7zip-bin','index.js'));
|
|
115
|
+
fse.copySync(path.resolve('node_modules','7zip-bin',get_platform(),os.arch(),get_exe()), path.resolve('build','node_modules','7zip-bin',get_platform(),os.arch(),get_exe()));
|
|
93
116
|
}
|
|
94
117
|
|
|
95
118
|
ensure_copyFileSync(path.resolve("node_modules/node-unrar-js/esm/js/unrar.wasm"), path.join(__dirname, "..", "build", "unrar.wasm"))
|
|
@@ -59,14 +59,16 @@ const npm_externals = [
|
|
|
59
59
|
'@xiaobaidadada/ssh2-prebuilt': 'commonjs @xiaobaidadada/ssh2-prebuilt',
|
|
60
60
|
'better-sqlite3/build/Release/better_sqlite3.node': 'commonjs better-sqlite3/build/Release/better_sqlite3.node',
|
|
61
61
|
'better-sqlite3': 'commonjs better-sqlite3',
|
|
62
|
+
'7zip-min': 'commonjs 7zip-min',
|
|
62
63
|
}
|
|
63
64
|
]
|
|
64
65
|
const pkg_externals = [
|
|
65
66
|
{
|
|
66
67
|
'@aws-sdk/client-s3': 'S3', // 假设全局变量名为 S3 是 @aws-sdk/client-s3带 @符号的话会无法压缩
|
|
67
68
|
'cors': 'commonjs cors',
|
|
68
|
-
'@koa/cors': 'commonjs @koa/cors' // 动态加载无法打包 如果需要可以使用 import "cors"
|
|
69
|
+
'@koa/cors': 'commonjs @koa/cors', // 动态加载无法打包 如果需要可以使用 import "cors"
|
|
69
70
|
// 'routing-controllers':'commonjs routing-controllers', // 有一些动态引入(他需要的动态引入也需要导入),或者含有.node(使用用户自己安装编译的版本) 无法被打包 直接忽略这个包
|
|
71
|
+
'7zip-min': 'commonjs 7zip-min',
|
|
70
72
|
}
|
|
71
73
|
]
|
|
72
74
|
|