# Packaging the zip

**URL:** <https://staging-discuss.dev.twitch.com/t/packaging-the-zip/20611>\
**Category:** Extensions\
**Created:** [March 20, 2019, 4:30pm UTC](https://staging-discuss.dev.twitch.com/t/packaging-the-zip/20611 "2019-03-20T16:30:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbeckwith\_tool](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/jbeckwith_tool/32/3674_2.png) [@jbeckwith\_tool](https://staging-discuss.dev.twitch.com/u/jbeckwith_tool)\
**Post date:** [March 20, 2019, 4:30pm UTC](https://staging-discuss.dev.twitch.com/t/packaging-the-zip/20611/1 "2019-03-20T16:30:13Z")

</div>

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/](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. [https://i0zjnnmfonj0bgv9cmqtlx1v9zaou8.ext-twitch.tv/index.html](https://i0zjnnmfonj0bgv9cmqtlx1v9zaou8.ext-twitch.tv/index.html)

 ![13%20PM](https://d2spem0quai2ol.cloudfront.net/original/2X/8/864a299359747a3e1ca29ecab81934a02e37fc4c.jpeg)

I’m using a script to package the zip:

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

```

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/app.global.js
-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?

---

<div class="post-metadata">

**Author:** ![jbeckwith\_tool](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/jbeckwith_tool/32/3674_2.png) [@jbeckwith\_tool](https://staging-discuss.dev.twitch.com/u/jbeckwith_tool)\
**Post date:** [March 20, 2019, 5:15pm UTC](https://staging-discuss.dev.twitch.com/t/packaging-the-zip/20611/2 "2019-03-20T17:15:13Z")

</div>

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:

[https://i0zjnnmfonj0bgv9cmqtlx1v9zaou8.ext-twitch.tv/i0zjnnmfonj0bgv9cmqtlx1v9zaou8/0.0.1/4a2047e5b78271685b38539cb3927bcb/index.html](https://i0zjnnmfonj0bgv9cmqtlx1v9zaou8.ext-twitch.tv/i0zjnnmfonj0bgv9cmqtlx1v9zaou8/0.0.1/4a2047e5b78271685b38539cb3927bcb/index.html)

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