fix typo, and move release asset to public dir

This commit -
- fixes a a typo in package.json (outDir)
- sets the href of the zip file to ./
- moves the zip asset to the public dir.

Note: public dir is a special dir which hosts files that would be served
as is, so it makes sense to put the release for download there.
This commit is contained in:
Soufiane Fariss
2024-08-12 17:26:50 +02:00
parent 1c9a86ca20
commit 216bfb968d
3 changed files with 3 additions and 3 deletions

View File

@@ -53,7 +53,7 @@ jobs:
run: npm run build:bundle run: npm run build:bundle
working-directory: ./web/explorer working-directory: ./web/explorer
- name: Zip release bundle - name: Zip release bundle
run: zip -r capa-explorer-web.zip capa-explorer-web run: zip -r public/capa-explorer-web.zip capa-explorer-web
working-directory: ./web/explorer working-directory: ./web/explorer
- name: Build - name: Build
run: npm run build run: npm run build

View File

@@ -6,7 +6,7 @@
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build": "vite build", "build": "vite build",
"build:bundle": "vite build --mode bundle --outDir=capa-exlorer-web", "build:bundle": "vite build --mode bundle --outDir=capa-explorer-web",
"preview": "vite preview", "preview": "vite preview",
"test": "vitest", "test": "vitest",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore", "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore",

View File

@@ -9,7 +9,7 @@ import Menubar from "primevue/menubar";
<a <a
v-ripple v-ripple
v-tooltip.right="'Download capa Explorer Web for offline usage'" v-tooltip.right="'Download capa Explorer Web for offline usage'"
href="/capa-explorer-web.zip" href="./capa-explorer-web.zip"
download="capa-explorer-web.zip" download="capa-explorer-web.zip"
aria-label="Download capa Explorer Web release" aria-label="Download capa Explorer Web release"
> >