summarylogtreecommitdiffstats
path: root/microchip-mplabx-bin.install
blob: 69e71537452b97ab9109bacfa34c99229f445fc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
post_install() {
  update-desktop-database -q
  udevadm control --reload-rules &> /dev/null

  echo "---------------------------------------------------------
Before using MPLAB X you have to agree with LICENSE:
/usr/share/licenses/microchip-mplabx-bin/LICENSE

To run MPLAB X, type 'mplab_ide' in console or just use the 'microchip-mplabx.desktop' desktop file.

To run (IPE) Integrated Programmer Environment, type 'mplab_ipe' in console or just use the 'microchip-mplab_ipe.desktop' desktop file.
---------------------------------------------------------"

if [[ ! -f "/usr/lib/jvm/default-runtime/lib/ext/jfxrt.jar" ]]; then
  echo
  echo "WARNING: JavaFX is not installed in your default Java installation. MPLAB X will not work."
  echo "Perhaps you should install java-openjfx ?"
  echo
fi
}

post_upgrade() {
  post_install
}

post_remove() {
  update-desktop-database -q
  udevadm control --reload-rules &> /dev/null
}