Skip to content

Commit 6923b24

Browse files
authored
Merge pull request #25 from mapmanager/dev
Removed hash for .whl assets
2 parents 064d4dc + af6005e commit 6923b24

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

packages/core/build_python.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ rm -rf ./py/* || true
2121
python -m build --wheel --sdist ./MapManagerCore/ --outdir ./py/
2222

2323
WHEEL_FILE=$(basename ./py/*.whl)
24-
echo -e "/* Generated file */ \nimport pyWheelPath from \"../py/$WHEEL_FILE\";\nexport {pyWheelPath};" > ./src/wheel_info.js
24+
echo -e "/* Generated file */\nimport pyWheelPath from \"../py/$WHEEL_FILE\";\nexport { pyWheelPath };" > ./src/wheel_info.js
2525

2626
rm -rf ./py/*.tar.gz

vite.config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ export default defineConfig({
77
base: "/WebMapManager/",
88
build: {
99
outDir: "./build",
10+
rollupOptions: {
11+
output: {
12+
assetFileNames: (file) => {
13+
if (file.names.some((x) => x.endsWith(".whl"))) {
14+
return "assets/[name].[ext]";
15+
}
16+
return "assets/[name]-[hash].[ext]";
17+
},
18+
},
19+
},
1020
},
1121
plugins: [
1222
react({

0 commit comments

Comments
 (0)