From a3cd511cc17e16e076b9953f8dfca8fb804d37a8 Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Fri, 27 Feb 2015 09:05:11 -0400 Subject: [PATCH] Implement OS X installer --- Makefile | 17 +++++++++++ release/installers/osx/distribution.xml | 30 +++++++++++++++++++ .../installers/osx/resources/conclusion.txt | 1 + release/installers/osx/resources/license.txt | 21 +++++++++++++ release/installers/osx/resources/welcome.txt | 1 + 5 files changed, 70 insertions(+) create mode 100644 release/installers/osx/distribution.xml create mode 100644 release/installers/osx/resources/conclusion.txt create mode 100644 release/installers/osx/resources/license.txt create mode 100644 release/installers/osx/resources/welcome.txt diff --git a/Makefile b/Makefile index 6c37950d..250c2a12 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,9 @@ distribute-darwin: release/build/distrib/resin-cli-darwin.tar.gz distribute-linux: release/build/distrib/resin-cli-linux.tar.gz installer-win32: release/build/distrib/resin-cli-setup.exe +installer-osx: release/build/distrib/resin-cli-setup.pkg + +VERSION=0.0.1 release/build/resin-cli-%: mkdir -p $@ @@ -25,5 +28,19 @@ release/build/distrib/resin-cli-linux.tar.gz: release/build/resin-cli-linux release/build/distrib/resin-cli-setup.exe: release/installers/win32/resin-cli.nsi release/build/distrib/resin-cli-win32.zip makensis $< +release/build/cli.pkg: release/build/resin-cli-darwin + pkgbuild --root $< \ + --identifier io.resin.cli \ + --version $(VERSION) \ + --ownership recommended \ + $@ + +release/build/distrib/resin-cli-setup.pkg: release/build/cli.pkg release/installers/osx/distribution.xml + productbuild --distribution $(word 2, $^) \ + --resources release/installers/osx/resources \ + --package-path `dirname $<` \ + --version $(VERSION) \ + $@ + clean: rm -rf release/build diff --git a/release/installers/osx/distribution.xml b/release/installers/osx/distribution.xml new file mode 100644 index 00000000..5b4371a9 --- /dev/null +++ b/release/installers/osx/distribution.xml @@ -0,0 +1,30 @@ + + + Resin CLI + io.resin + + + + + + + + + + cli.pkg + + + + + + + + + + + diff --git a/release/installers/osx/resources/conclusion.txt b/release/installers/osx/resources/conclusion.txt new file mode 100644 index 00000000..df1692d5 --- /dev/null +++ b/release/installers/osx/resources/conclusion.txt @@ -0,0 +1 @@ +Thanks for installing the Resin CLI. Enjoy! diff --git a/release/installers/osx/resources/license.txt b/release/installers/osx/resources/license.txt new file mode 100644 index 00000000..011e27c5 --- /dev/null +++ b/release/installers/osx/resources/license.txt @@ -0,0 +1,21 @@ +The MIT License + +Copyright (c) 2014 Resin.io, Inc. https://resin.io + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/release/installers/osx/resources/welcome.txt b/release/installers/osx/resources/welcome.txt new file mode 100644 index 00000000..2d44eca9 --- /dev/null +++ b/release/installers/osx/resources/welcome.txt @@ -0,0 +1 @@ +Welcome to the installation of the Resin CLI tool, an advanced way to communicate with Resin.io