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>
|
||||
) : process.env.SANDBOX === 'sandbox-exec' ? (
|
||||
<Text color={Colors.AccentYellow}>
|
||||
using macos seatbelt ({process.env.SANDBOX_EXEC_PROFILE})
|
||||
using macos seatbelt ({process.env.SEATBELT_PROFILE})
|
||||
</Text>
|
||||
) : (
|
||||
<Text color={Colors.AccentRed}> WARNING: SANDBOX NOT ENABLED </Text>
|
||||
<Text color={Colors.AccentRed}> WARNING: OUTSIDE SANDBOX </Text>
|
||||
)}
|
||||
</Box>
|
||||
|
||||
|
|
|
@ -142,7 +142,7 @@ function entrypoint(workdir: string): string[] {
|
|||
|
||||
export async function start_sandbox(sandbox: string) {
|
||||
if (sandbox === 'sandbox-exec') {
|
||||
process.env.SANDBOX_EXEC_PROFILE ??= 'minimal';
|
||||
process.env.SEATBELT_PROFILE ??= 'minimal';
|
||||
const args = [
|
||||
'-D',
|
||||
`TARGET_DIR=${process.cwd()}`,
|
||||
|
@ -150,7 +150,7 @@ export async function start_sandbox(sandbox: string) {
|
|||
`TMP_DIR=${fs.realpathSync(os.tmpdir())}`,
|
||||
'-f',
|
||||
new URL(
|
||||
`sandbox-macos-${process.env.SANDBOX_EXEC_PROFILE}.sb`,
|
||||
`sandbox-macos-${process.env.SEATBELT_PROFILE}.sb`,
|
||||
import.meta.url,
|
||||
).pathname,
|
||||
'bash',
|
||||
|
|
Loading…
Reference in New Issue