mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 08:43:06 +00:00
43 lines
1.4 KiB
Diff
43 lines
1.4 KiB
Diff
diff --git a/src-script/pack-apack-win-linux.js b/src-script/pack-apack-win-linux.js
|
|
index 0120f9f9..41fcf99c 100644
|
|
--- a/src-script/pack-apack-win-linux.js
|
|
+++ b/src-script/pack-apack-win-linux.js
|
|
@@ -6,12 +6,12 @@ exports.default = async function (context) {
|
|
context.electronPlatformName === 'win32' ||
|
|
context.electronPlatformName === 'linux'
|
|
) {
|
|
- return scriptUtil.executeCmd({}, 'npx', [
|
|
- 'copyfiles',
|
|
- '-V',
|
|
- '-f',
|
|
- path.resolve(context.outDir, '../apack.json'),
|
|
- context.appOutDir
|
|
+ return scriptUtil.executeCmd({}, 'install', [
|
|
+ '-m466',
|
|
+ '-v',
|
|
+ '-Dt',
|
|
+ context.appOutDir,
|
|
+ path.resolve(context.outDir, '../apack.json')
|
|
])
|
|
}
|
|
}
|
|
diff --git a/src-script/script-util.js b/src-script/script-util.js
|
|
index 1897c2b8..9faa5f20 100644
|
|
--- a/src-script/script-util.js
|
|
+++ b/src-script/script-util.js
|
|
@@ -181,11 +181,9 @@ async function rebuildBackendIfNeeded() {
|
|
return scriptUtil
|
|
.executeCmd({}, 'npx', ['tsc', '--build', './tsconfig.json'])
|
|
.then(() =>
|
|
- scriptUtil.executeCmd({}, 'npx', [
|
|
- 'copyfiles',
|
|
- './src-electron/**/*.sql',
|
|
- './src-electron/icons/*',
|
|
- './dist/'
|
|
+ scriptUtil.executeCmd({}, 'bash', [
|
|
+ '-xec',
|
|
+ 'for i in ./src-electron/**/*.sql ./src-electron/icons/*; do install -m 644 -Dt dist/$(dirname $i) $i; done'
|
|
])
|
|
)
|
|
}
|