rename SANDBOX_EXEC_PROFILE as SEATBELT_PROFILE, and fix another accidental rephrasing (#285)
This commit is contained in:
parent
13eadcea45
commit
327bd5f836
|
@ -49,10 +49,10 @@ export const Footer: React.FC<FooterProps> = ({
|
||||||
<Text color="green"> {process.env.SANDBOX} </Text>
|
<Text color="green"> {process.env.SANDBOX} </Text>
|
||||||
) : process.env.SANDBOX === 'sandbox-exec' ? (
|
) : process.env.SANDBOX === 'sandbox-exec' ? (
|
||||||
<Text color={Colors.AccentYellow}>
|
<Text color={Colors.AccentYellow}>
|
||||||
using macos seatbelt ({process.env.SANDBOX_EXEC_PROFILE})
|
using macos seatbelt ({process.env.SEATBELT_PROFILE})
|
||||||
</Text>
|
</Text>
|
||||||
) : (
|
) : (
|
||||||
<Text color={Colors.AccentRed}> WARNING: SANDBOX NOT ENABLED </Text>
|
<Text color={Colors.AccentRed}> WARNING: OUTSIDE SANDBOX </Text>
|
||||||
)}
|
)}
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
|
|
|
@ -142,7 +142,7 @@ function entrypoint(workdir: string): string[] {
|
||||||
|
|
||||||
export async function start_sandbox(sandbox: string) {
|
export async function start_sandbox(sandbox: string) {
|
||||||
if (sandbox === 'sandbox-exec') {
|
if (sandbox === 'sandbox-exec') {
|
||||||
process.env.SANDBOX_EXEC_PROFILE ??= 'minimal';
|
process.env.SEATBELT_PROFILE ??= 'minimal';
|
||||||
const args = [
|
const args = [
|
||||||
'-D',
|
'-D',
|
||||||
`TARGET_DIR=${process.cwd()}`,
|
`TARGET_DIR=${process.cwd()}`,
|
||||||
|
@ -150,7 +150,7 @@ export async function start_sandbox(sandbox: string) {
|
||||||
`TMP_DIR=${fs.realpathSync(os.tmpdir())}`,
|
`TMP_DIR=${fs.realpathSync(os.tmpdir())}`,
|
||||||
'-f',
|
'-f',
|
||||||
new URL(
|
new URL(
|
||||||
`sandbox-macos-${process.env.SANDBOX_EXEC_PROFILE}.sb`,
|
`sandbox-macos-${process.env.SEATBELT_PROFILE}.sb`,
|
||||||
import.meta.url,
|
import.meta.url,
|
||||||
).pathname,
|
).pathname,
|
||||||
'bash',
|
'bash',
|
||||||
|
|
Loading…
Reference in New Issue