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'
9 - return scriptUtil.executeCmd({}, 'npx', [
13 - path.resolve(context.outDir, '../apack.json'),
15 + return scriptUtil.executeCmd({}, 'install', [
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() {
30 .executeCmd({}, 'npx', ['tsc', '--build', './tsconfig.json'])
32 - scriptUtil.executeCmd({}, 'npx', [
34 - './src-electron/**/*.sql',
35 - './src-electron/icons/*',
37 + scriptUtil.executeCmd({}, 'bash', [
39 + 'for i in ./src-electron/**/*.sql ./src-electron/icons/*; do install -m 644 -Dt dist/$(dirname $i) $i; done'