diff --git a/src/impl/haxe.ts b/src/impl/haxe.ts index a42ab3a..6f8eb4a 100755 --- a/src/impl/haxe.ts +++ b/src/impl/haxe.ts @@ -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"), ); }); diff --git a/src/impl/neko.ts b/src/impl/neko.ts index 5c8f21a..50a20f2 100644 --- a/src/impl/neko.ts +++ b/src/impl/neko.ts @@ -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"), ); }); diff --git a/src/project/impl/packer/flash.ts b/src/project/impl/packer/flash.ts index 823df78..6550303 100644 --- a/src/project/impl/packer/flash.ts +++ b/src/project/impl/packer/flash.ts @@ -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(); } }