Commit Graph

2239 Commits

Author SHA1 Message Date
f989b92a34 Extensions: clarify error message
The manifest may be readable but invalid.
2024-04-02 22:10:13 +11:00
84d0b4942e Extensions: support dropping URL before the repo is initialized
Sync the repo when first dropping a URL onto Blender's window
before sync has run.

This is a simply fix which doesn't address the issue entirely
as we will likely want to detect an outdated repository too.
2024-04-01 16:31:13 +11:00
895679e651 Fix installing files from disk
- Resolve error installing files from disk blender/blender#119972
  (regression in [0]).
- Refactor enable-on-install into a shared function.
- Expose the "Enable on Install" checkbox in the file selector when
  installing from disk.

[0]: d158316df4
2024-03-29 15:11:37 +11:00
3ba911f3b3 Extensions: rename "Enable Theme" to "Set Current Theme" 2024-03-21 21:07:45 +11:00
f8526a4de2 Extensions: support enabling themes on installation
- Fix theme installation attempting to enable the package as an add-on.
- "Enable on install" now works for themes as well as add-ons.
2024-03-21 20:38:24 +11:00
d9f48399b9 Extensions: correct misleading theme path construction
The resulting path happened to work on Linux but the expression
included the absolute prefix twice.
2024-03-21 20:22:05 +11:00
5096131e53 Extensions: add a handler for clearing a repository before removal
This is a safer alternative to recursively removing all files
when removing a repository that points to a custom directory,
see blender/blender#119481
2024-03-21 11:32:52 +11:00
a1b0f1b1f4 Extensions: respect the local cache setting
- Removing a package removes its cache.
- When local cache is disabled, clear cache on update.
2024-03-20 17:36:57 +11:00
6007bf7630 Import_max: Retrive active collection
Importing to active collection
2024-03-19 21:27:19 +01:00
d158316df4 Extensions: implement dropping directly from install operators
Remove a hack that used a popover panel to invoke an operator.
This was needed because drop ran from bpy.app.handlers.
Instead, activate the install operators from the drop action.

Resolves blender/blender#119500
2024-03-19 18:04:40 +11:00
0ea8e48114 Extensions: remove "show_development" which has moved to Blender prefs 2024-03-19 16:05:30 +11:00
09143a5ddb Extensions: minor clarification to manifest error 2024-03-19 15:59:37 +11:00
2e574b06b7 Import_max: Added collection
Added positional arguments
2024-03-18 21:34:26 +01:00
2597429e2e Import_max: Added collection
Added collection property to import multiple files at once
2024-03-18 21:28:50 +01:00
6a32301221 io_scene_max: Added collection property
Added collection property to import multiple files at once
2024-03-18 21:21:50 +01:00
5994a7a771 UI: Show Extensions Tools if Dev Tools Flag Set
Main repository commit 8770299406 added a separate experimental flag
for "Extensions Development Utilities". This PR just uses this flag to
show/hide developer items on its main dropdown menu. Requested in
#119521

Pull Request: https://projects.blender.org/blender/blender-addons-contrib/pulls/28
2024-03-16 17:33:28 +01:00
be9e2b5172 Extensions: fix error refreshing a local repository
Error in [0] which didn't account for REPO_LOCAL_JSON having a
directory component.

Resolves blender/blender#119461

[0]: ed217f09cd
2024-03-15 12:47:32 +11:00
c87463fb2f Extensions: add --no-prefs so it's possible to treat prefs are read-only
Also enable type checking.
2024-03-15 11:29:24 +11:00
6f62b19619 Extensions: change --sync and --enable arguments to "store_true"
Instead of passing in a boolean argument, these arguments are now false
by default and enabled when passed in.

Also rename upgrade to update to match the UI.
2024-03-15 08:51:20 +11:00
3cacffb6c1 Extensions: minor improvements to doc-strings 2024-03-14 20:01:52 +11:00
8a01d114b3 Extensions: various improvements to help text
- When `extensions` runs as a blender command, show the prefix
  `blender --command extension`.
