mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
修复一些错误
This commit is contained in:
1 parent
747cb1b9b5
commit
b19f948fdd
30 files changed
+306
-132
No files matched your search
+2
-1
@@ -33,6 +33,7 @@ async function build(type) {
|
||||
'bsod.html',
|
||||
];
|
||||
const builtin = {
|
||||
id: 'builtin',
|
||||
locale: lang,
|
||||
template: template('templates', exclude),
|
||||
file: {},
|
||||
@@ -45,7 +46,7 @@ async function build(type) {
|
||||
builtin.file[f] = fs.readFileSync(root(`.uibuild/${f}`)).toString('base64');
|
||||
}
|
||||
}
|
||||
const data = zlib.gzipSync(Buffer.from(yaml.safeDump(builtin)), { level: 3 });
|
||||
const data = zlib.gzipSync(Buffer.from(yaml.safeDump(builtin)), { level: -1 });
|
||||
fs.writeFileSync(root('.build/builtin.json'), JSON.stringify({ data: data.toString('base64') }));
|
||||
fs.writeFileSync(root('.build/module/builtin.hydro'), data);
|
||||
await require('./buildModule')(type);
|
||||
|
||||
Reference in new issue
Block a user