MrcSnm/HipremeEngine

start_here: DUB postGenerateCommand assumes Windows

0xEAB opened this issue · 2 comments

0xEAB commented

The postGenerateCommand in the DUB recipe of the start_here project assumes that the user is running Windows (or any OS with backslash \ as its directory separator).

"postGenerateCommands": ["cd ..\\..\\ && dub -c script -- .\\projects\\start_here"]

On other platforms building fails with /bin/sh: 1: cd: can't cd to .... or similar.

0xEAB commented

A clean solution could be to make the script runner available as a dub package, so that the user would run dub run hipremeengine:script in the directory of their project. Please note that I don’t have enough understanding of the codebase to know whether this suggestion is actually reasonable or feasible.

I'll starter by using postGenerateCommands-os then