Skip to content

Commit

Permalink
New to get extension in the output
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyjul committed Dec 30, 2024
1 parent 1478152 commit a14b81a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/assetman/Builder.hx
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,15 @@ abstract class Builder {
var directory = hx.files.Path.of(filepath.getAbsolutePath()).parent.getAbsolutePath();
var relative_filepath = Path.join([relative_directory, filename]);
var filename_without_extension = directory + '/' + filename;
var ext = filepath.filenameExt;

var output_paths = single.targets.map(function(a) {
return a
.replace("$filename_without_extension", filename_without_extension)
.replace("$filename", filename)
.replace("$filepath", relative_filepath)
.replace("$directory", directory)
.replace("$ext", ext)
.replace(" ", "$ ")
.replace(":", "$:");
});
Expand Down

0 comments on commit a14b81a

Please sign in to comment.