File:How to build standalone apps on OSX.zip

    From The Document Foundation Wiki

    How_to_build_standalone_apps_on_OSX.zip(file size: 1.35 MB, MIME type: application/zip)

    Warning: This file type may contain malicious code. By executing it, your system may be compromised.

    Summary

    I want "Spreadsheet.app" and "Document.app" etc. I don't want to have to start up LibreOffice and THEN pick one. Attached is a script (also below) for building six standalone apps:

    #!/bin/bash
    
    # Go directly into the document creator of your choice.
    # Creates 6 OSX apps which invoke LibreOffice.app with the proper switch
    # and takes the icon directly from the main app.
    # Create with Platypus 4.8 command line tools.
    
    LIBREICONS="/Applications/LibreOffice.app/Contents/Resources"
    
    compile () {
      echo 'import os;' > "$1.py"
      echo 'os.system("open -a /Applications/LibreOffice.app --args --'$2'");' >> "$1.py"
      rm -rf "$1.app"
      platypus -V 1.2 -I "org.openoffice.$2" -u "LibreOffice Project" -R -o None -i "$LIBREICONS/$3.icns" "$1.py" "$1.app"
      rm -rf "$1.py"
    }
    
    #        AppName       --switch     *.icns file to use
    
    compile "Database"      "base"     "oasis-database"
    compile "Drawing"       "draw"     "oasis-drawing"
    compile "Formula"       "math"     "oasis-formula"
    compile "Presentation"  "impress"  "oasis-presentation"
    compile "Spreadsheet"   "calc"     "oasis-spreadsheet"
    compile "Text Document" "writer"   "oasis-text"

    Copyright status:

    Licensing

    Cc-by new white.svgCc-sa white.svg

    This work is licensed under the Attribution Share-Alike 3.0 Unported License

    Source:

    File history

    Click on a date/time to view the file as it appeared at that time.

    Date/TimeDimensionsUserComment
    current03:25, 12 November 2015 (1.35 MB)Crankybot (talk | contribs)I want "Spreadsheet.app" and "Document.app" etc. I don't want to have to start up LibreOffice and THEN pick one. Attached is a script (also below) for building six standalone apps: #!/bin/bash # Go directly into the document creator of your choice. #...

    There are no pages that use this file.