build issues on /Content/Mods/DemoMod solutions

Discussion in 'Empyrion API' started by imlarry425, Feb 27, 2023.

  1. imlarry425

    imlarry425 Captain

    Joined:
    Jan 10, 2019
    Messages:
    460
    Likes Received:
    338
    Version: 1.9.4 4019
    Mode: any
    Seed-Id: any
    Reproducibility: always
    Severity: broke build
    Type: API DemoMod
    Repro/Summary: In Visual Studio, if you build or rebuild the post build steps (delete output target/copy build to active game content/mods) fail because the directory path contains the hyphen in "/Empyrion - Galactic Survival" ... adding double quotes around the path parts of these commands solves the issue.

    change this:
    del /F /Q ..\..\..\..\$(TargetName).dll
    copy /B /Y $(TargetPath) ..\..\..\..

    to this:
    del /F /Q "..\..\..\..\$(TargetName).dll"
    copy /B /Y "$(TargetPath) ..\..\..\.."

    There is a related issue on Windows systems that the default Steam root puts the game tree inside /Program Folders which has security ACLs that prevent non-admin traversal of the tree- a comment about this and work arounds either in the program or the yaml would be helpful.
     
    #1

Share This Page