# HG changeset patch # User sam # Date 1730653590 -25200 # Node ID 48df70e8aeed57995d3cf7e9d554d75b4666de14 # Parent cc32bc4fddc2beff9d507753c4463ed2e0da97ec# Parent 49a7d05d3f28ed815711148e07bd43e82cc1be93 merge diff -r cc32bc4fddc2 -r 48df70e8aeed semicongine/build.nim --- a/semicongine/build.nim Mon Nov 04 00:05:54 2024 +0700 +++ b/semicongine/build.nim Mon Nov 04 00:06:30 2024 +0700 @@ -134,6 +134,7 @@ return var meshfiles: seq[(string, string)] var audiofiles: seq[(string, string)] + var copies: seq[(string, string)] for (target_rel, source_rel) in resourceMap: let target = thisDir().joinPath(target_rel) @@ -147,12 +148,16 @@ elif source.endsWith("mp3") or source.endsWith("ogg") or source.endsWith("wav"): audiofiles.add (source, target) else: - raise newException(Exception, &"unkown file type: {source}") + copies.add (source, target) target.parentDir().mkDir() else: echo &"{target} is up-to-date" + import_meshes meshfiles import_audio audiofiles + for (src, dst) in copies: + echo &"copy {src} -> {dst}" + src.cpFile(dst) # for steam-buildscript docs see https://partner.steamgames.com/doc/sdk/uploading proc semicongine_steam_upload*(steamaccount, password, buildscript: string) =