Skip to content

Commit

Permalink
Working setup
Browse files Browse the repository at this point in the history
  • Loading branch information
nixel2007 committed Jan 6, 2025
1 parent 1f163d8 commit 02bb453
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 5 deletions.
25 changes: 20 additions & 5 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,41 @@
"ghcr.io/devcontainers-extra/features/gh-release:1": {
"repo": "oscript-library/ovm",
"version": "latest",
"asset": "ovm.exe",
"binaryNames": "ovm.exe",
"binLocation": "/workspace/autumn"
"additionalFlags": [
"--no-filter-assets-by-platform"
]
}
},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "uname -a",
"postCreateCommand": "bash .devcontainer/postCreateCommand.sh",

"postAttachCommand": "source /home/vscode/.profile",

// Configure tool-specific properties.
"customizations": {
"vscode": {
"extensions":[
"1c-syntax.language-1c-bsl",
"EvilBeaver.oscript-debug"
]
"EvilBeaver.oscript-debug",
"zhuangtongfa.material-theme",
"yzhang.markdown-all-in-one",
"GitHub.copilot",
"GitHub.copilot-chat"
],

"settings": {
"language-1c-bsl.languageServerReleaseChannel": "prerelease"
}
}
},

"containerEnv": {
"LC_ALL": "en_US.UTF-8"
}

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
Expand Down
15 changes: 15 additions & 0 deletions .devcontainer/postCreateCommand.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash

set -eux

mkdir -p /home/vscode/.local/bin
echo "mono /usr/local/bin/ovm.exe \"\$@\"" > /home/vscode/.local/bin/ovm
chmod +x /home/vscode/.local/bin/ovm

ovm use --install dev

source /home/vscode/.profile

opm install opm
opm install oscript-config
opm install -l

0 comments on commit 02bb453

Please sign in to comment.