Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add onlyoffice #63

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
130 changes: 130 additions & 0 deletions ONLYOFFICE/ONLYOFFICE.munki.recipe
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Description</key>
<string>Downloads the latest ONLYOFFICE pkg and imports into Munki.
For Apple Silicon version, override ARCH with "arm" and SUPPORTED_ARCHITECTURES with "arm64".</string>
<key>Identifier</key>
<string>com.github.wycomco.munki.ONLYOFFICE</string>
<key>Input</key>
<dict>
<key>ARCH</key>
<string>x86_64</string>
<key>MUNKI_REPO_SUBDIR</key>
<string>apps/%NAME%</string>
<key>NAME</key>
<string>ONLYOFFICE</string>
<key>SUPPORTED_ARCHITECTURES</key>
<string>x86_64</string>
<key>pkginfo</key>
<dict>
<key>catalogs</key>
<array>
<string>testing</string>
</array>
<key>category</key>
<string>Productivity</string>
<key>description</key>
<string>Create, view and edit documents of any size and complexity. Work with most popular formats: DOCX, ODT, XLSX, ODS, CSV, PPTX, ODP, etc. Deal with multiple files within one and the same window thanks to the tab-based user interface.</string>
<key>developer</key>
<string>Ascensio System SIA</string>
<key>display_name</key>
<string>ONLYOFFICE</string>
<key>name</key>
<string>%NAME%</string>
<key>supported_architectures</key>
<array>
<string>%SUPPORTED_ARCHITECTURES%</string>
</array>
<key>unattended_install</key>
<true/>
<key>unattended_uninstall</key>
<true/>
</dict>
</dict>
<key>ParentRecipe</key>
<string>com.github.ahousseini-recipes.pkg.ONLYOFFICE</string>
<key>Process</key>
<array>
<dict>
<key>Arguments</key>
<dict>
<key>info_path</key>
<string>%RECIPE_CACHE_DIR%/%NAME%/ONLYOFFICE.app/Contents/Info.plist</string>
<key>plist_keys</key>
<dict>
<key>LSMinimumSystemVersion</key>
<string>minimum_os_version</string>
</dict>
</dict>
<key>Processor</key>
<string>PlistReader</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>additional_pkginfo</key>
<dict>
<key>minimum_os_version</key>
<string>%minimum_os_version%</string>
</dict>
</dict>
<key>Processor</key>
<string>MunkiPkginfoMerger</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>destination_path</key>
<string>%RECIPE_CACHE_DIR%/Applications</string>
<key>source_path</key>
<string>%RECIPE_CACHE_DIR%/%NAME%</string>
</dict>
<key>Processor</key>
<string>Copier</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>faux_root</key>
<string>%RECIPE_CACHE_DIR%</string>
<key>installs_item_paths</key>
<array>
<string>/Applications/ONLYOFFICE.app</string>
</array>
<key>version_comparison_key</key>
<string>CFBundleShortVersionString</string>
</dict>
<key>Processor</key>
<string>MunkiInstallsItemsCreator</string>
</dict>
<dict>
<key>Processor</key>
<string>MunkiPkginfoMerger</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>pkg_path</key>
<string>%RECIPE_CACHE_DIR%/ONLYOFFICE-%version%.pkg</string>
<key>repo_subdirectory</key>
<string>%MUNKI_REPO_SUBDIR%</string>
</dict>
<key>Processor</key>
<string>MunkiImporter</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>path_list</key>
<array>
<string>%RECIPE_CACHE_DIR%/Applications</string>
</array>
</dict>
<key>Processor</key>
<string>PathDeleter</string>
</dict>
</array>
</dict>
</plist>