-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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): improve GitHub mirror URL generation with custom templates #11096
Conversation
…ates - Add support for custom GitHub mirror URL templates via `TAURI_BUNDLER_TOOLS_GITHUB_MIRROR_TEMPLATE` env var - Refactor URL generation logic into separate functions for better modularity - Implement regex-based parsing of GitHub URLs to extract components - Add unit tests for new URL generation functionality - Remove direct dependency on `ureq::AgentBuilder` in favor of more flexible approach - Update `create_agent_and_url` function to use new URL generation methods
Package Changes Through 768dce7There are 10 changes which include @tauri-apps/api with prerelease, tauri-bundler with prerelease, tauri-cli with prerelease, tauri with prerelease, tauri-runtime-wry with prerelease, tauri-runtime with prerelease, tauri-utils with prerelease, @tauri-apps/cli with prerelease, tauri-build with prerelease, tauri-codegen with prerelease Planned Package VersionsThe following package releases are the planned based on the context of changes in this pull request.
Add another change file through the GitHub UI by following this link. Read about change files or the docs at github.com/jbolda/covector |
Co-authored-by: Amr Bashir <github@amrbashir.me>
Co-authored-by: Amr Bashir <github@amrbashir.me>
…ate tests to use named constants for URLs
… handling - Change `generate_mirror_url_from_base` and `generate_alternative_url` to return `Option<T>` instead of `crate::Result<Option<T>>`. - Simplify the logic in `create_agent_and_url` by removing the `crate::Result` wrapper. - Remove unnecessary `Ok` and `?` usage, streamline error handling.
Combines two similar test functions into a single parameterized test for better maintainability and easier addition of future test cases.
- Renamed `generate_mirror_url_from_template` to `generate_github_mirror_url_from_template` - Renamed `generate_mirror_url_from_base` to `generate_github_mirror_url_from_base` - Renamed `generate_alternative_url` to `generate_github_alternative_url`
TAURI_BUNDLER_TOOLS_GITHUB_MIRROR_TEMPLATE
env varureq::AgentBuilder
in favor of more flexible approachcreate_agent_and_url
function to use new URL generation methodsCloses: #10497