mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-01-31 15:09:26 +08:00
修改打包
This commit is contained in:
parent
bb54531a0e
commit
2e0770ae71
@ -19,7 +19,8 @@ export default defineConfig({
|
||||
'images/*',
|
||||
'animates/*',
|
||||
'sounds/*',
|
||||
'fonts/*'
|
||||
'fonts/*',
|
||||
'!images/bg.jpg'
|
||||
],
|
||||
'weather.zip': [
|
||||
'materials/fog.png',
|
||||
|
@ -57,6 +57,9 @@ async function zipResource() {
|
||||
const dir = file.split('/')[0];
|
||||
dirs.push(dir);
|
||||
await fs.copy(`./_temp/origin/${dir}`, `./_temp/${dir}`);
|
||||
} else if (file.startsWith('!')) {
|
||||
const dir = file.slice(1);
|
||||
await fs.remove(`./_temp/${dir}`);
|
||||
} else {
|
||||
const [dir, name] = file.split('/');
|
||||
if (dirs.includes(dir)) dirs.push(dir);
|
||||
|
@ -7,8 +7,7 @@ let time = 0;
|
||||
// 插件必须有默认导出,并返回所有外部会用到的函数,所有返回的函数会被转发到core上
|
||||
// 并且在这里面完成所有的初始化,函数外部也可以进行初始化,但完全不能涉及到样板相关内容
|
||||
export default function init() {
|
||||
if (!main.replayChecking)
|
||||
core.registerAnimationFrame('pop', true, popValue);
|
||||
core.registerAnimationFrame('pop', true, popValue);
|
||||
// 返回值是所有外部可见内容
|
||||
return { addPop, pop };
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user