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 27, 2020
1 parent 812c6c5 commit ca4fd27
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 ca4fd27

Please sign in to comment.