forked from torizon/vscode-torizon-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deps: Add the possibility to use scripts in deps.json, for check-deps
Add the possibility to use scripts in the deps.json file, that are checked by the check-deps task. Also, add the dotnet-sdk-* and the mono-devel install scripts. Signed-off-by: Andre Riesco <[email protected]>
- Loading branch information
1 parent
e083e2d
commit 422abcb
Showing
16 changed files
with
326 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
{ | ||
"packages": [ | ||
"openssh-client", | ||
"sshpass", | ||
"dotnet-sdk-6.0" | ||
"sshpass" | ||
], | ||
"installDepsScripts": [ | ||
".conf/install-deps-scripts/install-dotnet-sdk-8.sh" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
{ | ||
"packages": [ | ||
"openssh-client", | ||
"sshpass", | ||
"dotnet-sdk-8.0", | ||
"dotnet-sdk-7.0" | ||
"sshpass" | ||
], | ||
"installDepsScripts": [ | ||
".conf/install-deps-scripts/install-dotnet-sdk-7.sh", | ||
".conf/install-deps-scripts/install-dotnet-sdk-8.sh" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
{ | ||
"packages": [ | ||
"openssh-client", | ||
"sshpass", | ||
"dotnet-sdk-8.0" | ||
"sshpass" | ||
], | ||
"installDepsScripts": [ | ||
".conf/install-deps-scripts/install-dotnet-sdk-8.sh" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
{ | ||
"packages": [ | ||
"openssh-client", | ||
"sshpass", | ||
"dotnet-sdk-8.0" | ||
"sshpass" | ||
], | ||
"installDepsScripts": [ | ||
".conf/install-deps-scripts/install-dotnet-sdk-8.sh" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
{ | ||
"packages": [ | ||
"openssh-client", | ||
"sshpass", | ||
"dotnet-sdk-6.0" | ||
"sshpass" | ||
], | ||
"installDepsScripts": [ | ||
".conf/install-deps-scripts/install-dotnet-sdk-6.sh" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
monoCsharpForms/.conf/install-deps-scripts/install-mono-devel.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# This is a script to install .MOno on Ubuntu, based on the official Mono project recommended method of installation: | ||
# https://www.mono-project.com/download/stable/#download-lin | ||
|
||
package='mono-devel' | ||
|
||
|
||
# Get the source URL of the mono-devel package installed | ||
source=$(apt policy $package | awk '/ \*/{getline; print $2}') | ||
|
||
|
||
# Check if the dotnet-sdk installed package comes from the Microsoft source | ||
if [ "$source" != "https://download.mono-project.com/repo/ubuntu" ]; then | ||
|
||
sudo apt install ca-certificates gnupg -y | ||
|
||
# Get and install mono signing key and repository | ||
sudo gpg --homedir /tmp --no-default-keyring --keyring /usr/share/keyrings/mono-official-archive-keyring.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF -y | ||
|
||
# Remove the mono-devel installation that doesn't come from the Microsoft source | ||
sudo apt-get remove $package -y | ||
|
||
sudo apt-get autoremove -y | ||
|
||
fi | ||
|
||
# Update packages | ||
sudo apt update -y | ||
|
||
# Install the mono-devel that come from the Microsoft source | ||
sudo apt-get install $package -y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.