fix: fix template dir
This commit is contained in:
+1
-1
@@ -81,7 +81,7 @@ export class Haxe extends Sdk {
|
|||||||
prepare() {
|
prepare() {
|
||||||
return Promise.all([this.neko.prepare(), super.prepare()]).then(() => {
|
return Promise.all([this.neko.prepare(), super.prepare()]).then(() => {
|
||||||
fs.copyFileSync(
|
fs.copyFileSync(
|
||||||
path.resolve(import.meta.dirname, "..", "template/haxe/activate"),
|
path.resolve(import.meta.dirname, "template/haxe/activate"),
|
||||||
path.resolve(this.path, "activate"),
|
path.resolve(this.path, "activate"),
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
+1
-1
@@ -73,7 +73,7 @@ export class Neko extends Sdk {
|
|||||||
prepare() {
|
prepare() {
|
||||||
return Promise.all([super.prepare()]).then(() => {
|
return Promise.all([super.prepare()]).then(() => {
|
||||||
fs.copyFileSync(
|
fs.copyFileSync(
|
||||||
path.resolve(import.meta.dirname, "..", "template/neko/activate"),
|
path.resolve(import.meta.dirname, "template/neko/activate"),
|
||||||
path.resolve(this.path, "activate"),
|
path.resolve(this.path, "activate"),
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ export class FlashHTMLPacker extends Packer {
|
|||||||
const target = this.targetPath;
|
const target = this.targetPath;
|
||||||
const index = template.render("flash/index.html", this.config);
|
const index = template.render("flash/index.html", this.config);
|
||||||
fs.writeFileSync(path.resolve(target, "index.html"), index);
|
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();
|
return Promise.resolve();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user