scratch-extension-development icon indicating copy to clipboard operation
scratch-extension-development copied to clipboard

Build on Windows System

Open LL607-sys opened this issue 2 years ago • 7 comments

Hi I want to build the Scratch App also on my local PC. Is there some solution to build the App, without needing to rewrite all the Linux Bash commands into a Windows Batch File?

LL607-sys avatar Aug 01 '23 21:08 LL607-sys

You could use WSL

dalelane avatar Aug 01 '23 21:08 dalelane

You could use WSL

I tried it, it always gives me the Error, that the SCRATCH_SRC_HOME environment variable is not set.

LL607-sys avatar Aug 03 '23 11:08 LL607-sys

Are you sure that's a Windows-specific issue, and not just that you haven't set the SCRATCH_SRC_HOME environment variable?

dalelane avatar Aug 03 '23 11:08 dalelane

Are you sure that's a Windows-specific issue, and not just that you haven't set the SCRATCH_SRC_HOME environment variable?

I don't know, i just did it like i did in Codespaces. Except that i used the chmod Command on WSL, so i can run it. Still in Codespaces its Ranking and on WSL it gives me the Error.

LL607-sys avatar Aug 03 '23 11:08 LL607-sys

When you're running in Codespaces, you're running in a container.

The container has the environment variable set https://github.com/dalelane/scratch-extension-development/blob/master/Dockerfile#L25

If you're choosing to run it in a different environment and in a different way, then this means you need to do everything that container was providing for yourself. That includes setting environment variables, but it includes other things as well.

dalelane avatar Aug 03 '23 11:08 dalelane

Are you sure that's a Windows-specific issue, and not just that you haven't set the SCRATCH_SRC_HOME environment variable?

Do you have some Instructions published how to set all the variables to run it local?

LL607-sys avatar Aug 03 '23 18:08 LL607-sys

No - I provided instructions for running it in Codespaces so that I could automate all of the setup in a known environment that has all of the prerequisites ready to go. I didn't want to get into documenting and supporting lots of other environments. It's not just about environment variables - because once you've done that, next it'll be how to install node and npm, how to create symlinks, etc.

dalelane avatar Aug 03 '23 19:08 dalelane