Skip to content

Commit

Permalink
webview build: Whitelist files to copy, rather than blacklist.
Browse files Browse the repository at this point in the history
This has the same effect if the directory is totally clean,
containing no files other than those in the Git tree.  But if
if there are any extraneous files, this prevents accidentally
picking them up and building them into the app.

Suggested-by: Ray Kraesig <[email protected]>
  • Loading branch information
gnprice committed Mar 31, 2020
1 parent 2104e99 commit f1d537e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tools/build-webview
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,7 @@ sync() {

# Sync the directory structure, preserving metadata.
sync "${root}/src/webview/static" "${dest}" <<EOF
# Ignore files that won't be needed at runtime.
- README.md
+ *
+ /index.html
+ /base.css
- *
EOF

0 comments on commit f1d537e

Please sign in to comment.