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: add resource resolver crate #106

Merged
merged 24 commits into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
11be086
add CARGO_PACKAGER_MAIN_BINARY_NAME env
wiiznokes Dec 16, 2023
9ecb013
add resource-resolver crate
wiiznokes Dec 16, 2023
99ead15
[skip ci] add derive to PackageFormat and change get_current to curre…
wiiznokes Dec 29, 2023
44e7fdd
format in arg
wiiznokes Jan 3, 2024
eeec222
try to fix ci
wiiznokes Jan 3, 2024
a13cdc6
typo
wiiznokes Jan 3, 2024
14fb698
add require changes
wiiznokes Jan 5, 2024
9e05bfb
fmt
wiiznokes Jan 5, 2024
9b6460e
add reference in rust docs + prettier
wiiznokes Jan 5, 2024
f7ceb61
minor doc fix
wiiznokes Jan 5, 2024
9e27735
Update crates/resource-resolver/src/error.rs
wiiznokes Jan 6, 2024
b3dde50
Update crates/resource-resolver/src/error.rs
wiiznokes Jan 6, 2024
f2db07c
Update crates/resource-resolver/src/lib.rs
wiiznokes Jan 6, 2024
ff760d5
Update crates/resource-resolver/src/lib.rs
wiiznokes Jan 6, 2024
1da3c06
Update crates/resource-resolver/src/lib.rs
wiiznokes Jan 6, 2024
32c9377
Update crates/resource-resolver/src/lib.rs
wiiznokes Jan 6, 2024
3d49447
Update crates/resource-resolver/Cargo.toml
wiiznokes Jan 6, 2024
323cf00
add doc for detect formats feature, with a warning + remove resolve_r…
wiiznokes Jan 6, 2024
f18b819
Update crates/resource-resolver/Cargo.toml
wiiznokes Jan 9, 2024
7dd4958
change app image impl + add helper methods on Error struct
wiiznokes Jan 9, 2024
2e1fa2d
add to_kebab_case
wiiznokes Jan 20, 2024
f5f28e9
Merge branch 'main' into resource-resolver
amr-crabnebula Jan 22, 2024
66139f0
bindings and cleanups
amr-crabnebula Jan 23, 2024
cb0459c
lock files
amr-crabnebula Jan 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 36 additions & 3 deletions .changes/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,20 @@
}
},
"packages": {
"cargo-packager-utils": {
"path": "./crates/utils",
"manager": "rust",
"assets": [
{
"path": "${ pkg.path }/target/package/cargo-packager-utils-${ pkgFile.version }.crate",
"name": "${ pkg.pkg }-${ pkgFile.version }.crate"
}
]
},
"cargo-packager": {
"path": "./crates/packager",
"manager": "rust",
"dependencies": ["cargo-packager-config"],
"dependencies": ["cargo-packager-utils"],
"assets": [
{
"path": "${ pkg.path }/target/package/cargo-packager-${ pkgFile.version }.crate",
Expand All @@ -114,13 +124,14 @@
"@crabnebula/packager": {
"path": "./bindings/packager/nodejs",
"manager": "javascript",
"dependencies": ["cargo-packager"],
"dependencies": ["cargo-packager", "cargo-packager-utils"],
"prepublish": [],
"publish": [],
"postpublish": []
},
"cargo-packager-updater": {
"path": "./crates/updater",
"dependencies": ["cargo-packager-utils"],
"manager": "rust",
"assets": [
{
Expand All @@ -132,7 +143,29 @@
"@crabnebula/updater": {
"path": "./bindings/updater/nodejs",
"manager": "javascript",
"dependencies": ["cargo-packager-updater"],
"dependencies": ["cargo-packager-updater", "cargo-packager-utils"],
"prepublish": [],
"publish": [],
"postpublish": []
},
"cargo-packager-resource-resolver": {
"path": "./crates/resource-resolver",
"dependencies": ["cargo-packager-utils"],
"manager": "rust",
"assets": [
{
"path": "${ pkg.path }/target/package/cargo-packager-resource-resolver-${ pkgFile.version }.crate",
"name": "${ pkg.pkg }-${ pkgFile.version }.crate"
}
]
},
"@crabnebula/packager-resource-resolver": {
"path": "./bindings/resource-resolver/nodejs",
"manager": "javascript",
"dependencies": [
"cargo-packager-resource-resolver",
"cargo-packager-utils"
],
"prepublish": [],
"publish": [],
"postpublish": []
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/check-nodejs-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
- ".github/workflows/check-nodejs-bindings.yml"
- "crates/packager/**"
- "crates/updater/**"
- "crates/resource-resolver/**"
- "bindings/*/nodejs/**"
pull_request:
branches:
Expand All @@ -16,6 +17,7 @@ on:
- ".github/workflows/check-nodejs-bindings.yml"
- "crates/packager/**"
- "crates/updater/**"
- "crates/resource-resolver/**"
- "bindings/*/nodejs/**"

env:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
version: latest
- run: pnpm install
- run: pnpm format:check

rustfmt:
if: ${{ !startsWith(github.head_ref, 'renovate/') }}
runs-on: ubuntu-latest
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/covector-version-or-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,13 @@ jobs:
event-type: publish-updater-nodejs
client-payload: >-
{"releaseId": "${{ steps.covector.outputs['-crabnebula-updater-releaseId'] }}" }

- name: Trigger `@crabnebula/packager-resource-resolver` publishing workflow
if: |
steps.covector.outputs.successfulPublish == 'true' &&
contains(steps.covector.outputs.packagesPublished, '@crabnebula/packager-resource-resolver')
uses: peter-evans/repository-dispatch@v2
with:
event-type: publish-packager-resource-resolver-nodejs
client-payload: >-
{"releaseId": "${{ steps.covector.outputs['-crabnebula-packager-resource-resolver-releaseId'] }}" }
Loading
Loading