Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions Ubuntu/install-eSim-scripts/install-eSim-25.04.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ function installKicad
# Detect Ubuntu version
ubuntu_version=$(lsb_release -rs)


# Define KiCad PPAs based on Ubuntu version
if [[ "$ubuntu_version" == "24.04" || "$ubuntu_version" == "25.04" ]]; then
echo "Ubuntu $ubuntu_version detected."
Expand All @@ -133,8 +134,7 @@ function installKicad
fi
else
echo "KiCad 8.0 is already installed."
exit 0
fi
return 0
fi

else
Expand All @@ -151,9 +151,10 @@ function installKicad
fi

# Install KiCad packages
sudo apt-get install -y --no-install-recommends kicad=8.0.8+dfsg-1 kicad-footprints kicad-libraries kicad-symbols kicad-templates
sudo apt-get install -y --no-install-recommends kicad kicad-footprints kicad-libraries kicad-symbols kicad-templates

echo "KiCad installation completed successfully!"
fi
}


Expand All @@ -166,6 +167,7 @@ function installDependency
# Update apt repository
echo "Updating apt index files..................."
sudo apt-get update


set -e # Re-enable exit on error
trap error_exit ERR
Expand Down
6 changes: 4 additions & 2 deletions Ubuntu/install-eSim.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@

# Function to detect Ubuntu version and full version string
get_ubuntu_version() {
VERSION_ID=$(grep "^VERSION_ID" /etc/os-release | cut -d '"' -f 2)
FULL_VERSION=$(lsb_release -d | grep -oP '\d+\.\d+\.\d+')
source /etc/os-release
VERSION_ID="$VERSION_ID"
FULL_VERSION="$VERSION_ID"
echo "Detected Ubuntu Version: $FULL_VERSION"
}

Expand Down Expand Up @@ -67,6 +68,7 @@ run_version_script() {
echo "VERSION = %(eSim_HOME)s/VERSION" >> $config_dir/$config_file
echo "MODELICA_MAP_JSON = %(eSim_HOME)s/library/ngspicetoModelica/Mapping.json" >> $config_dir/$config_file

fi
}


Expand Down