platform icon indicating copy to clipboard operation
platform copied to clipboard

Make build process working on Windows machines

Open aichukanov opened this issue 2 years ago • 8 comments

I've got a fail on rush build and don't know why, because of encoding problem in powershell/cmd/bash (Windows 10)

image

aichukanov avatar Aug 05 '23 16:08 aichukanov

Found that It's because there is no rm on Windows. Removed using rm -rf from commands as a workaround.

aichukanov avatar Aug 05 '23 21:08 aichukanov

@aichukanov I think nobody was build it on windows.

haiodo avatar Aug 06 '23 14:08 haiodo

@aichukanov Hi! I manage to run project on my windows machine using WSL. You can find install guide here.

Frumcheg avatar Nov 22 '23 21:11 Frumcheg

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 🌟

CyberPanCake3000 avatar Feb 12 '24 13:02 CyberPanCake3000

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 avatar Mar 29 '24 14:03 aeswibon

@aeswibon I am facing the same issues. Did you solve it?

Fatema-Nawrin avatar Mar 31 '24 06:03 Fatema-Nawrin

Nope, I tried to fix the script but is not working. Currently shifted to WSL to run the project.

aeswibon avatar Mar 31 '24 06:03 aeswibon