From c93e9e39b9754a6bda8f1d667149071619bed5e6 Mon Sep 17 00:00:00 2001 From: twangboy Date: Thu, 31 Jan 2019 17:48:10 -0700 Subject: [PATCH 1/3] Add Py2 Warning to installer package --- pkg/osx/build_pkg.sh | 7 +++++++ pkg/osx/distribution.xml.dist | 7 ++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/pkg/osx/build_pkg.sh b/pkg/osx/build_pkg.sh index d31e4d172374..f1dbd188c7ff 100755 --- a/pkg/osx/build_pkg.sh +++ b/pkg/osx/build_pkg.sh @@ -158,13 +158,20 @@ echo -n -e "\033]0;Build_Pkg: Add Version to .xml\007" if [ "$PYVER" == "2" ]; then TITLE="Salt $VERSION" DESC="Salt $VERSION with Python 2" + SEDSTR="s/@PY2@/_py2/g" else TITLE="Salt $VERSION (Python 3)" DESC="Salt $VERSION with Python 3" + SEDSTR="s/@PY2@//g" fi cd $PKGRESOURCES cp distribution.xml.dist distribution.xml + +# Select the appropriate welcome text +# This is only necessary until Sodium, then this can be removed +sed -E -i '' "$SEDSTR" distribution.xml + SEDSTR="s/@TITLE@/$TITLE/g" sed -E -i '' "$SEDSTR" distribution.xml diff --git a/pkg/osx/distribution.xml.dist b/pkg/osx/distribution.xml.dist index d31063f5f4bc..ff55164d05b3 100644 --- a/pkg/osx/distribution.xml.dist +++ b/pkg/osx/distribution.xml.dist @@ -12,11 +12,12 @@ hostArchitectures="@CPUARCH@" /> - + scaling="proportional" + alignment="bottomleft" /> - From 7dd170413256ac774a38d715253785d3ade35460 Mon Sep 17 00:00:00 2001 From: twangboy Date: Thu, 31 Jan 2019 17:50:11 -0700 Subject: [PATCH 2/3] Add welcome_py2.rtf --- pkg/osx/pkg-resources/welcome_py2.rtf | 32 +++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pkg/osx/pkg-resources/welcome_py2.rtf diff --git a/pkg/osx/pkg-resources/welcome_py2.rtf b/pkg/osx/pkg-resources/welcome_py2.rtf new file mode 100644 index 000000000000..345b923d8640 --- /dev/null +++ b/pkg/osx/pkg-resources/welcome_py2.rtf @@ -0,0 +1,32 @@ +{\rtf1\ansi\ansicpg1252\cocoartf1404\cocoasubrtf340 +{\fonttbl\f0\fswiss\fcharset0 Helvetica;\f1\froman\fcharset0 Times-Roman;\f2\fnil\fcharset0 PTMono-Regular; +} +{\colortbl;\red255\green255\blue255;\red0\green0\blue233;} +\vieww28300\viewh14680\viewkind0 +\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural\partightenfactor0 + +\f0\fs24 \cf0 WARNING: Python 2 Support will be discontinued in Sodium. Salt will only ship Python 3 installers starting with the Sodium release.\ +\ +\pard\pardeftab720\sl280\sa240\partightenfactor0 +{\field{\*\fldinst{HYPERLINK "http://saltstack.com/"}}{\fldrslt +\f1 \cf2 \expnd0\expndtw0\kerning0 +\ul \ulc2 SaltStack}} +\f1 \expnd0\expndtw0\kerning0 + is extremely fast and scalable systems and configuration management software for predictive orchestration, cloud and data center automation, server provisioning, application deployment and more. \ +Documentation for Salt is available at {\field{\*\fldinst{HYPERLINK "http://docs.saltstack.com/"}}{\fldrslt \cf2 \ul \ulc2 http://docs.saltstack.com}} \ +This package will install Salt on your Mac. Salt installs into +\f2\fs22 /opt/salt +\f1\fs24 .\ +Sample configuration files ( +\f2\fs22 master.dist +\f1\fs24 and +\f2\fs22 minion.dist +\f1\fs24 ) will be installed to +\f2\fs22 /etc/salt +\f1\fs24 . Create copies of them without the ' +\f2\fs22 .dist +\f1\fs24 ' in the filename and edit as you see fit.\ +This Salt package uses a custom-built Python. To install additional Python modules for Salt, use the associated 'pip' binary. For example, if you need LDAP support in Salt you will need the 'python-ldap' module. Install it with +\f2\fs22 /opt/salt/bin/pip install python-ldap +\f1\fs24 \ +Note that some Python modules need a compiler available. Installing Apple's Xcode Command Line Tools should provide the necessary utilities. Alternatively, {\field{\*\fldinst{HYPERLINK "http://macports.org/"}}{\fldrslt \cf2 \ul \ulc2 MacPorts}}, {\field{\*\fldinst{HYPERLINK "http://finkproject.org/"}}{\fldrslt \cf2 \ul \ulc2 Fink}}, or {\field{\*\fldinst{HYPERLINK "http://brew.sh/"}}{\fldrslt \cf2 \ul \ulc2 Homebrew}} may provide what you need.} \ No newline at end of file From 72fd1a29911e9a4f29795f22de859cc21df79efd Mon Sep 17 00:00:00 2001 From: twangboy Date: Thu, 31 Jan 2019 17:56:16 -0700 Subject: [PATCH 3/3] Roll back icon change --- pkg/osx/distribution.xml.dist | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/osx/distribution.xml.dist b/pkg/osx/distribution.xml.dist index ff55164d05b3..290ed93e9ebb 100644 --- a/pkg/osx/distribution.xml.dist +++ b/pkg/osx/distribution.xml.dist @@ -12,10 +12,9 @@ hostArchitectures="@CPUARCH@" /> - + scaling="proportional" />