forked from pool/nodejs-electron
- Update to 19.x - Use gcc also on aarch64 due to clang crashes while compiling - Fix Fedora aarch64 build - Do not compile chrome stuff unused in electron - Use system libraries wherever possible OBS-URL: https://build.opensuse.org/request/show/986436 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=19
21 lines
379 B
Bash
21 lines
379 B
Bash
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
name=electron
|
|
flags_file="${XDG_CONFIG_HOME:-$HOME/.config}/${name}-flags.conf"
|
|
|
|
declare -a flags
|
|
|
|
if [[ -f "${flags_file}" ]]; then
|
|
mapfile -t < "${flags_file}"
|
|
fi
|
|
|
|
for line in "${MAPFILE[@]}"; do
|
|
if [[ ! "${line}" =~ ^[[:space:]]*#.* ]]; then
|
|
flags+=("${line}")
|
|
fi
|
|
done
|
|
|
|
exec XXXLIBDIRXXX/${name}/electron "$@" "${flags[@]}"
|