Home Forums Software InstaDMG removing languages

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #376347
    tncook
    Participant

    Has anyone tried stripping out the extra language files as part of the InstaDMG process? I was thinking of adding a line to the instadmg.bash script instead of making a package to run it.

    #376348
    walt
    Participant

    If you are talking about the OS installed languages you can do this with an InstallerChoices.xml file inside of your /InstaDMG/InstallerFiles/BaseOS/ folder.

    e.g. to only install the OS without languages or printers etc. your xml file would look like this:

    [code]

    PrinterDriversGroup
    AdditionalFonts
    LanguageTranslations
    X11

    [/code]

    #376349
    tncook
    Participant

    Nope, thats not what I am talking about. Even when installing the OS in one language, all the applications still get all the translations. Think Monolingual or delocalizer.

    [code]find -x “$dir” \! \( -path ‘dev*’ \) -and \( -not -path “*English.lproj” -and -not -path “*en.lproj” -and -not -path “*dobe*” \) -and \( -path ‘*.lproj’ \) -exec rm -R \{\} \;[/code]

    Running it saves me about 2.5Gb on my images. I have it ignore Adobe stuff because it can get flaky without it, the CS4 suite only has about 150mb of language stuff anyway.

    #376359
    tncook
    Participant

    I dropped it into the instadmg.bash and it worked like a champ. I added it to the start of the clean up section. The output image went from 10.08GB to 9.29GB

    [code]
    log “delocalizing” section
    find -x “$CURRENT_IMAGE_MOUNT” \! \( -path ‘dev*’ \) -and \( -not -path “*English.lproj” -and -not -path “*en.lproj” -and -not -path “*obe*” \) -and \( -path ‘*.lproj’ \) -exec rm -R \{\} \;
    [/code]

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

Comments are closed