File tree Expand file tree Collapse file tree 2 files changed +17
-8
lines changed Expand file tree Collapse file tree 2 files changed +17
-8
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
if [ " $( get_codename) " == bookworm ]; then
4
+ install_packages http://http.us.debian.org/debian/pool/main/d/debian-archive-keyring/debian-archive-keyring_2025.1_all.deb || exit 1
5
+ if [ $arch == 32 ]; then
6
+ install_packages http://http.us.debian.org/debian/pool/main/g/glew/libglew2.2_2.2.0-4+b1_armhf.deb || exit 1
7
+ fi
4
8
echo " deb http://deb.debian.org/debian bookworm-backports main contrib non-free non-free-firmware" | sudo tee /etc/apt/sources.list.d/bookworm-backports.list > /dev/null
5
9
install_packages -t bookworm-backports kicad kicad-libraries || exit 1
6
- elif [ " $( get_codename) " == bullseye ]; then
7
- echo ' deb http://deb.debian.org/debian bullseye-backports main contrib non-free' | sudo tee /etc/apt/sources.list.d/bullseye-backports.list > /dev/null
8
- install_packages -t bullseye-backports kicad kicad-libraries || exit 1
10
+ elif [ $arch == 64 ]; then
11
+ # install kicad from flathub
12
+ install_packages flatpak || exit 1
13
+ flatpak_install org.kicad.KiCad || exit 1
9
14
else
10
- # unknown OS version, so just install kicad from main repo
15
+ # not a 64bit system or bookworm so install kicad from debian repos
11
16
install_packages kicad kicad-libraries || exit 1
12
17
fi
13
-
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
# Allow packages required by this app to be uninstalled
4
- purge_packages || exit 1
5
-
6
4
if [ " $( get_codename) " == bookworm ]; then
5
+ purge_packages || exit 1
7
6
remove_repofile_if_unused /etc/apt/sources.list.d/bookworm-backports.list
8
7
elif [ " $( get_codename) " == bullseye ]; then
9
- eremove_repofile_if_unused /etc/apt/sources.list.d/bullseye-backports.list
8
+ purge_packages || exit 1
9
+ remove_repofile_if_unused /etc/apt/sources.list.d/bullseye-backports.list
10
+ elif [ $arch == 64 ]; then
11
+ flatpak_uninstall org.kicad.KiCad || exit 1
12
+ purge_packages || exit 1
13
+ else
14
+ purge_packages || exit 1
10
15
fi
You can’t perform that action at this time.
0 commit comments