Skip to content

Commit

Permalink
v0.8.2
Browse files Browse the repository at this point in the history
handle Externally Managed Environments
  • Loading branch information
ChiChou committed Jul 18, 2024
1 parent 29cb206 commit 2f99760
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"displayName": "frida Workbench",
"description": "Unofficial frida workbench for VSCode",
"version": "0.8.1",
"version": "0.8.2",
"engines": {
"vscode": "^1.69.1"
},
Expand Down
3 changes: 2 additions & 1 deletion src/driver/backend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ or pip install frida-tools. Do you want to install now?`, 'Install', 'Cancel')
.then(selected => {
if (selected === 'Install') {
run({
env: { PIP_BREAK_SYSTEM_PACKAGES: '1' }, // Externally Managed Environments
shellPath: python3Path(),
shellArgs: ['-m', 'pip', 'install', 'frida-tools']
});
Expand All @@ -30,7 +31,7 @@ or pip install frida-tools. Do you want to install now?`, 'Install', 'Cancel')
export function exec(...args: string[]): Promise<any> {
const remoteDevices = asParam();
return new Promise((resolve, reject) => {
execFile(python3Path(), [py, ...remoteDevices, ...args], { maxBuffer: 1024 * 1024 * 20}, (err, stdout, stderr) => {
execFile(python3Path(), [py, ...remoteDevices, ...args], { maxBuffer: 1024 * 1024 * 20 }, (err, stdout, stderr) => {
if (err) {
if (stderr.includes('Unable to import frida')) {
askInstallFrida();
Expand Down

0 comments on commit 2f99760

Please sign in to comment.