Files
herolib/lib/installers/web/imagemagick/imagemagick.v
2025-10-12 12:30:19 +03:00

19 lines
535 B
V

module imagemagick
import incubaid.herolib.osal.core as osal
import incubaid.herolib.ui.console
import os
// this gets the name of the directory
const installername = os.base(os.dir(@FILE))
// install imagemagick will return true if it was already installed
pub fn install_() ! {
console.print_header('install ${installername}')
if !osal.done_exists('install_${installername}') {
osal.package_install('imagemagick')!
osal.done_set('install_${installername}', 'OK')!
}
console.print_header('${installername} already done')
}