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

feat(bundler): hide output from shell scripts unless --verbose is passed (fixes #888) #893

Merged
merged 7 commits into from
Jul 26, 2020

Conversation

nklayman
Copy link
Member

@nklayman nklayman commented Jul 24, 2020

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • New Binding Issue #___
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes. Issue #___
  • No

The PR fulfills these requirements:

  • When resolving a specific issue, it's referenced in the PR's title (e.g. fix: #xxx[,#xxx], where "xxx" is the issue number)
  • A change file is added if any packages will require a version bump due to this PR per the instructions in the readme.

If adding a new feature, the PR's description includes:

  • A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)

Other information:

As per #888, I think the platform build scripts' output is way too verbose. This PR will hide all the output from those scripts so that they match the behavior of pure rust bundlers.

To Do:

  • Provide a configuration to show the script's output
  • Show output on error (stderr always shows some info text for some reason, even on success)

Rather than fix stderr, I just added a notice about --verbose if the script fails (dmg/appimage only)

@nklayman nklayman changed the title feat(bundler): hide output from bundle_appimage.sh (fixes #888) feat(bundler): hide output from shell scripts unless --verbose is passed (fixes #888) Jul 26, 2020
@nklayman nklayman marked this pull request as ready for review July 26, 2020 00:32
@nklayman nklayman requested review from a team July 26, 2020 00:32
@nklayman nklayman requested a review from a team as a code owner July 26, 2020 12:59
@@ -74,7 +74,7 @@ pub fn bundle_project(settings: &Settings) -> crate::Result<Vec<PathBuf>> {

// create the shell script file in the target/ folder.
let sh_file = output_path.join("build_appimage.sh");
common::print_bundling(format!("{:?}", &appimage_path).as_str())?;
Copy link
Member

Choose a reason for hiding this comment

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

why did you change this from the full path to the filename? Every other place is still the full path.

Copy link
Member Author

Choose a reason for hiding this comment

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

The .deb bundle log shows just the file name. The full path is displayed after anyways.

@lucasfernog lucasfernog merged commit 78add1e into dev Jul 26, 2020
@lucasfernog lucasfernog deleted the feat/bundler-silent-appimage-build branch July 26, 2020 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants