mirror of
https://github.com/mandiant/capa.git
synced 2025-12-05 20:40:05 -08:00
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:
2
.github/workflows/web-deploy.yml
vendored
2
.github/workflows/web-deploy.yml
vendored
@@ -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
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
@@ -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"
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user