Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build on Windows System #3

Open
LL607-sys opened this issue Aug 1, 2023 · 7 comments
Open

Build on Windows System #3

LL607-sys opened this issue Aug 1, 2023 · 7 comments

Comments

@LL607-sys
Copy link

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?

@dalelane
Copy link
Owner

dalelane commented Aug 1, 2023

You could use WSL

@LL607-sys
Copy link
Author

You could use WSL

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

@dalelane
Copy link
Owner

dalelane commented Aug 3, 2023

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

@LL607-sys
Copy link
Author

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.

@dalelane
Copy link
Owner

dalelane commented Aug 3, 2023

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.

@LL607-sys
Copy link
Author

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?

@dalelane
Copy link
Owner

dalelane commented Aug 3, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants