Compare commits

..

2 Commits

Author SHA1 Message Date
86077ea4fe Merge branch 'master' into renovate/quay.io-linuxserver.io-code-server-4.x
All checks were successful
ci/woodpecker/pr/ci Pipeline was successful
2024-01-08 13:37:25 +01:00
690d0666d9 always install latest extension version (#85)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
### 📖 Summary

- removed manual downloading if extension sources
- use code-server `install-extension` helper script to download and install latest extension version

### 📑 Test Plan

 CI pipeline tests (Default)

### 💬 Details

_No response_

### 📚 Additional Notes

- fixes #83

Reviewed-on: CodeServer/arkanum#85
Co-authored-by: OCram85 <marco.blessing@googlemail.com>
Co-committed-by: OCram85 <marco.blessing@googlemail.com>
2024-01-08 13:36:55 +01:00

20
arkanum
View File

@ -209,30 +209,18 @@ function instGiteaTools() {
}
function instCodeExtension() {
say "Downloading required extensions...." "Extension"
say "Installing default extensions...." "Extension"
# Gitlens
say "Downloading 'gitlens'..." "Extension"
curl -#fSL https://open-vsx.org/api/eamodio/gitlens/14.4.1/file/eamodio.gitlens-14.4.1.vsix -o /tmp/eamodio.gitlens.vsix
say "Installing 'gitlens'..." "Extension"
install-extension /tmp/eamodio.gitlens.vsix
say "Cleaning up 'gitlens' install files" "Extension"
rm -f /tmp/eamodio.gitlens.vsix
install-extension eamodio.gitlens --force
# OneDarkPro
say "Downloading 'One Dark Pro' theme..." "Extension"
curl -#fSL https://open-vsx.org/api/zhuangtongfa/material-theme/3.16.2/file/zhuangtongfa.material-theme-3.16.2.vsix -o /tmp/zhuangtongfa.material-theme.vsix
say "Installing 'One Dark Pro' theme..." "Extension"
install-extension /tmp/zhuangtongfa.material-theme.vsix
say "Cleaning up 'One Dark Pro' install files" "Extension"
rm -f /tmp/zhuangtongfa.material-theme.vsix
install-extension zhuangtongfa.material-theme --force
# vscode-icons
say "Downloading 'vscode-icons' theme..." "Extension"
curl -#fSL https://open-vsx.org/api/vscode-icons-team/vscode-icons/12.6.0/file/vscode-icons-team.vscode-icons-12.6.0.vsix -o /tmp/vscode-icons-team.vscode-icons.vsix
say "Installing 'vscode-icons' theme..." "Extension"
install-extension /tmp/vscode-icons-team.vscode-icons.vsix
say "Cleaning up 'vscode-icons' install files" "Extension"
rm -f /tmp/vscode-icons-team.vscode-icons.vsix
install-extension vscode-icons-team.vscode-icons --force
say "done." "Extension"
}