From 1f33c6bb96e696702962b055c5ec5b02306ad0c8 Mon Sep 17 00:00:00 2001 From: Armin Briegel <1933192+scriptingosx@users.noreply.github.com> Date: Tue, 17 Aug 2021 13:47:18 +0200 Subject: [PATCH] removed buildInstallomatorPkg.sh since this is now done by assemble.sh --- buildInstallomatorPkg.sh | 72 ---------------------------------------- 1 file changed, 72 deletions(-) delete mode 100755 buildInstallomatorPkg.sh diff --git a/buildInstallomatorPkg.sh b/buildInstallomatorPkg.sh deleted file mode 100755 index d5863fd..0000000 --- a/buildInstallomatorPkg.sh +++ /dev/null @@ -1,72 +0,0 @@ -#!/bin/zsh - -# buildInstallomatorPkg.sh - -# this script will create a pkg installer that places the Installomator.sh -# script file in /usr/local/Installomator/Installomator.sh - -# this is for use with MDM systems that require the tools to be local - -export PATH=/usr/bin:/bin:/usr/sbin:/sbin - -pkgname="Installomator" -version="0.6" -identifier="com.scriptingosx.${pkgname}" -install_location="/usr/local/Installomator/" -signature="Developer ID Installer: Armin Briegel (JME5BW3F3R)" -dev_team="JME5BW3F3R" # asc-provider -dev_account="developer@scriptingosx.com" -dev_keychain_label="notary-scriptingosx" - - -scriptfolder=$(dirname "$0") -projectfolder=$(mktemp -d) -payloadfolder="${projectfolder}/payload" - - -# MARK: main code starts here - -# create a projectfolder with a payload folder -if [[ ! -d "${payloadfolder}" ]]; then - mkdir -p "${payloadfolder}" -fi - -# copy the script file -cp ${scriptfolder}/Installomator.sh ${payloadfolder} -chmod 755 ${payloadfolder}/Installomator.sh - -# set the DEBUG variable to 0 -sed -i '' -e 's/^DEBUG=1$/DEBUG=0/g' ${payloadfolder}/Installomator.sh - -# build the component package -pkgpath="${scriptfolder}/${pkgname}.pkg" - -pkgbuild --root "${projectfolder}/payload" \ - --identifier "${identifier}" \ - --version "${version}" \ - --install-location "${install_location}" \ - "${pkgpath}" - -# build the product archive - -productpath="${scriptfolder}/${pkgname}-${version}.pkg" - -productbuild --package "${pkgpath}" \ - --version "${version}" \ - --identifier "${identifier}" \ - --sign "${signature}" \ - "${productpath}" - -# clean up project folder -rm -Rf "${projectfolder}" - -# NOTE: notarytool requires Xcode 13 - -# upload for notarization -xcrun notarytool submit "$productpath" --keychain-profile "$dev_keychain_label" --wait - -# staple result -echo "## Stapling $productpath" -xcrun stapler staple "$productpath" - -exit 0