Closed ysc3839 closed 3 years ago
Sorry to hear that you're having troubles. That code was from a previous version of the build script which required an extra step to get the TSIC
table to build properly. You can remove them.
That said, @Dhowett has been able to build using this script on Windows without problems, so you might want to check the permissions on your device too.
Nah, this has been one of the terrifically annoying things I've run into. I thought that it was an issue with "packaged" python -- the one that ships in the store -- but it looks like it's somewhat more complicated than that. I always run it under WSL because it's just plain easier.
If we aren't using that code, let's just pull it out and then folks will be able to run the build locally. :D
I can confirm it's not permission issue. The temp directory on my system inherited permissions from user's home directory. It's because the file was open with no sharing, so it can't be opened again.
Cascadia family version
main
Cascadia family variant(s)
Cascadia Code (the version with ligatures), Cascadia Mono (the version without ligatures)
Font file format(s)
I don't know
Platform
Windows
Other Software
No response
What happened?
Permission denied when building on Windows.
Log:
Code: https://github.com/microsoft/cascadia-code/blob/b8604c2bd9440aefc21634972992ba9a8e953f57/build.py#L262-L265 I think it's because
tempfile.NamedTemporaryFile()
opens the file, and thenvarFont.saveXML
opens that file again. Also these code looks useless, are they for debugging?