filecat 6.30.2 → 6.30.3
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/{1472.1a8f0b5e1670e4b9cc1d.js → 1472.e8ce419a6691744e1c49.js} +1 -1
- package/build/dist/index.html +1 -1
- package/build/dist/main.8139245c199425195bd2.js +2 -0
- package/build/main.js +1 -1
- package/package.json +1 -2
- package/shell/build.js +0 -25
- package/shell/config/base.webpack.config.js +0 -2
- package/build/dist/main.1c58f72427dd8b728835.js +0 -2
- /package/build/dist/{main.1c58f72427dd8b728835.js.LICENSE.txt → main.8139245c199425195bd2.js.LICENSE.txt} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "filecat",
|
|
3
|
-
"version": "6.30.
|
|
3
|
+
"version": "6.30.3",
|
|
4
4
|
"description": "FileCat File Browser Server Manager",
|
|
5
5
|
"author": "xiaobaidadada",
|
|
6
6
|
"repository": {
|
|
@@ -42,7 +42,6 @@
|
|
|
42
42
|
"@xiaobaidadada/node-pty-prebuilt": "^1.1.0",
|
|
43
43
|
"@xiaobaidadada/node-tuntap2-wintun": "^3.0.2",
|
|
44
44
|
"@xiaobaidadada/ssh2-prebuilt": "^1.16.0",
|
|
45
|
-
"7zip-min": "^3.0.1",
|
|
46
45
|
"better-sqlite3": "^12.6.2",
|
|
47
46
|
"node-process-watcher": "^1.6.6"
|
|
48
47
|
},
|
package/shell/build.js
CHANGED
|
@@ -2,7 +2,6 @@ process.env.NODE_ENV = 'production';
|
|
|
2
2
|
|
|
3
3
|
const {Listr} = require("listr2");
|
|
4
4
|
const webpack = require('webpack');
|
|
5
|
-
const os = require("os");
|
|
6
5
|
const config = require('./config/webpack.web.config.js');
|
|
7
6
|
const args = process.argv.slice(2)??[]; // slice to remove the first two default values
|
|
8
7
|
let serverConfig ;
|
|
@@ -35,26 +34,6 @@ function ensure_copyFileSync(sourcePath, destPath) {
|
|
|
35
34
|
copyFileSync(sourcePath, destPath);
|
|
36
35
|
}
|
|
37
36
|
|
|
38
|
-
function get_platform () {
|
|
39
|
-
const platform = os.platform();
|
|
40
|
-
if(platform === "win32") {
|
|
41
|
-
return 'win'
|
|
42
|
-
} else if (platform === "linux") {
|
|
43
|
-
return 'linux'
|
|
44
|
-
} else if (platform === "darwin") {
|
|
45
|
-
return 'mac'
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
function get_exe() {
|
|
50
|
-
const arch = os.platform()
|
|
51
|
-
if(arch === "win32") {
|
|
52
|
-
return '7za.exe'
|
|
53
|
-
} else {
|
|
54
|
-
return '7za'
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
37
|
function exec_sync(cmd) {
|
|
59
38
|
try {
|
|
60
39
|
execSync(cmd)
|
|
@@ -126,10 +105,6 @@ const tasksLister = new Listr(
|
|
|
126
105
|
if(is_exe) {
|
|
127
106
|
copy_wintun_dll()
|
|
128
107
|
fs.copyFileSync(path.resolve('package.json'), path.resolve('build','package.json'));
|
|
129
|
-
fse.copySync(path.resolve('node_modules','7zip-min'), path.resolve('build','node_modules','7zip-min'));
|
|
130
|
-
fse.copySync(path.resolve('node_modules','7zip-bin','package.json'), path.resolve('build','node_modules','7zip-bin','package.json'));
|
|
131
|
-
fse.copySync(path.resolve('node_modules','7zip-bin','index.js'), path.resolve('build','node_modules','7zip-bin','index.js'));
|
|
132
|
-
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()));
|
|
133
108
|
}
|
|
134
109
|
|
|
135
110
|
ensure_copyFileSync(path.resolve("node_modules/node-unrar-js/esm/js/unrar.wasm"), path.join(__dirname, "..", "build", "unrar.wasm"))
|
|
@@ -59,7 +59,6 @@ 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',
|
|
63
62
|
}
|
|
64
63
|
]
|
|
65
64
|
const pkg_externals = [
|
|
@@ -68,7 +67,6 @@ const pkg_externals = [
|
|
|
68
67
|
'cors': 'commonjs cors',
|
|
69
68
|
'@koa/cors': 'commonjs @koa/cors', // 动态加载无法打包 如果需要可以使用 import "cors"
|
|
70
69
|
// 'routing-controllers':'commonjs routing-controllers', // 有一些动态引入(他需要的动态引入也需要导入),或者含有.node(使用用户自己安装编译的版本) 无法被打包 直接忽略这个包
|
|
71
|
-
'7zip-min': 'commonjs 7zip-min',
|
|
72
70
|
}
|
|
73
71
|
]
|
|
74
72
|
|