La simu multi-agents qui repeint une image, mais en c++ Boilerplate pompé ici : https://github.com/andrew-r-king/sfml-vscode-boilerplate
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

win-make_icon_from256.sh 721B

12345678910111213141516171819202122232425262728
  1. #!/bin/bash
  2. echo
  3. if [[ $OSTYPE == 'msys' || $OSTYPE == 'win32' ]]; then
  4. if hash magick 2>/dev/null; then
  5. read -p "Icon Prefix (\"icon_256\"): " icon_prefix
  6. if [[ $icon_prefix == '' ]]; then
  7. icon_prefix='icon_256'
  8. fi
  9. output_file=app
  10. cmd="magick convert ${icon_prefix}.png -define icon:auto-resize=256,128,64,48,32,16 app.ico"
  11. echo "$cmd"
  12. $cmd
  13. echo
  14. echo "Successfully created $output_file.ico!"
  15. else
  16. echo 'This script requires the "ImageMagick" command-line utility'
  17. echo 'Download from: https://www.imagemagick.org/script/download.php#windows'
  18. echo '(Install to default location)'
  19. fi
  20. else
  21. echo 'This script should only run in win32'
  22. fi
  23. echo
  24. read -rsn1 -p"Press any key to continue";echo