mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 21:15:32 +09:00
test: remove infrastructure-dependent integration suites (#1573)
This commit is contained in:
1 parent
f88b0f69b2
commit
10fc79ab37
199 files changed
+688
-46963
No files matched your search
@@ -0,0 +1,20 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
function nativeFileName(platform = process.platform, arch = process.arch) {
|
||||
switch (platform) {
|
||||
case 'darwin':
|
||||
if (arch === 'x64' || arch === 'arm64') return `platform-info.darwin-${arch}.node`;
|
||||
break;
|
||||
case 'win32':
|
||||
if (arch === 'x64' || arch === 'arm64') return `platform-info.win32-${arch}-msvc.node`;
|
||||
break;
|
||||
case 'linux':
|
||||
if (arch === 'x64' || arch === 'arm64') return `platform-info.linux-${arch}-gnu.node`;
|
||||
break;
|
||||
}
|
||||
throw new Error(`Unsupported platform-info target: ${platform}/${arch}`);
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
nativeFileName,
|
||||
};
|
||||
Reference in new issue
Block a user