Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unzip of chef-workstation-app (Electron-App) #477

Merged
merged 7 commits into from
Sep 9, 2019

Conversation

afiune
Copy link

@afiune afiune commented Sep 6, 2019

Electron changed the folder it zips the app into, needs to change unzip correspondingly

Also closes #474

Signed-off-by: tyler-ball tball@chef.io

…p correspondingly

Signed-off-by: tyler-ball <tball@chef.io>
@afiune afiune requested review from a team as code owners September 6, 2019 19:19
@tas50
Copy link
Contributor

tas50 commented Sep 6, 2019

Can we get a test added to workstation so we know we're actually installing the app? This would have been a really nasty regression if we had missed it.

Salim Afiune added 2 commits September 7, 2019 13:11
For some reason the generated zip file has single quotes in the file
name, lets try to fix the packaging of the chef-workstation-app by
adding them. Ugly! I know. 😭

Signed-off-by: Salim Afiune <afiune@chef.io>
@afiune afiune added the Type: Bug Does not work as expected. label Sep 9, 2019
@afiune afiune changed the title Fix unzip of chef-workstation-app (Electron-App) WIP Fix unzip of chef-workstation-app (Electron-App) Sep 9, 2019
@afiune
Copy link
Author

afiune commented Sep 9, 2019

We are still trying to figure out the problem, please hold on merge. 😉

Signed-off-by: Salim Afiune <afiune@chef.io>
Signed-off-by: Salim Afiune <afiune@chef.io>
@tyler-ball tyler-ball added Aspect: Correctness Aspect: Packaging Distribution of the projects 'compiled' artifacts. labels Sep 9, 2019
@tyler-ball
Copy link
Contributor

Lets potentially get #474 fixed as part of this PR

Maybe this is the problem we are facing, since there is no more mac/ dir
then the postinstall fails. I think!

Signed-off-by: Salim Afiune <afiune@chef.io>
unzip chef-workstation-app-mac.zip
sudo rm -rf "/Applications/Chef Workstation App.app"
sudo mv "mac/Chef Workstation App.app" /Applications
rm -r mac
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that this rm command made the postinst script to stop processing the rest of the commands in the script. Maybe this is the solution 🤞

@afiune afiune changed the title WIP Fix unzip of chef-workstation-app (Electron-App) Fix unzip of chef-workstation-app (Electron-App) Sep 9, 2019
@afiune
Copy link
Author

afiune commented Sep 9, 2019

Waiting on this build to finish and then test the installer: https://buildkite.com/chef/chef-chef-workstation-master-omnibus-adhoc/builds/63

I have already added a test for MacOS to verify that we are installing the 'Chef Workstation App', but it is missing something similar for Windows.

@afiune
Copy link
Author

afiune commented Sep 9, 2019

You got this Adhoc Build!!!
tenor-50737593

Signed-off-by: Salim Afiune <afiune@chef.io>
@afiune
Copy link
Author

afiune commented Sep 9, 2019

I have verified that we have fixed the major bug introduced with the upgrade of Electron, now the Chef Workstation App continues to be installed on the system!

tenor-73552396

Merging!

@afiune afiune merged commit 4d2ff2e into master Sep 9, 2019
@chef-ci chef-ci deleted the afiune/upgrade-electron branch September 9, 2019 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Aspect: Packaging Distribution of the projects 'compiled' artifacts. Type: Bug Does not work as expected.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Post install we should delete the zipped copy of the workstation app
4 participants