Skip to content

Commit

Permalink
Unziping app has started failing, using ditto as recommended
Browse files Browse the repository at this point in the history
Signed-off-by: tyler-ball <tball@chef.io>
  • Loading branch information
tyler-ball committed May 6, 2020
1 parent 1b4e282 commit 9b27255
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion omnibus/package-scripts/chef-workstation/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ if is_darwin; then
# package directly.
echo "Moving Chef Workstation App to the Applications folder"
pushd "$INSTALLER_DIR/components/chef-workstation-app"
unzip chef-workstation-app-mac.zip
# https://github.com/electron-userland/electron-builder/issues/3779
# https://github.com/electron-userland/electron-builder/issues/4299#issuecomment-544997415
ditto -x -k -V chef-workstation-app-mac.zip ./
sudo rm -rf "/Applications/Chef Workstation App.app"
sudo mv "Chef Workstation App.app" /Applications/
mv "/Applications/Chef Workstation App.app/Contents/Resources/assets/scripts/$app_launcher" $INSTALLER_DIR/bin || error_exit "Cannot move $app_launcher to $INSTALLER_DIR/bin"
Expand Down

0 comments on commit 9b27255

Please sign in to comment.