Packaging the zip

I am having trouble packaging the zip for hosted test. I have all of the static files in a zip. Testing on localhost is working fine. My base path is https://localhost:3030/ and everything points to index.html

However, when I upload the zip, none of the files seem to be there. e.g.

I’m using a script to package the zip:

# creates a clean zip of the client folder, ready to upload to twitch
cd $(dirname $0)/../client/www
zip -r -X /tmp/ *
mv /tmp/ $(dirname $0)/../../

Here is the output of zipinfo:

drwxr-xr-x  3.0 unx        0 b- stor 19-Mar-01 17:58 assets/
drwxr-xr-x  3.0 unx        0 b- stor 19-Mar-09 12:38 assets/images/
-rw-r--r--  3.0 unx     2062 b- defN 19-Mar-19 15:15 assets/images/bits.png
-rw-r--r--  3.0 unx      219 t- defN 19-Mar-19 15:15 assets/images/arrow.svg
-rw-r--r--  3.0 unx      734 t- defN 19-Mar-19 15:15 assets/images/lock-icon.svg
drwxr-xr-x  3.0 unx        0 b- stor 19-Feb-14 18:07 assets/icon/
-rw-r--r--  3.0 unx    21096 b- defN 19-Mar-19 15:15 assets/icon/icon.png
-rw-r--r--  3.0 unx     5055 b- defN 19-Mar-19 15:15 assets/icon/favicon.ico
drwxr-xr-x  3.0 unx        0 b- stor 19-Feb-14 18:10 build/
drwxr-xr-x  3.0 unx        0 b- stor 19-Mar-19 15:15 build/app/
-rw-r--r--  3.0 unx      678 t- defN 19-Mar-19 15:15 build/app/app.registry.json
-rw-r--r--  3.0 unx      633 t- defN 19-Mar-19 15:15 build/app/
-rw-r--r--  3.0 unx    86894 t- defN 19-Mar-20 11:54 build/app/app.core.js
-rw-r--r--  3.0 unx     3348 t- defN 19-Mar-19 15:15 build/app/es5-build-disabled.js
-rw-r--r--  3.0 unx    51488 t- defN 19-Mar-20 12:00 build/app/app-root.entry.js
-rw-r--r--  3.0 unx      568 t- defN 19-Mar-19 15:15 build/app.css
-rw-r--r--  3.0 unx     6041 t- defN 19-Mar-19 15:15 build/app.js
-rw-r--r--  3.0 unx      791 t- defN 19-Mar-19 15:15 index.html

Do I need to restructure the files? What’s the issue?

Turns out this had nothing to do with packaging the zip. The files were on the CDN, but I misunderstood where they were supposed to be.

The actual files exist on a path like this:

To make things worse, I was trying to load assets from the root, so they weren’t resolving.