Skip to content

Commit

Permalink
fix: copy built files from dist to electron-src
Browse files Browse the repository at this point in the history
  • Loading branch information
uyen18827 committed Oct 29, 2021
1 parent 20f9de1 commit cdd90dc
Show file tree
Hide file tree
Showing 2 changed files with 299 additions and 1 deletion.
296 changes: 296 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"dev": "vite",
"test": "echo \"Error: no test specified\" && exit 1",
"tsc:w": "tsc -w",
"build": "vite build",
"build": "vite build && npm run copy",
"copy": "copyfiles -u 1 './dist/*.html' ./electron-src/ && copyfiles -u 1 './dist/assets/*' ./electron-src",
"preview": "vite preview --port 8080",
"electron-build": "electron-builder --win=portable"
},
Expand All @@ -17,6 +18,7 @@
"author": "Uyen Nguyen",
"license": "MIT",
"devDependencies": {
"copyfiles": "^2.4.1",
"electron": "^12.0.4",
"electron-builder": "^22.10.5",
"typescript": "^4.2.3",
Expand Down

0 comments on commit cdd90dc

Please sign in to comment.