fix: fix template dir

This commit is contained in:
2026-11-01 14:16:58 +03:00
parent 6622d53167
commit 7f62df2364
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ export class Haxe extends Sdk {
prepare() {
return Promise.all([this.neko.prepare(), super.prepare()]).then(() => {
fs.copyFileSync(
path.resolve(import.meta.dirname, "..", "template/haxe/activate"),
path.resolve(import.meta.dirname, "template/haxe/activate"),
path.resolve(this.path, "activate"),
);
});
+1 -1
View File
@@ -73,7 +73,7 @@ export class Neko extends Sdk {
prepare() {
return Promise.all([super.prepare()]).then(() => {
fs.copyFileSync(
path.resolve(import.meta.dirname, "..", "template/neko/activate"),
path.resolve(import.meta.dirname, "template/neko/activate"),
path.resolve(this.path, "activate"),
);
});
+1 -1
View File
@@ -15,7 +15,7 @@ export class FlashHTMLPacker extends Packer {
const target = this.targetPath;
const index = template.render("flash/index.html", this.config);
fs.writeFileSync(path.resolve(target, "index.html"), index);
fs.copyFileSync(path.resolve(import.meta.dirname, "..", "template/flash/swf.js"), path.resolve(target, "swf.js"));
fs.copyFileSync(path.resolve(import.meta.dirname, "template/flash/swf.js"), path.resolve(target, "swf.js"));
return Promise.resolve();
}
}