evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / za / zap-chip / dont-download-copyfiles-to-copy-files.patch
blob6b6e0307f48f0fda6d28d3ee4451a13c99d0b65c
1 diff --git a/src-script/pack-apack-win-linux.js b/src-script/pack-apack-win-linux.js
2 index 0120f9f9..41fcf99c 100644
3 --- a/src-script/pack-apack-win-linux.js
4 +++ b/src-script/pack-apack-win-linux.js
5 @@ -6,12 +6,12 @@ exports.default = async function (context) {
6 context.electronPlatformName === 'win32' ||
7 context.electronPlatformName === 'linux'
8 ) {
9 - return scriptUtil.executeCmd({}, 'npx', [
10 - 'copyfiles',
11 - '-V',
12 - '-f',
13 - path.resolve(context.outDir, '../apack.json'),
14 - context.appOutDir
15 + return scriptUtil.executeCmd({}, 'install', [
16 + '-m466',
17 + '-v',
18 + '-Dt',
19 + context.appOutDir,
20 + path.resolve(context.outDir, '../apack.json')
24 diff --git a/src-script/script-util.js b/src-script/script-util.js
25 index 1897c2b8..9faa5f20 100644
26 --- a/src-script/script-util.js
27 +++ b/src-script/script-util.js
28 @@ -181,11 +181,9 @@ async function rebuildBackendIfNeeded() {
29 return scriptUtil
30 .executeCmd({}, 'npx', ['tsc', '--build', './tsconfig.json'])
31 .then(() =>
32 - scriptUtil.executeCmd({}, 'npx', [
33 - 'copyfiles',
34 - './src-electron/**/*.sql',
35 - './src-electron/icons/*',
36 - './dist/'
37 + scriptUtil.executeCmd({}, 'bash', [
38 + '-xec',
39 + 'for i in ./src-electron/**/*.sql ./src-electron/icons/*; do install -m 644 -Dt dist/$(dirname $i) $i; done'