Skip to content

Commit

Permalink
Fixed image URIs in release notes doc
Browse files Browse the repository at this point in the history
  • Loading branch information
deepnight committed Mar 29, 2022
1 parent ea28ac1 commit 076c2fb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/electron.renderer/Const.hx
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,10 @@ class Const {
if( !sys.FileSystem.exists("./app/buildAssets") )
sys.FileSystem.createDirectory("./app/buildAssets");
var relNotesPath = "./app/buildAssets/release-notes.md";
try sys.io.File.saveContent(relNotesPath, relNotes.join("\n"))
catch(e:Dynamic) haxe.macro.Context.warning("Couldn't write "+relNotesPath, haxe.macro.Context.currentPos());
var out = relNotes.join("\n");
out = StringTools.replace(out, "![](", "![](https://ldtk.io/files/changelogImg/");
try sys.io.File.saveContent(relNotesPath, out)
catch(e:Dynamic) haxe.macro.Context.warning("Couldn't write "+relNotesPath, haxe.macro.Context.currentPos());

return macro {}
}
Expand Down

0 comments on commit 076c2fb

Please sign in to comment.