diff options
Diffstat (limited to '.expeditor/scripts/create_mac_universal_pkg.sh')
-rwxr-xr-x | .expeditor/scripts/create_mac_universal_pkg.sh | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/.expeditor/scripts/create_mac_universal_pkg.sh b/.expeditor/scripts/create_mac_universal_pkg.sh deleted file mode 100755 index 3b9b846470..0000000000 --- a/.expeditor/scripts/create_mac_universal_pkg.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/sh - -mkdir -p ./stage/pkg/tmp/chef-pkgs -mkdir -p ./stage/script - -pushd ./stage/pkg/tmp/chef-pkgs - -curl -O https://packages.chef.io/files/current/chef/18.0.92/mac_os_x/11/chef-18.0.92-1.x86_64.dmg -hdiutil attach chef-18.0.92-1.x86_64.dmg -cp /Volumes/Chef\ Infra\ Client/chef-18.0.92-1.x86_64.pkg ./ -hdiutil detach /Volumes/Chef\ Infra\ Client -rm chef-18.0.92-1.x86_64.dmg - -curl -O https://packages.chef.io/files/current/chef/18.0.92/mac_os_x/11/chef-18.0.92-1.arm64.dmg -hdiutil attach chef-18.0.92-1.arm64.dmg -cp /Volumes/Chef\ Infra\ Client/chef-18.0.92-1.arm64.pkg ./ -hdiutil detach /Volumes/Chef\ Infra\ Client -rm chef-18.0.92-1.arm64.dmg - -popd - -cat << EOF > ./stage/script/postinstall -#!/bin/sh - -if [ `uname -m` == 'x86_64' ] -then - installer -pkg /tmp/chef-pkgs/chef-18.0.92-1.x86_64.pkg -target LocalSystem -verbose -elif [ `uname -m` == 'arm64' ] -then - installer -pkg /tmp/chef-pkgs/chef-18.0.92-1.arm64.pkg -target LocalSystem -verbose -fi -EOF - -chmod +x ./stage/script/postinstall - -pkgbuild --root stage/pkg --scripts stage/script --identifier "io.chef.infra-client.wrapper" \ - --version "18.0.92" --install-location / --min-os-version 10.15 stage/pkg/chef-18.0.92-1.universal.pkg |