mirror of
https://github.com/rancher-sandbox/rancher-desktop.git
synced 2021-10-13 00:04:06 +03:00
Rancher Desktop support for linux is currently based on flatpak. Signed-off-by: David Cassany <dcassany@suse.com>
29 lines
871 B
JavaScript
29 lines
871 B
JavaScript
import { execFileSync } from 'child_process';
|
|
import os from 'os';
|
|
|
|
async function runScripts() {
|
|
switch (os.platform()) {
|
|
case 'linux':
|
|
await (await import('./download/tools.mjs')).default('linux');
|
|
await (await import('./download/lima.mjs')).default();
|
|
break;
|
|
case 'darwin':
|
|
await (await import('./download/tools.mjs')).default('darwin');
|
|
await (await import('./download/lima.mjs')).default();
|
|
break;
|
|
case 'win32':
|
|
await (await import('./download/tools.mjs')).default('win32');
|
|
await (await import('./download/tools.mjs')).default('linux');
|
|
await (await import('./download/wsl.mjs')).default();
|
|
break;
|
|
}
|
|
}
|
|
|
|
runScripts().then(() => {
|
|
execFileSync('node', ['node_modules/electron-builder/out/cli/cli.js', 'install-app-deps'], { stdio: 'inherit' });
|
|
})
|
|
.catch((e) => {
|
|
console.error(e);
|
|
process.exit(1);
|
|
});
|