- Remove `--output-type` when run via Blender.
- Add descriptions for each sub-command.
2024-03-14 17:17:37 +11:00
2d08dc1620 Extensions: correct success error code for blender_ext command 2024-03-14 12:38:24 +11:00
8274c1b362 Extensions: fix error in tests with empty tags 2024-03-14 12:38:06 +11:00
829aba4d23 Extensions: support uppercase hashes stored on the server
Repository listing generated by other tools could create upper case
hashes, support that as comparisons should be case insensitive here.
2024-03-13 23:37:32 +11:00
fb5afa64c1 Extensions: don't end tagline with punctuation (as noted in user-manual) 2024-03-13 23:29:45 +11:00
84d467e38a Extensions: fix flipped check for manifest keys
The values of the manifest weren't being validated since [0].

[0]: 8b3047987f
2024-03-13 23:26:14 +11:00
e033009c40 Extensions: allow permissions to be empty 2024-03-13 23:25:54 +11:00
3f35149a95 Extensions: add "validate" command-line access 2024-03-13 23:00:34 +11:00
375e8cd5e7 Extensions: improve help text for "build" command 2024-03-13 22:07:05 +11:00
924f7397f3 Extensions: update readme 2024-03-13 21:32:21 +11:00
4bf5ffd12c Extensions: add command line access package
Expose command line functionality such as updating/installing extensions
as well as adding/removing repositories & building packages.

Example to install packages:

    blender -c extension install Gold_Pro_Theme,lfs_camera_plane

To remove the packages:

    blender -c extension remove Gold_Pro_Theme,lfs_camera_plane

To list available packages:

    blender -c extension list

To build a package from it's `blender_manifest.toml`

    blender -c extension build

For help text see:

    blender -c extension --help
2024-03-13 21:30:58 +11:00
0c417c7fd6 Extensions: rename pkg-build to build
Also remove "pkg" prefix from command line arguments as they aren't
meaningful in the context of building a package.
2024-03-13 21:18:18 +11:00
164cf8a04d Extensions: support enabling add-ons on installed for install-marked 2024-03-13 20:50:48 +11:00
85ba32e98e Extensions: quiet error when a newly added repository has no directory
The error isn't useful and is shown when adding new repositories
from the Python API.
2024-03-13 20:47:14 +11:00
330f486d5b Extensions: show an error when a dropped archive has no manifest 2024-03-12 19:32:56 +11:00
0d580d8920 Extensions: fix dynamically referenced strings when installing from file 2024-03-12 19:18:47 +11:00
5450ac7840 Extensions: suppress noisy messages unless running with --debug 2024-03-07 15:43:07 +11:00
77df1456a0 io_scene_max: Fixed drag & drop import
Fixed drag & drop import by opening the file browser after drop
2024-03-07 00:00:00 +01:00
cea5cba59e io_scene_max: Commented out drag & drop support
Drag & drop outcommented because it blocked the import from menu
2024-03-06 11:39:40 +01:00
ed217f09cd Extensions: fix error refreshing a local repository
Resolve error where updating a local repository would attempt to
write into a directory that doesn't exist.
2024-03-01 17:21:00 +11:00
905e1aec09 Io_scene_max: Added drag & drop import
Bump version
Added drag & drop import functionality
2024-02-28 19:26:10 +01:00
dc6ba902e2 Extensions: add horizontal line between error title & body text 2024-02-23 19:42:15 +11:00
7cb9d3245e Extensions: don't display emails in maintainer & author fields
Retinal noted in code-comments.
2024-02-23 19:42:05 +11:00
ff451df8e1 Extensions: improve extensions UI for URL & filepath dropping
- Add cancel button.
- Add repository selector when installing from files.
- Make enabling after installing optional.

Implement design from #118635.
2024-02-23 19:23:20 +11:00
b3b459e482 Extensions: UI improvements for drop popups
- Show extension name.
- Show extension type.
- Show repository name.
- Show size without a decimal point.
- Use separator to differentiate the title from the popup contents.
2024-02-23 16:20:50 +11:00
d0f7873d53 Extensions: support reloading the add-on & correct typo 2024-02-23 16:07:44 +11:00
241dd3e6e6 Extensions: remove hand written help text for blender_ext command
The help text includes sub-commands without us having to list them
manually.
2024-02-22 22:44:57 +11:00
8b3047987f Extensions: update manifest checks to match docs in the user manual 2024-02-22 22:34:08 +11:00
8dc28e1524 Extensions: correct return value for pkg_manifest_is_valid_or_error_impl
When requesting all errors, return the error list.
2024-02-22 22:34:08 +11:00
62fb641d2a Extensions: Rename "Remove" > "Uninstall" 2024-02-22 11:52:03 +01:00