Skip to content

Commit 08f6c83

Browse files
Merge pull request #35 from GuentherJulian/feature/katacodaCobiGenJava
CobiGen plugin installation for katacoda
2 parents 2698fcb + 560f9cb commit 08f6c83

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

runners/katacoda/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,11 @@ export class Katacoda extends Runner {
9898
let params = command.parameters;
9999
let cobiGenTemplates = params[1].join(",");
100100

101-
this.renderTemplate(path.join("scripts", "installCobiGenPlugin.sh"), path.join(this.setupDir, "installCobiGenPlugin.sh"), { vsixFile: "cobigen-0.0.1.vsix", pluginName: "cobigen" });
101+
this.renderTemplate(path.join("scripts", "installCobiGenPlugin.sh"), path.join(this.setupDir, "installCobiGenPlugin.sh"), { });
102102
this.setupScripts.push({
103103
"name": "Install CobiGen plugin",
104104
"script": "installCobiGenPlugin.sh"
105105
});
106-
this.assetManager.registerFile(path.join(this.getRunnerDirectory(), "templates", "files", "cobigen-0.0.1.vsix"), "setup/cobigen-0.0.1.vsix", "/root/setup", true)
107106

108107
this.steps.push({
109108
"title": "CobiGen Java",
-2.85 KB
Binary file not shown.
Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
#!/bin/sh
22

3-
apt install libarchive-tools -y
43
cd /root/setup/
5-
bsdtar -xvf <%= vsixFile; %> - extension
6-
mv extension /opt/.katacodacode/extensions/<%= pluginName; %>
4+
5+
curl https://api.github.com/repos/devonfw-forge/cobigen-vscode-plugin/releases/latest |
6+
grep '"browser_download_url":' |
7+
sed -E 's/.*"([^"]+)".*/\1/' >> download_url.txt
8+
curl $(cat download_url.txt) -L --output cobigen-plugin.vsix
9+
10+
apt install libarchive-tools -y
11+
bsdtar -xvf cobigen-plugin.vsix - extension
12+
mv extension /opt/.katacodacode/extensions/cobigen

0 commit comments

Comments
 (0)