Skip to content

Conversation

@sonnyp
Copy link
Contributor

@sonnyp sonnyp commented Sep 24, 2023

Fixes #621 by implementing #621 (comment)
Fixes #615

Screenshot from 2023-09-24 22-35-01

Quick measurement With GNOME Builder export (.flatpak):

  • Before: 252.7MB (also takes way too long)
  • After: 27.8MB (very quick)

It has the nice side effect of removing workarounds, making the dev env and sandbox env exactly the same and speed up dev/export

Also:

  • Reintroduces LLVM/Mold
  • Removes the strip: false stuff as it is not needed anymore
  • Removes all post-install in favor of using sdk extensions as runtime extensions
  • Add a dialog to educate the user about runtime extensions
  • Remove compiling demos blp -> ui as it's not needed anymore (unrelated)

Todo:

  • Test user/system installations
  • Make the “Extensions” dialog nicer
  • Restore the "Extensions" dialog on restart
  • Show ✔️ marks for installed extensions
  • Show the “Extensions” dialog when needed
    • Run Vala
    • Run Rust
    • Open Manuals
  • Make Manuals load docs from both /usr/share/doc and /app/share/doc
  • Remove Cargo.lock files?

@sonnyp sonnyp mentioned this pull request Sep 24, 2023
Comment on lines +9 to +11
source /usr/lib/sdk/rust-stable/enable.sh
source /usr/lib/sdk/vala/enable.sh
source /usr/lib/sdk/llvm16/enable.sh
Copy link
Contributor Author

Choose a reason for hiding this comment

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

🪄

Comment on lines +123 to +130
browse_list_view.model = createBrowseSelectionModel(root_model, webview);

scanLibraries(root_model, base_path)
.then(() => {
browse_list_view.model.selected = 12;
const search_model = flattenModel(root_model);
filter_model.model = search_model;
})
.catch(console.error);
await scanLibraries(root_model, Gio.File.new_for_path("/usr/share/doc"));
browse_list_view.model.selected = 12;
await scanLibraries(root_model, Gio.File.new_for_path("/app/share/doc"));

browse_list_view.model = createBrowseSelectionModel(root_model, webview);
const search_model = flattenModel(root_model);
filter_model.model = search_model;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@sonnyp
Copy link
Contributor Author

sonnyp commented Sep 24, 2023

@Hofer-Julian what should I do about the cargo files?

@sonnyp sonnyp marked this pull request as ready for review September 24, 2023 21:14
@sonnyp
Copy link
Contributor Author

sonnyp commented Sep 24, 2023

I'm merging this to move forward and avoid rebases/rebuilds, but please do review, and I'll address the comments in followups.

@sonnyp sonnyp merged commit c84a099 into main Sep 24, 2023
@sonnyp sonnyp deleted the use-sdk-extensions branch September 24, 2023 21:15
This was referenced Feb 2, 2024
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.

Reduce Workbench size Re-introduce mold

2 participants