Make build process working on Windows machines
I've got a fail on rush build and don't know why, because of encoding problem in powershell/cmd/bash (Windows 10)
Found that It's because there is no rm on Windows. Removed using rm -rf from commands as a workaround.
@aichukanov I think nobody was build it on windows.
@aichukanov Hi! I manage to run project on my windows machine using WSL. You can find install guide here.
Hi! @aichukanov, I was struggling with building the project on windows with WSL too but found out that visual studio reformatted shell files and files from /common/scripts directory (they are important for setting up the project) from LF to CRLF 😞 I hope it will help you and other devs 🌟
I faced multiple errors while trying to bundle the packages with rush bundle. I just switched to Git bash on Windows and replaced mkdir -p with rm -rf bundle && mkdir so that it would first delete the old dir and then create the new dir. Moreover, still facing some issues, like:
--[ FAILURE: @hcengineering/pod-account (bundle) ]-----------[ 3.03 seconds ]-- --minify was unexpected at this time.
--[ FAILURE: @hcengineering/pod-front (bundle) ]-------------[ 3.38 seconds ]-- --bundle was unexpected at this time.
--[ FAILURE: @hcengineering/pod-server (bundle) ]------------[ 3.52 seconds ]-- --define:process.env.GIT_REVISION was unexpected at this time.
--[ FAILURE: @hcengineering/tool (bundle) ]------------------[ 3.28 seconds ]-- --define:process.env.GIT_REVISION was unexpected at this time.
@aeswibon I am facing the same issues. Did you solve it?
Nope, I tried to fix the script but is not working. Currently shifted to WSL to run the project.