stm32cubemx: fix broken package updates (#394337)
This commit is contained in:
@@ -52,6 +52,11 @@ let
|
||||
|
||||
cat << EOF > $out/bin/${pname}
|
||||
#!${stdenvNoCC.shell}
|
||||
updater_xml="\$HOME/.stm32cubemx/thirdparties/db/updaterThirdParties.xml"
|
||||
if [ -e "\$updater_xml" ] && [ ! -w "\$updater_xml" ]; then
|
||||
echo "Warning: Unwritable \$updater_xml prevents CubeMX software packages from working correctly. Fixing that."
|
||||
(set -x; chmod u+w "\$updater_xml")
|
||||
fi
|
||||
${jdk21}/bin/java -jar $out/opt/STM32CubeMX/STM32CubeMX "\$@"
|
||||
EOF
|
||||
chmod +x $out/bin/${pname}
|
||||
|
||||
Reference in New Issue
Block a user