mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 07:17:18 +00:00
chore: don't include *.dll files inside the asar archive (#944)
This change is needed to make `electron-create-asar.sh` output valid asar packages on Windows (Msys). Signed-off-by: Juan Cruz Viotti <jviotti@openmailbox.org>
This commit is contained in:
parent
457ce16722
commit
f889a0862a
@ -54,4 +54,9 @@ if [ -z "$ARGV_DIRECTORY" ] || [ -z "$ARGV_OUTPUT" ]; then
|
||||
fi
|
||||
|
||||
mkdir -p $(dirname "$ARGV_OUTPUT")
|
||||
asar pack "$ARGV_DIRECTORY" "$ARGV_OUTPUT" --unpack *.node
|
||||
|
||||
# Omit `*.dll` and `*.node` files from the
|
||||
# asar package, otherwise `process.dlopen` and
|
||||
# `module.require` can't load them correctly.
|
||||
asar pack "$ARGV_DIRECTORY" "$ARGV_OUTPUT" \
|
||||
--unpack "{*.dll,*.node}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user