Skip to content

Conversation

@chrisgarrity
Copy link
Contributor

Resolves

What Github issue does this resolve (please include link)?
Part of #4598

Proposed Changes

Allows consumers of gui (desktop, android, etc) to rebuild gui with a relative path for static assets. Default is an absolute path as that is what is required for www.

Test Coverage

Please show how you have added tests to cover your changes
The default will build for www. With no changes to the build process it worked for my local www, and running gui locally (localhost:8601)

The android prototype npm linked to my local scratch-gui, all assets were fine after building gui with:

STATIC_PATH=static BUILD_MODE=dist npm run watch

Assets checked:

  • UI elements (icons etc)
  • tutorial animated gifs (including spanish)
  • icons on blocks
  • icons on extension blocks
  • library images (including sprite costume animation)

/cc @rschamp @cwillisf

Note: we will have to figure out how to modify the scratch-desktop build process to automatically rebuild gui.

Browser Coverage

Check the OS/browser combinations tested (At least 2)

Mac

  • Chrome
  • Firefox
  • Safari

Windows

  • Chrome
  • Firefox
  • Edge

Chromebook

  • Chrome

iPad

  • Safari

Android Tablet

  • Chrome (as webview in app)

Allows consumers of gui (desktop, android, etc) to rebuild gui with a relative path for static assets. Default is an absolute path as that is what is required for www.
Copy link
Contributor

@paulkaplan paulkaplan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine to me. Let's make sure that rebuilding GUI with this param becomes part of the scratch-desktop build process, /cc @cwillisf

@chrisgarrity chrisgarrity merged commit b26ac6d into scratchfoundation:develop Mar 18, 2019
@chrisgarrity chrisgarrity deleted the webconfig-static-path branch March 18, 2019 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants