rename SANDBOX_EXEC_PROFILE as SEATBELT_PROFILE, and fix another accidental rephrasing (#285)

This commit is contained in:
Olcan 2025-05-07 21:31:30 -07:00 committed by GitHub
parent 13eadcea45
commit 327bd5f836
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -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>

View File

@ -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',