b54a3139c7
Includes QWB, Qortal Web, and Q-Shops Q-Apps with shared packages and build scripts. Co-authored-by: Cursor <cursoragent@cursor.com>
21 lines
1.4 KiB
Plaintext
21 lines
1.4 KiB
Plaintext
---
|
||
description: Zip portfolio Q-App after generating or updating deliverable files
|
||
alwaysApply: true
|
||
---
|
||
|
||
# Release zip
|
||
|
||
After creating or substantially editing Q-App files in this project (`index.html`, `app.js`, `style.css`, `manifest.json`, `favicon.svg`, `zip-store.js`, or anything under `dist/` / `extracted/`), produce a fresh archive at the project root. **Run a full `npm run build` first** so the production `dist/` tree exists.
|
||
|
||
- Name: `Portfolio-Q-App-v3-YYYYMMDD.zip` (use the user’s current date for `YYYYMMDD`).
|
||
- **Preferred:** run **`bash scripts/zip-portfolio.sh`** (or `npm run zip:portfolio`). It stages a **flat copy of `dist/`** (correct **`index.html`** + **`assets/index-*.js`**, `manifest.json` with `"main": "index.html"`, then adds legacy `app.js` & `style.css` if present). This avoids the grey screen when the Hub expected **`index.html`** at the app root and tried to run **`/src/main.tsx`**.
|
||
- **Alternate (flat dist only, no legacy files):** `bash scripts/make-zip.sh` / `npm run zip:hub`.
|
||
|
||
Command (if not using the script):
|
||
|
||
`bash scripts/zip-portfolio.sh`
|
||
|
||
Do not include older `*.zip` files inside new zips.
|
||
|
||
**End of task:** When this rule applies, **always** finish by running `bash scripts/zip-portfolio.sh` (after `npm run build` if you changed sources) so the project root has an up-to-date `Portfolio-Q-App-v3-YYYYMMDD.zip`. Do not stop after code changes without producing the zip unless the user explicitly opts out.
|