Skip to content

Instantly share code, notes, and snippets.

@BenjaminHCCarr
Last active September 27, 2017 16:06
Show Gist options
  • Save BenjaminHCCarr/923c7d57a2a961c8a79f2d7fa1a80698 to your computer and use it in GitHub Desktop.
Save BenjaminHCCarr/923c7d57a2a961c8a79f2d7fa1a80698 to your computer and use it in GitHub Desktop.
com.Subutai.Tray Distribution files
<?xml version="1.0" encoding="utf-8"?>
<installer-script minSpecVersion="1.000000" authoringTool="com.apple.PackageMaker" authoringToolVersion="3.0.3" authoringToolBuild="174">
<title>Subutai Tray 6.0.1</title>
<options customize="never" allow-external-scripts="no"/>
<domains enable_anywhere="true"/>
<installation-check script="pm_install_check();"/>
<script>function pm_install_check() {
if(!(system.compareVersions(system.version.ProductVersion,'10.5') >= 0)) {
my.result.title = 'Failure';
my.result.message = 'You need at least Mac OS X 10.5 to install SimCow.';
my.result.type = 'Fatal';
return false;
}
return true;
}
</script>
<choices-outline>
<line choice="choice1"/>
</choices-outline>
<choice id="choice1" title="base">
<pkg-ref id="com.Subutai.Tray"/>
</choice>
<pkg-ref id="com.Subutai.Tray" installKBytes="62234" version="6.0.1" auth="Root">#base.pkg</pkg-ref>
</installer-script>
tyr:~/Code/git/Mine/homebrew-cask/Casks (master) benc$ brew cask install --verbose --debug --force ./subutai-tray.rb
==> Hbc::Installer#install
==> Printing caveats
==> Hbc::Installer#fetch
==> Satisfying dependencies
==> Downloading
==> Downloading https://cdn.subut.ai:8338/kurjun/rest/raw/get?name=subutai-tray.pkg
Already downloaded: /Users/benc/Library/Caches/Homebrew/Cask/subutai-tray--6.0.1.pkg
==> Downloaded to -> /Users/benc/Library/Caches/Homebrew/Cask/subutai-tray--6.0.1.pkg
==> Verifying download
==> Determining which verifications to run for Cask subutai-tray
==> Checking for verification class Hbc::Verify::Checksum
==> 1 verifications defined
Hbc::Verify::Checksum
==> Running verification of class Hbc::Verify::Checksum
==> Verifying checksum for Cask subutai-tray
==> SHA256 checksums match
==> Installing Cask subutai-tray
==> Hbc::Installer#stage
==> Extracting primary container
==> Determining which containers to use based on filetype
==> Checking container class Hbc::Container::Pkg
==> Using container class Hbc::Container::Pkg for /Users/benc/Library/Caches/Homebrew/Cask/subutai-tray--6.0.1.pkg
==> Executing: ["/usr/bin/ditto", "--", "/Users/benc/Library/Caches/Homebrew/Cask/subutai-tray--6.0.1.pkg", "/usr/local/Caskroom/subutai-tray/6.0.1/get"]
==> Creating metadata directory /usr/local/Caskroom/subutai-tray/.metadata/6.0.1/20170927160623.783.
==> Creating metadata subdirectory /usr/local/Caskroom/subutai-tray/.metadata/6.0.1/20170927160623.783/Casks.
==> Installing artifacts
==> Determining which artifacts are present in Cask subutai-tray
==> 2 artifact/s defined
:pkgutil => "com.Subutai.Tray", (Uninstall)
subutai-tray.pkg (Pkg)
==> Installing artifact of class Hbc::Artifact::Pkg
==> Running installer for subutai-tray; your password may be necessary.
==> Package installers may write to any location; options such as --appdir are ignored.
==> Purging files for version 6.0.1 of Cask subutai-tray
Error: pkg source file not found: 'subutai-tray.pkg'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/artifact/pkg.rb:39:in `run_installer'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/artifact/pkg.rb:30:in `install_phase'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/installer.rb:191:in `block in install_artifacts'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/installer.rb:183:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/installer.rb:183:in `install_artifacts'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/installer.rb:97:in `install'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/install.rb:19:in `block in run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/install.rb:13:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/install.rb:13:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/abstract_command.rb:35:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:97:in `run_command'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:167:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:131:in `run'
/usr/local/Homebrew/Library/Homebrew/cmd/cask.rb:8:in `cask'
/usr/local/Homebrew/Library/Homebrew/brew.rb:95:in `<main>'
Error: Kernel.exit
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:172:in `exit'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:172:in `rescue in run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:155:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:131:in `run'
/usr/local/Homebrew/Library/Homebrew/cmd/cask.rb:8:in `cask'
/usr/local/Homebrew/Library/Homebrew/brew.rb:95:in `<main>'
0707070040044431350407750000000001200000020000001315645066300000200000000000.0707070040044431371007750000000001200000010000001315645066300001400000000421postinstall#!/bin/bash
mkdir -p /Applications/Subutai
chown -R $USER /Applications/Subutai*
mkdir -p /usr/local/share/subutai/bin
mkdir -p /usr/local/share/subutai/etc
mkdir -p /usr/local/share/subutai/resources
chown -R $USER /usr/local/bin
chown -R $USER /usr/local/share/subutai
0707070000000000000000000000000000000000010000000000000000000001300000000000TRAILER!!!
xar -x -f subutai-tray.pkg
mv subutai-tray.pkg ..
find .
.
./base.pkg
./base.pkg/Bom
./base.pkg/PackageInfo
./base.pkg/Payload
./base.pkg/Scripts
./Distribution
./Resources
./Resources/en.lproj
du -ks
0 ./Resources
4 ./Distribution
26336 ./base.pkg
file base.pkg/
base.pkg/: directory
tyr:~/tmp/SUB/tmp/base.pkg benc$ du -ks *
12 Bom
4 PackageInfo
26316 Payload
4 Scripts
tyr:~/tmp/SUB/tmp/base.pkg benc$ file *
Bom: Mac OS X bill of materials (BOM) file
PackageInfo: HTML document text
Payload: gzip compressed data, from Unix, last modified: Wed Sep 20 01:20:52 2017
Scripts: gzip compressed data, from Unix, last modified: Wed Sep 20 01:20:56 2017
tyr:~/tmp/SUB/tmp/base.pkg benc$ du -ks *
12 Bom
4 PackageInfo
26316 Payload
4 Scripts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment