mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-03-22 12:05:20 +00:00
Implement OS X installer
This commit is contained in:
parent
eb7e8014bc
commit
a3cd511cc1
17
Makefile
17
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
|
||||
|
30
release/installers/osx/distribution.xml
Normal file
30
release/installers/osx/distribution.xml
Normal file
@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<installer-gui-script minSpecVersion="1">
|
||||
<title>Resin CLI</title>
|
||||
<organization>io.resin</organization>
|
||||
<domains enable_localSystem="true" />
|
||||
<options customize="never" require-scripts="true" />
|
||||
|
||||
<!-- Define documents displayed at various steps -->
|
||||
<welcome file="welcome.txt" mime-type="text/plain" />
|
||||
<license file="license.txt" mime-type="text/plain" />
|
||||
<conclusion file="conclusion.txt" mime-type="text/plain" />
|
||||
|
||||
<!-- List all component packages -->
|
||||
<pkg-ref id="io.resin.cli">cli.pkg</pkg-ref>
|
||||
|
||||
<!-- List them again here -->
|
||||
<choices-outline>
|
||||
<line choice="io.resin.cli" />
|
||||
</choices-outline>
|
||||
|
||||
<!-- Define each choice above -->
|
||||
<choice
|
||||
id="io.resin.cli"
|
||||
visible="false"
|
||||
title="Resin CLI"
|
||||
description="The Resin CLI tool"
|
||||
start_selected="true">
|
||||
<pkg-ref id="io.resin.cli" />
|
||||
</choice>
|
||||
</installer-gui-script>
|
1
release/installers/osx/resources/conclusion.txt
Normal file
1
release/installers/osx/resources/conclusion.txt
Normal file
@ -0,0 +1 @@
|
||||
Thanks for installing the Resin CLI. Enjoy!
|
21
release/installers/osx/resources/license.txt
Normal file
21
release/installers/osx/resources/license.txt
Normal file
@ -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.
|
1
release/installers/osx/resources/welcome.txt
Normal file
1
release/installers/osx/resources/welcome.txt
Normal file
@ -0,0 +1 @@
|
||||
Welcome to the installation of the Resin CLI tool, an advanced way to communicate with Resin.io
|
Loading…
x
Reference in New Issue
Block a user