Skip to content

Instantly share code, notes, and snippets.

@timsutton
Last active November 27, 2019 09:07
Show Gist options
  • Save timsutton/f8b121e797588c61a2799a0b13bc0582 to your computer and use it in GitHub Desktop.
Save timsutton/f8b121e797588c61a2799a0b13bc0582 to your computer and use it in GitHub Desktop.
Vectorworks 2017 deployment stuff - Munki pkginfos and a Luggage project for network licensing
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<LoginDialog>
<Days>1</Days>
<AutoFindServer>0</AutoFindServer>
<AutoFindMaxTime>1</AutoFindMaxTime>
<DontShowAtStartup>1</DontShowAtStartup>
<Servers>
<Server>license-server.org.my:5053</Server>
</Servers>
<Modules>
<Module>renderworks</Module>
<MainModule>designer</MainModule>
</Modules>
</LoginDialog>
# Luggage Makefile for installing a network license config.
# This seems to be both the serial number deployed as a any-user pref,
# and LoginDialog.xml deployed to the application directory.
#
# Prior to 2017, we had to use a login script like Outset to set up
# a per-user Application Support dir for Vectorworks and drop LoginDialog.xml
# there, but we can now do it in one place and avoid the need for the login
# script. This LoginDialog.xml in the application directory seems to survive
# the update patches as well.
include /usr/local/share/luggage/luggage.make
TITLE=Vectorworks2017_NetworkLicense
REVERSE_DOMAIN=ca.concordia.cda
PACKAGE_VERSION=2017.2017.06.01.1
PAYLOAD=\
pack-VW2017-LoginDialog \
pack-Library-Preferences-net.nemetschek.vectorworks.2017.plist
pack-VW2017-LoginDialog: l_Library_CDA_Files
@sudo mkdir -p "${WORK_D}/Applications/Vectorworks 2017/Settings/SeriesG"
@sudo install -o root -g wheel -m 0644 LoginDialog.xml "${WORK_D}/Applications/Vectorworks 2017/Settings/SeriesG"
munki: pkg
munkiimport --nointeractive \
--displayname 'Vectorworks 2017 network license config' \
--update-for Vectorworks2017 \
--subdirectory 'apps/Nemetschek/Vectorworks2017' \
${PACKAGE_FILE}
<?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>NNA Licenses</key>
<array>
<string>YOURSERIALHERE</string>
</array>
<key>NNA Registered Organization</key>
<string>YourCompanyName</string>
<key>NNA Registered User</key>
<string>YourUserName</string>
</dict>
</plist>
<?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>autoremove</key>
<false/>
<key>blocking_applications</key>
<array>
<string>Vectorworks 2017.app</string>
</array>
<key>catalogs</key>
<array>
<string>testing</string>
<string>production</string>
</array>
<key>category</key>
<string></string>
<key>description</key>
<string></string>
<key>developer</key>
<string></string>
<key>display_name</key>
<string>Vectorworks 2017</string>
<key>installer_item_hash</key>
<string>d3c86d257dcae369c46018e0b8e6469e5dfa22b9639f2e107ab5aa39e60bd5f6</string>
<key>installer_item_location</key>
<string>apps/Nemetschek/Vectorworks2017/Vectorworks2017SP2-2017.2.dmg</string>
<key>installer_item_size</key>
<integer>2686823</integer>
<key>installed_size</key>
<integer>6686823</integer>
<key>installer_type</key>
<string>copy_from_dmg</string>
<key>items_to_copy</key>
<array>
<dict>
<key>destination_path</key>
<string>/private/tmp</string>
<key>source_item</key>
<string>Install Vectorworks 2017.app</string>
</dict>
</array>
<key>installs</key>
<array>
<dict>
<key>CFBundleVersion</key>
<string>22.0.2</string>
<key>path</key>
<string>/Applications/Vectorworks 2017/Vectorworks 2017.app</string>
<key>type</key>
<string>application</string>
<key>version_comparison_key</key>
<string>CFBundleVersion</string>
</dict>
</array>
<key>minimum_os_version</key>
<string>10.10</string>
<key>name</key>
<string>Vectorworks2017</string>
<key>postinstall_script</key>
<string>#!/bin/sh -e
'/private/tmp/Install Vectorworks 2017.app/Contents/MacOS/osx-intel' \
--mode unattended \
--Serial YOURSERIALHERE \
--UserName YourUserName \
--CompName YourCompanyName
rm -rf '/private/tmp/Install Vectorworks 2017.app'
</string>
<key>unattended_install</key>
<false/>
<key>unattended_uninstall</key>
<false/>
<key>uninstall_method</key>
<string>uninstall_script</string>
<key>uninstall_script</key>
<string>#!/bin/bash
'/Applications/Vectorworks 2017/Uninstall.app/Contents/MacOS/osx-intel' \
--mode unattended
</string>
<key>uninstallable</key>
<true/>
<key>version</key>
<string>2017.2</string>
</dict>
</plist>
<?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>autoremove</key>
<false/>
<key>blocking_applications</key>
<array>
<string>Vectorworks 2017.app</string>
</array>
<key>catalogs</key>
<array>
<string>testing</string>
<string>production</string>
</array>
<key>category</key>
<string></string>
<key>description</key>
<string></string>
<key>developer</key>
<string></string>
<key>display_name</key>
<string>Vectorworks 2017 SP4 update</string>
<key>installer_item_hash</key>
<string>10db7e78b169621cee386a28e2b1ac211a2a2edf4ee9477db8adaf159131ebd8</string>
<key>installer_item_location</key>
<string>apps/Nemetschek/Vectorworks2017/UpdateToVectorworks2017-SP4.dmg</string>
<key>installed_size</key>
<integer>5473999</integer>
<key>installer_item_size</key>
<integer>1473999</integer>
<key>installer_type</key>
<string>copy_from_dmg</string>
<key>items_to_copy</key>
<array>
<dict>
<key>destination_path</key>
<string>/private/tmp</string>
<key>source_item</key>
<string>Update Vectorworks 2017 SP4.app</string>
</dict>
</array>
<key>installs</key>
<array>
<dict>
<key>CFBundleVersion</key>
<string>22.0.4</string>
<key>path</key>
<string>/Applications/Vectorworks 2017/Vectorworks 2017.app</string>
<key>type</key>
<string>application</string>
<key>version_comparison_key</key>
<string>CFBundleVersion</string>
</dict>
</array>
<key>minimum_os_version</key>
<string>10.10</string>
<key>name</key>
<string>Vectorworks2017_Update</string>
<key>postinstall_script</key>
<string>#!/bin/sh -e
'/private/tmp/Update Vectorworks 2017 SP4.app/Contents/MacOS/osx-intel' \
--mode unattended \
--Serial YOURSERIALHERE \
--UserName YourUserName \
--CompName YourCompanyName
rm -rf '/private/tmp/Update Vectorworks 2017 SP4.app'
</string>
<key>unattended_install</key>
<false/>
<key>unattended_uninstall</key>
<false/>
<key>uninstallable</key>
<false/>
<key>update_for</key>
<array>
<string>Vectorworks2017</string>
</array>
<key>version</key>
<string>2017.4</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment