Skip to content

Commit

Permalink
Fix run permissions on STM32CubeProg
Browse files Browse the repository at this point in the history
  • Loading branch information
alextrical committed Dec 8, 2023
1 parent ba17175 commit b46fa19
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 17 deletions.
10 changes: 0 additions & 10 deletions config/files/usr/share/applications/STM32CubeProgrammer.desktop

This file was deleted.

20 changes: 13 additions & 7 deletions config/scripts/STM32CubeProgrammer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,18 @@
set -oue pipefail

#Setup Desktop file
cat > /usr/share/applications/OpenBuildsCONTROL.desktop << EOF
cat > /usr/share/applications/STM32CubeProgrammer.desktop << EOF
[Desktop Entry]
Type=Application
Name=OpenBuildsCONTROL
Comment=OpenBuildsCONTROL CNC Machine Host Software
Exec=/usr/share/appimages/OpenBuildsCONTROL.AppImage --no-sandbox %U
Icon=OpenBuildsCONTROL
Categories=Graphics;
EOF
Name=STM32CubeProgrammer
Name[en]=STM32CubeProgrammer
Comment=STM32CubeProgrammer
Comment[en]=STM32CubeProgrammer
Exec=/usr/share/STMicroelectronics/STM32CubeProgrammer/bin/STM32CubeProgrammer
Icon=/usr/share/STMicroelectronics/STM32CubeProgrammer/util/Programmer.ico
Path=/usr/share/STMicroelectronics/STM32CubeProgrammer/bin
Categories=Development;
EOF

#Make executable
chmod +x /usr/share/STMicroelectronics/STM32CubeProgrammer/bin/STM32CubeProgrammer
2 changes: 2 additions & 0 deletions config/scripts/openbuildscontrol.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ curl -s https://api.github.com/repos/OpenBuilds/OpenBuilds-CONTROL/releases/late
| tr -d \" \
| wget -nc -O /usr/share/appimages/OpenBuildsCONTROL.AppImage -qi -

wget https://raw.githubusercontent.com/OpenBuilds/OpenBuilds-CONTROL/master/app/icon.png -O /usr/share/icons/OpenBuildsCONTROL.png

#Make executable
chmod +x /usr/share/appimages/OpenBuildsCONTROL.AppImage

Expand Down

0 comments on commit b46fa19

Please sign in to comment.