Mercurial > games > semicongine
changeset 1361:48df70e8aeed
merge
author | sam <sam@basx.dev> |
---|---|
date | Mon, 04 Nov 2024 00:06:30 +0700 |
parents | cc32bc4fddc2 (current diff) 49a7d05d3f28 (diff) |
children | 3dbf77ca78b9 |
files | |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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) =