Skip to content

Commit

Permalink
Fix downloading vscode
Browse files Browse the repository at this point in the history
  • Loading branch information
award999 committed Dec 13, 2024
1 parent b308857 commit 80e08ff
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docker/sandbox.sb
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@

(allow mach-lookup)
(allow mach-register)
(allow sysctl-read)
(allow ipc-posix-shm-read-data (literal "apple.shm.notification_center"))

; Write
(allow file-write*
Expand All @@ -76,6 +78,7 @@
(allow system-socket)
(allow network-outbound
(path "/private/var/run/mDNSResponder")
(remote tcp4 "*:80")
(remote tcp4 "*:443")
(remote tcp4 "*:3128")
)
Expand All @@ -99,6 +102,3 @@

; JSON language server
(allow signal)

; Uncomment when connected to Ottawa office network
(system-network)
11 changes: 10 additions & 1 deletion docker/test-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,13 @@ npm ci -ignore-script node-pty
npm run lint
npm run format
npm run package
FAST_TEST_RUN=1 npm run coverage -- --coverage-output "$PWD/coverage"

# Download vscode
mkdir -p .vscode-test
curl -O -L "https://code.visualstudio.com/sha/download?build=stable&os=darwin-universal"
unzip download -d .vscode-test
rm download

# export npm_config_proxy="$HTTPS_PROXY"
export npm_config_https_proxy="$HTTPS_PROXY"
VSCODE_INSTALL="$(pwd)/.vscode-test/Visual Studio Code.app" CI=1 FAST_TEST_RUN=1 npm run coverage -- --coverage-output "$PWD/coverage"

0 comments on commit 80e08ff

Please sign in to comment.