Skip to content

Commit 0a629e1

Browse files
committed
Try and fix missing .whl
1 parent f432a22 commit 0a629e1

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"build": "vue-tsc --noEmit && vite build",
88
"preview": "vite preview",
99
"lint": "eslint . --fix --ignore-path .gitignore",
10-
"postinstall": "pip wheel -w src/assets/ https://github.com/secdev/scapy/archive/refs/heads/master.zip"
10+
"postinstall": "pip wheel -w public/ https://github.com/secdev/scapy/archive/refs/heads/master.zip"
1111
},
1212
"dependencies": {
1313
"@mdi/js": "^7.4.47",

vite.config.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import vuetify, { transformAssetUrls } from 'vite-plugin-vuetify'
55
// Utilities
66
import { defineConfig } from 'vite'
77
import { fileURLToPath, URL } from 'node:url'
8-
import { readdirSync } from 'node:fs'
8+
import { readdirSync } from 'fs'
99

1010
// Most recent Scapy wheel
11-
const scapywhl = "src/assets/" + readdirSync('src/assets').filter(fn => fn.endsWith('.whl'))[0];
11+
const scapywhl = readdirSync('public').filter(fn => fn.endsWith('.whl'))[0];
1212

1313
// https://vitejs.dev/config/
1414
export default defineConfig({
@@ -44,8 +44,6 @@ export default defineConfig({
4444
'.vue',
4545
],
4646
},
47-
// for scapy pyodide assets
48-
assetsInclude: [scapywhl],
4947
server: {
5048
port: 3000,
5149
watch: {

0 commit comments

Comments
 (0)