operator-mono-lig icon indicating copy to clipboard operation
operator-mono-lig copied to clipboard

build doesn't do anything

Open ArafatRakib opened this issue 3 years ago • 10 comments

I'm trying to build the font in a windows system. However, when I type build in terminal after installing all the npm modules, it doesnt do anything. In powershell it shows

build : The term 'build' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ build
+ ~~~~~
    + CategoryInfo          : ObjectNotFound: (build:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException````

ArafatRakib avatar Jul 08 '21 22:07 ArafatRakib

In PowerShell, scripts that are in the current directory must be written as .\build

kiliman avatar Jul 08 '21 23:07 kiliman

Same here, using with Manjaro.

AnthonyLzq avatar Jul 19 '21 06:07 AnthonyLzq

@AnthonyLzq so Manjaro is a Linux distro? Did you copy the Operator Mono fonts into the ./original folder?

Make sure they are named like this. No spaces.

OperatorMono-Bold.otf
OperatorMono-BoldItalic.otf
OperatorMono-Book.otf
OperatorMono-BookItalic.otf
OperatorMono-Light.otf
OperatorMono-LightItalic.otf
OperatorMono-Medium.otf
OperatorMono-MediumItalic.otf
OperatorMono-XLight.otf
OperatorMono-XLightItalic.otf
OperatorMonoSSm-Bold.otf
OperatorMonoSSm-BoldItalic.otf
OperatorMonoSSm-Book.otf
OperatorMonoSSm-BookItalic.otf
OperatorMonoSSm-Light.otf
OperatorMonoSSm-LightItalic.otf
OperatorMonoSSm-Medium.otf
OperatorMonoSSm-MediumItalic.otf

kiliman avatar Jul 19 '21 14:07 kiliman

@AnthonyLzq so Manjaro is a Linux distro? Did you copy the Operator Mono fonts into the ./original folder?

Make sure they are named like this. No spaces.

OperatorMono-Bold.otf
OperatorMono-BoldItalic.otf
OperatorMono-Book.otf
OperatorMono-BookItalic.otf
OperatorMono-Light.otf
OperatorMono-LightItalic.otf
OperatorMono-Medium.otf
OperatorMono-MediumItalic.otf
OperatorMono-XLight.otf
OperatorMono-XLightItalic.otf
OperatorMonoSSm-Bold.otf
OperatorMonoSSm-BoldItalic.otf
OperatorMonoSSm-Book.otf
OperatorMonoSSm-BookItalic.otf
OperatorMonoSSm-Light.otf
OperatorMonoSSm-LightItalic.otf
OperatorMonoSSm-Medium.otf
OperatorMonoSSm-MediumItalic.otf

This fixed my issue, thanks. Btw, yes, Manjaro is an ArchLinux based distro.

AnthonyLzq avatar Jul 19 '21 18:07 AnthonyLzq

Running .\build in powershell still doesnt populate the build folder. npm install yields errors in powershell, but works in wsl2. That being said, running bash ./build.sh in wsl2 (ubuntu 20.04) (im beta on windows 11) yields line 8 error.

image

eo1989 avatar Aug 19 '21 12:08 eo1989

Hmm.. first for PowerShell, did you make sure the .\original folder contains the correct Operator Mono fonts? (see comment above as to name format)

As for WSL, what happens if you just type ./build.sh without the sh or bash in front?

Those \r seems like a line ending issue. By default, git will clone and convert line endings to platform specific. Windows typically uses CRLF \r\n whereas Linux/macOS uses just LF \n. So it looks like WSL is expecting \n but sees \r\n since you checked out the files from the Windows side.

kiliman avatar Aug 19 '21 15:08 kiliman

Same here, using with Manjaro.

yea same with me in Ubuntu

umardevid avatar Aug 23 '21 02:08 umardevid

@AnthonyLzq so Manjaro is a Linux distro? Did you copy the Operator Mono fonts into the ./original folder?

Make sure they are named like this. No spaces.

OperatorMono-Bold.otf
OperatorMono-BoldItalic.otf
OperatorMono-Book.otf
OperatorMono-BookItalic.otf
OperatorMono-Light.otf
OperatorMono-LightItalic.otf
OperatorMono-Medium.otf
OperatorMono-MediumItalic.otf
OperatorMono-XLight.otf
OperatorMono-XLightItalic.otf
OperatorMonoSSm-Bold.otf
OperatorMonoSSm-BoldItalic.otf
OperatorMonoSSm-Book.otf
OperatorMonoSSm-BookItalic.otf
OperatorMonoSSm-Light.otf
OperatorMonoSSm-LightItalic.otf
OperatorMonoSSm-Medium.otf
OperatorMonoSSm-MediumItalic.otf

whay the original font in my download is empty?

umardevid avatar Aug 23 '21 02:08 umardevid

i use this to patch the font using docker https://github.com/microsoft/cascadia-code/issues/612#issuecomment-1008257491

bryant-the-coder avatar Jan 19 '22 14:01 bryant-the-coder

In PowerShell, scripts that are in the current directory must be written as .\build

Hey, amazing repo. I love this. You should probably add this to the README.md : )

Beatlz avatar Jan 13 '24 11:01 Beatlz