Skip to content

Commit

Permalink
Fixed bugs in packages
Browse files Browse the repository at this point in the history
  • Loading branch information
devdotnetorg committed May 29, 2024
1 parent 6b60fdc commit 5dc4d77
Show file tree
Hide file tree
Showing 8 changed files with 66 additions and 10 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v0.4.2 (29-05-2024)

- Fixed bugs in packages.

## v0.4.1 (27-05-2024)

- Added templates for RISC-V devices.
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG_ru.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Список изменений

## v0.4.2 (29-05-2024)

- Исправлены ошибки в пакетах.

## v0.4.1 (27-05-2024)

- Добавлены шаблоны для RISC-V устройств.
Expand Down
10 changes: 10 additions & 0 deletions bashscript/installpackagedebugger.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ if [ -z $INSTALLPATH ]; then
INSTALLPATH=/usr/share/vsdbg
fi

# **************** definition of variables ****************
declare ARCH_OS=$(uname -m) #aarch64, armv7l, x86_64 or riscv64

# requirements check
if [ $ARCH_OS != "aarch64" ] && [ $ARCH_OS != "armv7l" ] \
&& [ $ARCH_OS != "x86_64" ]; then
echo "ERROR. Current OS architecture ${ARCH_OS} is not supported."
exit 1;
fi

export DEBIAN_FRONTEND="noninteractive"

sudo apt-get update
Expand Down
30 changes: 26 additions & 4 deletions bashscript/installpackagedocker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,37 @@ if [ -z $USERNAME ]; then
exit 1;
fi

# **************** definition of variables ****************
declare ARCH_OS=$(uname -m) #aarch64, armv7l, x86_64 or riscv64

# requirements check
if [ $ARCH_OS != "aarch64" ] && [ $ARCH_OS != "armv7l" ] \
&& [ $ARCH_OS != "x86_64" ]&& [ $ARCH_OS != "riscv64" ]; then
echo "ERROR. Current OS architecture ${ARCH_OS} is not supported."
exit 1;
fi

export DEBIAN_FRONTEND="noninteractive"

sudo apt-get update
sudo apt-get install -y curl

#install
curl -fsSL https://get.docker.com -o get-docker.sh
chmod +x get-docker.sh
sudo ./get-docker.sh
#for aarch64, armv7l, x86_64
if [ $ARCH_OS == "aarch64" ] || [ $ARCH_OS == "armv7l" ] \
|| [ $ARCH_OS == "x86_64" ]; then
#install
sudo apt-get install -y curl
curl -fsSL https://get.docker.com -o get-docker.sh
chmod +x get-docker.sh
sudo ./get-docker.sh
fi

#for riscv64
if [ $ARCH_OS == "riscv64" ]; then
#install
sudo apt-get install -y docker.io
fi

#removal of artifacts
if [ -f /etc/apt/sources.list.d/docker.list ]; then
#rm
Expand Down
10 changes: 10 additions & 0 deletions bashscript/installpackagedotnetruntimes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@ if [ -z $INSTALLPATH ]; then
INSTALLPATH=/usr/share/dotnet
fi

# **************** definition of variables ****************
declare ARCH_OS=$(uname -m) #aarch64, armv7l, x86_64 or riscv64

# requirements check
if [ $ARCH_OS != "aarch64" ] && [ $ARCH_OS != "armv7l" ] \
&& [ $ARCH_OS != "x86_64" ]; then
echo "ERROR. Current OS architecture ${ARCH_OS} is not supported. For riscv64 architecture you can install .NET SDK 8.0"
exit 1;
fi

export DEBIAN_FRONTEND="noninteractive"

sudo apt-get update
Expand Down
4 changes: 2 additions & 2 deletions bashscript/installpackagedotnetsdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ sudo apt-get update
sudo apt-get install -y wget

#for aarch64, armv7l, x86_64
if [ $ARCH_OS == "aarch64" ] && [ $ARCH_OS == "armv7l" ] \
&& [ $ARCH_OS == "x86_64" ]; then
if [ $ARCH_OS == "aarch64" ] || [ $ARCH_OS == "armv7l" ] \
|| [ $ARCH_OS == "x86_64" ]; then
#install
wget https://dot.net/v1/dotnet-install.sh
sudo chmod +x dotnet-install.sh
Expand Down
12 changes: 9 additions & 3 deletions bashscript/testpackagedocker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@ set -e #Exit immediately if a comman returns a non-zero status

echo "Run: testpackagedocker.sh"

sudo systemctl status docker
echo "----------------------"
docker --version
docker version
sudo docker info
echo "----------------------"
sudo systemctl status docker
sudo docker version

declare ARCH_OS=$(uname -m) #aarch64, armv7l, x86_64 or riscv64
if [ $ARCH_OS != "riscv64" ]; then
sudo docker info
fi

echo "Successfully"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"icon": "assets/fastiot-logo-256.png",
"license": "LGPL-3.0-only",
"preview": true,
"version": "0.4.1",
"version": "0.4.2",
"publisher": "devdotnetorg",
"private": "false",
"identity": {
Expand Down

0 comments on commit 5dc4d77

Please sign in to comment.