Skip to content

Commit ce9b618

Browse files
committed
Mise à jour scripts et dépendances
1 parent 97bef8d commit ce9b618

File tree

5 files changed

+228
-51
lines changed

5 files changed

+228
-51
lines changed

main.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ function buildSandboxAnswerScript(shouldConfigure, dirSelections, customPath) {
213213

214214
function runSandboxTask(sender, { pm, action, args, stdinScript, appName }) {
215215
return new Promise((resolve) => {
216-
const pty = require('node-pty');
216+
const pty = require('@homebridge/node-pty-prebuilt-multiarch');
217217
const id = `${action}-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 7)}`;
218218
const env = Object.assign({}, process.env, {
219219
TERM: 'xterm',
@@ -467,7 +467,7 @@ ipcMain.handle('am-action', async (event, action, software) => {
467467

468468
return new Promise((resolve) => {
469469
try {
470-
const pty = require('node-pty');
470+
const pty = require('@homebridge/node-pty-prebuilt-multiarch');
471471
const env = Object.assign({}, process.env, {
472472
TERM: 'xterm',
473473
COLS: '80',
@@ -547,7 +547,7 @@ ipcMain.handle('install-start', async (event, name) => {
547547
const startedAt = Date.now();
548548
let stdoutRemainder = '';
549549
let stderrRemainder = '';
550-
const pty = require('node-pty');
550+
const pty = require('@homebridge/node-pty-prebuilt-multiarch');
551551
const env = Object.assign({}, process.env, {
552552
TERM: 'xterm',
553553
COLS: '80',
@@ -699,7 +699,7 @@ ipcMain.handle('updates-start', async (event) => {
699699
const id = Date.now().toString(36) + '-' + Math.random().toString(36).slice(2,8);
700700
let child;
701701
let output = '';
702-
const pty = require('node-pty');
702+
const pty = require('@homebridge/node-pty-prebuilt-multiarch');
703703
const env = Object.assign({}, process.env, {
704704
TERM: 'xterm',
705705
COLS: '80',

0 commit comments

Comments
 (0)